:root {
    --primary-blue: #00aaff;
    --primary-blue-hover: #0088cc;
    --dark-bg: #050a15;
    --text-color: #ffffff;
    --glass-bg: rgba(6, 15, 30, 0.7);
    --glass-border: rgba(0, 170, 255, 0.3);
}

body, html {
    margin: 0;
    padding: 0;
    font-family: 'Outfit', Arial, sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-color);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background image handling */
.hero-container {
    background-image: linear-gradient(rgba(5, 10, 21, 0.3), rgba(5, 10, 21, 0.7)), url('images/hero_bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.top-nav {
    padding: 2rem 5%;
    display: flex;
    justify-content: flex-start;
}

.top-nav .logo img {
    height: auto;
    max-height: 50px;
    filter: drop-shadow(0 0 10px rgba(0, 170, 255, 0.3));
}

.hero-content {
    flex: 1;
    display: flex;
    align-items: center; /* Vertically center or close to bottom depending on design */
    padding: 0 5% 5% 5%;
}

.hero-text {
    max-width: 650px;
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
    letter-spacing: -0.5px;
}

p {
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 2.5rem;
    color: #e2e8f0;
    text-shadow: 0 1px 5px rgba(0,0,0,0.8);
}

/* Buttons */
.action-buttons {
    display: flex;
    gap: 1.5rem;
}

.btn {
    padding: 0.9rem 2.2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Outfit', Arial, sans-serif;
}

.btn-primary {
    background-color: var(--primary-blue);
    border: none;
    color: white;
    box-shadow: 0 0 15px rgba(0, 170, 255, 0.4);
}

.btn-primary:hover {
    background-color: var(--primary-blue-hover);
    box-shadow: 0 0 25px rgba(0, 170, 255, 0.7);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: rgba(6, 15, 30, 0.5);
    border: 2px solid var(--primary-blue);
    color: white;
    backdrop-filter: blur(5px);
}

.btn-outline:hover {
    background-color: rgba(0, 170, 255, 0.15);
    box-shadow: 0 0 15px rgba(0, 170, 255, 0.3);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.6rem 1.2rem;
}

/* Modal specific styles */
.modal {
    display: none; 
    position: fixed; 
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0, 0, 0, 0.7); 
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.glass-effect {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
}

.modal-content {
    border-radius: 12px;
    padding: 2.5rem;
    width: 90%;
    max-width: 480px;
    position: relative;
    animation: modalSlideIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #8892b0;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.close-btn:hover {
    color: white;
    transform: scale(1.1);
}

.modal-content h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.8rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 15px;
    text-shadow: none;
}

.password-input-group {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

input[type="password"] {
    flex: 1;
    padding: 10px 15px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 4px;
    color: white;
    font-size: 1rem;
    font-family: 'Outfit', sans-serif;
    transition: all 0.3s;
}

input[type="password"]:focus {
    outline: none;
    border-color: var(--primary-blue);
    background: rgba(255,255,255,0.1);
}

.message {
    color: #ff4d4d;
    font-size: 0.95rem;
    margin-top: 10px;
}

.hidden {
    display: none !important;
}

#links {
    margin-top: 25px;
}

#links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#links a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    background: rgba(0, 170, 255, 0.05);
    border: 1px solid rgba(0, 170, 255, 0.2);
    border-radius: 6px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

#links a:hover {
    background: rgba(0, 170, 255, 0.15);
    border-color: var(--primary-blue);
    padding-left: 25px;
}

.modal-footer {
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.05);
    text-align: center;
    font-size: 0.9rem;
    color: #8892b0;
}

.modal-footer a {
    color: var(--primary-blue);
    text-decoration: none;
}

.modal-footer a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    p { font-size: 1.1rem; }
    .action-buttons { flex-direction: column; }
    .btn { width: 100%; text-align: center; }
    .hero-content {
        padding: 0 5% 10% 5%;
        align-items: center;
        text-align: center;
    }
}