* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-color: #05000a;
    --accent-gradient: rgba(110, 20, 160, 0.45);
    --box-border: rgba(255, 255, 255, 0.35);
    --box-shadow: rgba(130, 20, 190, 0.4);
    --link-hover: #c084fc;
}

/* Heading available to screen readers and crawlers without affecting layout */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body {
    background-color: var(--bg-color);
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
    height: 100vh;
    overflow: hidden;
    position: relative;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    transition: background-color 1s ease;
}

body.ruby-theme {
    --bg-color: #1c030c;
    --accent-gradient: rgba(168, 14, 72, 0.45);
    --box-border: #9b111e;
    --box-shadow: rgba(155, 17, 30, 0.4);
    --link-hover: #ff5c8a;
}

.bg-gradient {
    position: absolute;
    top: -150px;
    left: -150px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-gradient) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: -1;
    pointer-events: none;
    transition: background 1s ease;
}

.glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--box-border);
    box-shadow: 0 8px 32px 0 var(--box-shadow);
    transition: border-color 1s ease, box-shadow 1s ease;
}

.liquid-glass {
    background: rgba(10, 3, 18, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--box-border);
    box-shadow: 0 0 60px var(--box-shadow), inset 0 0 30px var(--box-shadow);
    transition: border-color 1s ease, box-shadow 1s ease;
}

.navbar {
    position: absolute;
    top: 25px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: auto;
    height: 65px;
    border-radius: 35px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    z-index: 100;
    transition: left 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                padding 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar .nav-links {
    opacity: 0;
    pointer-events: none;
    transform: scaleX(0);
    transform-origin: right center;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.navbar.expanded {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: auto;
    max-width: 800px;
    padding: 0 25px;
}

.navbar.expanded .nav-links {
    opacity: 1;
    pointer-events: auto;
    transform: scaleX(1);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    font-family: 'Arial', sans-serif;
    font-size: 28px;
    font-weight: bold;
    letter-spacing: 1px;
}

.logo-divider {
    width: 2px;
    height: 28px;
    background-color: rgba(255, 255, 255, 0.5);
}

.nav-links {
    display: flex;
    gap: 20px;
    margin-left: 20px;
}

.nav-links a {
    font-family: 'Arial', sans-serif;
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 0.5px;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--link-hover);
    text-shadow: 0 0 10px var(--link-hover);
}

.social-bar {
    position: absolute;
    left: 45px;
    top: 52%;
    transform: translateY(-50%);
    width: 65px;
    border-radius: 35px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 18px 0;
    z-index: 10;
    opacity: 0;
    transform: translateY(-50%) translateX(-30px);
    animation: fadeInLeft 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.social-icon {
    width: 36px;
    height: 36px;
    background-color: #ffffff;
    color: #000000;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.3s, color 0.3s;
}

.social-icon:hover {
    transform: scale(1.15);
    background-color: #000000;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-section {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-box {
    width: 540px;
    height: 320px;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 30px;
    opacity: 0;
    transform: scale(0.9);
    animation: zoomIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 40px var(--box-shadow), inset 0 0 20px var(--box-shadow);
}

.hero-title {
    font-family: 'Roboto', sans-serif;
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 15px;
}

.hero-subtitle {
    font-size: 16px;
    color: #b4b4b4;
    margin-bottom: 30px;
    font-weight: 400;
}

.mouse-icon {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 15px;
    position: relative;
    display: flex;
    justify-content: center;
}

.mouse-icon.small {
    width: 20px;
    height: 34px;
}

.wheel {
    width: 3px;
    height: 8px;
    background-color: #ffffff;
    border-radius: 2px;
    position: absolute;
    top: 6px;
}

.bottom-scroll-indicator {
    position: absolute;
    bottom: 30px;
    right: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    animation: fadeIn 1s ease 0.8s forwards;
    z-index: 200;
}

.scroll-line {
    width: 2px;
    height: 60px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0));
    margin-top: 5px;
}

body.fade-out {
    opacity: 0;
    transition: opacity 0.4s ease;
}

@keyframes fadeInLeft {
    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

@keyframes zoomIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Media Query per Mobile */
@media (max-width: 768px) {

    .navbar {
        top: 15px;
        left: 15px;
        right: 15px;
        transform: none;
        width: auto;
        height: 55px;
        padding: 0 15px;
        max-width: 100%;
    }

    .navbar.expanded {
        left: 15px;
        right: 15px;
        transform: none;
        padding: 0 15px;
    }

    .logo {
        font-size: 22px;
    }

    .logo-divider {
        height: 22px;
    }

    .nav-links {
        gap: 12px;
        margin-left: 10px;
    }

    .nav-links a {
        font-size: 11px;
    }

    .social-bar {
        left: 50%;
        top: auto;
        bottom: 80px;
        transform: translateX(-50%);
        width: auto;
        height: auto;
        flex-direction: row;
        gap: 15px;
        padding: 10px 20px;
        border-radius: 30px;
        animation: fadeIn 1s ease 0.8s forwards;
        opacity: 0;
    }

    .hero-box {
        width: 90%;
        max-width: 400px;
        height: auto;
        padding: 40px 20px;
    }

    .hero-title {
        font-size: 26px;
    }

    .hero-subtitle {
        font-size: 14px;
        margin-bottom: 0;
    }

    .hero-box .mouse-icon {
        display: none;
    }

    .bottom-scroll-indicator {
        bottom: 20px;
        right: 20px;
    }

    .bottom-scroll-indicator .mouse-icon {
        display: none;
    }

    .scroll-line {
        height: 40px;
    }

    .bg-gradient {
        top: -100px;
        left: -100px;
        width: 400px;
        height: 400px;
    }
}