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

html, body {
    width: 100%;
    height: 100%;
    background-color: #000000;
    color: #ffffff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
}

body {
    position: relative;
}

#starCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.topbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #2a2a2a;
    padding: 1rem 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.logo {
    font-size: 1.3rem;
    font-weight: 900;
    letter-spacing: 2px;
    user-select: none;
    color: #ffffff !important; /* Force white color */
    -webkit-user-select: none;
        cursor: pointer;
        text-decoration: none;
        flex-shrink: 0;
    }

    .logo:visited { color: #ffffff; }

    .logo:hover {
        opacity: 0.9;
}

/* Validation Styles */
.input-success {
    border: 2px solid #28a745 !important;
}

.input-error {
    border: 2px solid #dc3545 !important;
}

.availability-status {
    font-size: 0.8rem;
    margin-left: 8px;
    font-weight: bold;
}

.status-available { color: #28a745; }
.status-taken { color: #dc3545; }

.logo-scripters {
    color: #ffffff;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    flex: 1;
    justify-content: center;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.language-selector {
    margin-right: 0.5rem;
}

.nav-links a:hover {
    color: #64b5f6;
}

.notification-banner {
    position: fixed;
    top: 3.5rem;
    left: 0;
    width: 100%;
    background-color: #dc3545;
    color: #ffffff;
    padding: 1rem 2rem;
    z-index: 99;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transform: translateY(-100%);
    transition: transform 0.5s ease-out;
}

.notification-banner.show {
    transform: translateY(0);
}

.notification-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: 1400px;
    margin: 0 auto;
}

.notification-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex: 1;
}

.warning-icon {
    font-size: 1.5rem;
    font-weight: bold;
}

.notification-text {
    font-size: 1rem;
    font-weight: 500;
}

.notification-close {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    transition: opacity 0.2s ease;
}

.notification-close:hover {
    opacity: 0.8;
}

.dropdown {
    position: relative;
}

.dropdown > a::after {
    content: '';
    display: inline-block;
    margin-left: 5px;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: calc(100% - 0.1rem);
    left: 0;
    background-color: #1a1a1a;
    min-width: 180px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.7);
    padding: 0.5rem 0;
    border-radius: 0 0 4px 4px;
}

.dropdown-content a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.dropdown-content a:hover {
    background-color: #333333;
    color: #64b5f6;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.language-selector {
    position: relative;
    flex-shrink: 0;
}

.lang-btn {
    background-color: transparent;
    border: 1px solid #64b5f6;
    color: #64b5f6;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background-color: #64b5f6;
    color: #000000;
}

.lang-dropdown {
    display: none;
    position: absolute;
    top: calc(100% - 0.1rem);
    right: 0;
    background-color: #1a1a1a;
    min-width: 180px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.7);
    padding: 0.5rem 0;
    border-radius: 0 0 4px 4px;
    z-index: 101;
}

.lang-dropdown a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.lang-dropdown a:hover {
    background-color: #333333;
    color: #64b5f6;
}

.language-selector:hover .lang-dropdown {
    display: block;
}

.signup-btn {
    background-color: transparent;
    border: 1px solid #a0a0a0;
    color: #a0a0a0;
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.profile-area {
    position: relative;
    display: inline-block;
    margin-left: 0.75rem;
}

.profile-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #a0a0a0;
    background-color: transparent;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
}

.profile-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    background-color: #1a1a1a;
    min-width: 150px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.6);
    padding: 0.5rem 0;
    border-radius: 6px;
    z-index: 110;
}

.profile-dropdown a {
    display: block;
    padding: 0.65rem 1rem;
    color: #fff;
    text-decoration: none;
}

.profile-dropdown a:hover { background-color:#333; color:#64b5f6; }

.profile-area.open .profile-dropdown { display: block; }

.signup-btn:hover {
    background-color: #a0a0a0;
    color: #000000;
    border-color: #a0a0a0;
}

.hero {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 2rem;
}

.hero-content {
    max-width: 900px;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5.5rem);
    line-height: 0.9;
    letter-spacing: 0.2rem;
    margin-bottom: 1rem;
}

.rotating-text {
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.15rem;
    max-width: 700px;
    margin: 0 auto;
    color: #dcdcdc;
}

@keyframes rotateText {
    0%, 100% {
        transform: translateY(0);
    }
    20%, 40% {
        transform: translateY(-100%);
    }
    60%, 80% {
        transform: translateY(-200%);
    }
}

@media (max-width: 900px) {
    .nav-container {
        padding: 0 1rem;
        gap: 1rem;
        flex-wrap: wrap;
    }

    .nav-links {
        gap: 1rem;
        justify-content: center;
    }

    .topbar {
        padding: 0.75rem 0;
    }

    .notification-banner {
        padding: 0.75rem 1rem;
    }

    .hero-title {
        font-size: clamp(2.5rem, 8vw, 4rem);
    }
}

.hero {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.hero-title {
    font-size: 5rem;
    font-weight: 900;
    letter-spacing: 3px;
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.35);
    display: inline-flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 0.25rem;
}

.rotating-text {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
}

.text-word {
    display: inline-block;
    white-space: nowrap;
    opacity: 1;
    filter: blur(0);
}

@keyframes blink {
    0%, 49% {
        opacity: 1;
    }
    50%, 100% {
        opacity: 0;
    }
}

.hero-subtitle {
    color: #b0b0b0;
    font-size: 1rem;
    letter-spacing: 0.6px;
    max-width: 540px;
    line-height: 1.8;
    margin-top: 0.5rem;
}

@media (max-width: 1024px) {
    .nav-container {
        gap: 1rem;
    }

    .nav-links {
        gap: 1.5rem;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .rotating-text {
        min-width: 300px;
    }
}

@media (max-width: 768px) {
    .topbar {
        padding: 0.75rem 0;
    }

    .nav-container {
        padding: 0 1rem;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .logo {
        font-size: 1rem;
        letter-spacing: 1px;
    }

    .nav-links {
        order: 3;
        width: 100%;
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 0.5rem;
    }

    .nav-links a {
        font-size: 0.85rem;
    }

    .language-selector {
        order: 2;
    }

    .lang-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .hero {
        padding-top: 100px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .rotating-text {
        min-width: 200px;
    }

    .cursor {
        height: 2rem;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 0.9rem;
        letter-spacing: 0.5px;
    }

    .nav-links {
        gap: 0.75rem;
    }

    .nav-links a {
        font-size: 0.75rem;
    }

    .lang-btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.7rem;
    }

    .hero {
        padding-top: 70px;
    }

    .hero-title {
        font-size: 1.8rem;
        gap: 0.5rem;
    }

    .rotating-text {
        min-width: 150px;
    }

    .cursor {
        height: 1.5rem;
        width: 2px;
    }
}
