:root {
    --primary-color: #a0c4ff;
    --secondary-color: #bdb2ff;
    --text-color: #ffffff;
    --bg-dark: #0f172a;
    --accent-glow: rgba(160, 196, 255, 0.6);
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Hero Section */
.hero {
    position: relative;
    height: 80vh;
    min-height: 500px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-image: url('./img/vega-top.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.3), rgba(15, 23, 42, 0.8));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    max-width: 800px;
    animation: fadeIn 2s ease-out;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 20px var(--accent-glow);
    background: linear-gradient(to right, #ffffff, #a0c4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--secondary-color);
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Content Section */
.content {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(160, 196, 255, 0.15);
    border-color: var(--primary-color);
}

.card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.btn {
    display: inline-block;
    margin-top: 2rem;
    padding: 12px 30px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: var(--bg-dark);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(160, 196, 255, 0.3);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(160, 196, 255, 0.5);
}

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

@keyframes fadeInModal {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
    animation: fadeInModal 0.3s ease-out;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.95));
    border: 1px solid rgba(160, 196, 255, 0.3);
    border-radius: 20px;
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 25px 80px rgba(160, 196, 255, 0.15);
    animation: slideUp 0.4s ease-out;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--secondary-color);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close:hover {
    color: var(--primary-color);
    background: rgba(160, 196, 255, 0.1);
}

.modal h2 {
    text-align: center;
    margin-bottom: 0.5rem;
    background: linear-gradient(90deg, #a0c4ff, #bdb2ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.8rem;
}

.modal-subtitle {
    text-align: center;
    color: #94a3b8;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
    font-size: 0.9rem;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid rgba(160, 196, 255, 0.3);
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.6);
    color: #fff;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(160, 196, 255, 0.2);
}

.form-group input::placeholder {
    color: #64748b;
}

.modal-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
    display: none;
    text-align: center;
}

.modal-error.active {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

.modal-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
}

.modal-footer {
    margin-top: 1.5rem;
    text-align: center;
    color: #64748b;
    font-size: 0.85rem;
}

.user-info {
    text-align: center;
    padding: 1.5rem;
}

.user-info h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.user-info p {
    color: #94a3b8;
    margin-bottom: 1.5rem;
}

.btn-logout {
    background: linear-gradient(45deg, #f87171, #fbbf24);
}

.btn-friends {
    background: linear-gradient(45deg, #34d399, #10b981);
    margin-bottom: 0.75rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }
    .subtitle {
        font-size: 1.1rem;
    }
    .hero {
        height: 60vh;
        background-attachment: scroll;
    }
    .modal {
        margin: 1rem;
        padding: 2rem;
    }
}