/* Shared layout and navigation styles */
:root {
    --page-background-image: none;
    --page-background-opacity: 0.6;
}

html {
    font-size: 15px;
}
body {
    background-color: #000011;
    position: relative;
    min-height: 56.3rem;
    min-width: 30rem;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    overflow-y: auto; 
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--page-background-image);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: var(--page-background-opacity);
    z-index: -1;
}

body.bg-tiles {
    --page-background-image: url('/statics/img/tiles.png');
}

body.bg-tiles-2 {
    --page-background-image: url('/statics/img/tiles-2.png');
}

img[alt="top_img"] {
    display: block;
    margin: 0 auto;
    width: 100%;
    position: fixed;
    min-width: 30rem;
    height: auto;
    top: 0;
}

img[alt="bottom_img"] {
    display: block;
    margin: 0 auto;
    width: 100%;
    position: fixed;
    bottom: 0;
    min-width: 30rem;
    height: auto;
    pointer-events: none;
}

img[alt="star_img"] {
    position: absolute;
    top: 11rem;
    right: 11rem;
    width: 6rem;
    height: 6rem;
}

img[alt="star_img2"] {
    position: absolute;
    top: 6.5rem;
    left: -6rem;
    width: 6rem;
    height: 6rem;
}

.centered-text {
    text-align: center;
    font-family: Arial, sans-serif;
    font-size: 5.625rem;
    font-style: normal;
    font-weight: 700;
    line-height: 8.125rem;
    background: linear-gradient(180deg, #FFF 12.5%, #D0ABFF 35.34%, #F2E7FF 70.05%, #C596FF 86.92%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.text-container {
    position: relative;
    top: 11rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    width: 100%;
    min-width: 30rem;
    padding: 2rem;
    box-sizing: border-box;
    margin-bottom: 2rem;
}

.stacked-stars {
    position: absolute;
    top: 9.5rem;
    left: 50%;
    width: 100%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 1.65rem;
    flex-shrink: 0;
    z-index: 2;
}

.sub-text {
    display: flex;
    width: 38.25rem;
    height: 4.5rem;
    flex-direction: column;
    justify-content: center;
    flex-shrink: 0;
    color: #DEC4FF;
    text-align: center;
    font-family: Arial, sans-serif;
    font-size: 1.25rem;
    font-style: normal;
    font-weight: 400;
    line-height: 2rem;
    letter-spacing: -0.0125rem;
    margin-bottom: 8rem;
}

.custom-button {
    display: flex;
    width: 12rem;
    height: 2rem;
    padding: 0.75rem 2rem;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    border-radius: 6.25rem;
    border: 1.5px solid rgba(255, 255, 255, 0.60);
    background: linear-gradient(180deg, rgba(148, 64, 255, 0.36) 0%, rgba(101, 5, 224, 0.36) 100%);
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25), 0 2px 0 0 #6F0EEA;
    color: #E7DEF2;
    font-family: Arial, sans-serif;
    font-size: 1.125rem;
    font-style: normal;
    font-weight: 400;
    line-height: 1.75rem;
    letter-spacing: -0.0125rem;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.2);
    transform: perspective(500px) translateZ(10px);
    text-decoration: none;
}

.custom-button:hover {
    background: linear-gradient(120deg, rgba(180, 120, 255, 0.35) 0%, rgba(255, 255, 255, 0.18) 100%);
    backdrop-filter: blur(18px) saturate(160%);
    box-shadow: 0 8px 32px 0 rgba(80, 0, 120, 0.25), 0 3px 0 0 #A47AFF;
    border: 2px solid rgba(255, 255, 255, 0.35);
    color: #FFF;
    transition: all 0.3s cubic-bezier(.4, 2, .6, 1);
}

.custom-button:active {
    background: linear-gradient(120deg, rgba(120, 64, 200, 0.45) 0%, rgba(255, 255, 255, 0.12) 100%);
    backdrop-filter: blur(24px) saturate(180%);
    box-shadow: 0 2px 8px 0 rgba(80, 0, 120, 0.18), 0 1px 0 0 #7C4DCC;
    border: 2.5px solid rgba(255, 255, 255, 0.25);
    color: #E0D6FF;
    transform: scale(0.97) perspective(500px) translateZ(5px);
    transition: all 0.15s cubic-bezier(.4, 2, .6, 1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 8rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    min-width: 30rem;
    background-color: rgba(0, 0, 17, 0);
    z-index: 10;
    box-sizing: border-box;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-logo img[alt="logo_pic"] {
    height: 3rem;
}

.nav-logo img[alt="logo_txt"] {
    height: 2rem;
}

.nav-menu {
    display: flex;
    gap: 4rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: #DACCEC;
    text-decoration: none;
    font-family: Arial, sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5rem;
    letter-spacing: -0.025rem;
    position: relative;
    overflow: hidden;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -0.2rem;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #C596FF 0%, #FFF 100%);
    transition: all 0.3s cubic-bezier(.4, 2, .6, 1);
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link:active::after {
    width: 80%;
}

.nav-link:hover,
.nav-link:active {
    color: #FFF;
}

.nav-link.active {
    color: #FFF;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
    width: auto;
    height: auto;
    background: #FFFFFF;
    color: #000011;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    z-index: 1000;
}

section {
    scroll-margin-top: 5rem;
}

.visually-hidden {
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}
