:root {
    --primary-color: #f20303;
    --secondary-color: #1A1A1A;
    --text-color: #FFFFFF;
    --light-text: #FFFFFF;
    --background-color: #000000;
    --card-background: #1A1A1A;
    --hover-color: #CC0000;
    --color-bg-translucent: hsla(0, 0%, 100%, 0.144);
}

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

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    /*background: linear-gradient(to bottom, var(--color-bg-translucent), transparent 20%);*/
}

header {
    background-color: var(--secondary-color);
    padding: 1rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--primary-color);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    color: var(--light-text);
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo {
    height: 40px;
    width: auto;
}

.hero-logo {
    width: 80%;
    height: auto;
    margin-bottom: 0;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li a {
    color: var(--light-text);
    text-decoration: none;
    padding: 0.5rem 1rem;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--primary-color);
}

main {
    margin-top: 60px;
}

section {
    padding: 3rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.hero {
    text-align: center;
    background-image: url('images/QuadrantBrowserAdV3.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat; 
    color: var(--light-text);
    padding: 3rem 2rem;
    border: 2px solid var(--primary-color);
    /* height: 700px; */
    width: 100%;
    aspect-ratio: 16/9;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--background-color);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.hero h2 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 1rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 2rem;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: var(--hover-color);
}

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

.feature {
    text-align: center;
    padding: 2rem;
    background-color: var(--card-background);
    border-radius: 5px;
    border: 1px solid var(--primary-color);
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
}

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

.pricing-card {
    padding: 2rem;
    background-color: var(--card-background);
    border-radius: 5px;
    text-align: center;
    border: 1px solid var(--primary-color);
}

.pricing-card.premium {
    background-color: var(--secondary-color);
    color: var(--light-text);
    border: 2px solid var(--primary-color);
}

.price {
    font-size: 2rem;
    font-weight: bold;
    margin: 1rem 0;
    color: var(--primary-color);
}

.button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 1rem;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: var(--hover-color);
}

footer {
    background-color: var(--secondary-color);
    color: var(--light-text);
    text-align: center;
    padding: 1rem;
    margin-top: 4rem;
    border-top: 2px solid var(--primary-color);
}

.hero > div {
    position: relative;
    z-index: 2;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 2rem;
    border-radius: 10px;
    max-width: 800px;
    width: 90%;
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        text-align: center;
    }

    nav ul {
        margin-top: 1rem;
    }

    .hero {
        min-height: 300px;
        aspect-ratio: 16/9;
        padding: 2rem 1rem;
        background-size: cover;
        background-position: center;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero h2 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 300px;
        aspect-ratio: 16/9;
        background-size: cover;
        background-position: center;
    }
}

/* Add specific portrait mode handling */
@media (max-width: 768px) and (orientation: portrait) {
    .hero {
        aspect-ratio: 16/9;
        background-size: contain;
        background-position: bottom center;
        min-height: 480px;
    }
} 
@media (max-width: 480px) and (orientation: portrait) {
    .hero {
        aspect-ratio: 16/9;
        background-size: contain;
        background-position: bottom center;
        min-height: 290px;
    }
}

/* Login Button in Navigation */
.login-button {
    background-color: var(--primary-color) !important;
    border-radius: 5px !important;
    transition: background-color 0.3s ease !important;
}

.login-button:hover {
    background-color: var(--hover-color) !important;
    color: var(--light-text) !important;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--card-background);
    margin: 5% auto;
    padding: 0;
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    color: var(--light-text);
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 15px;
    top: 10px;
    cursor: pointer;
    z-index: 1;
    transition: color 0.3s ease;
}

.close:hover {
    color: var(--primary-color);
}

/* Login Form Styles */
.login-form {
    padding: 2rem;
}

.login-form h2 {
    color: var(--light-text);
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

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

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

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--secondary-color);
    border-radius: 5px;
    background-color: var(--background-color);
    color: var(--light-text);
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

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

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    color: var(--light-text);
    cursor: pointer;
    font-size: 14px;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
}

.forgot-link, .terms-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.forgot-link:hover, .terms-link:hover {
    color: var(--hover-color);
}

.login-submit-btn {
    width: 100%;
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 12px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-bottom: 1rem;
}

.login-submit-btn:hover {
    background-color: var(--hover-color);
}

.login-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.login-footer {
    text-align: center;
    margin-top: 1rem;
}

.login-footer p {
    color: var(--light-text);
    font-size: 14px;
}

.login-footer a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.login-footer a:hover {
    color: var(--hover-color);
}

/* Message Styles */
.error-message {
    background-color: rgba(255, 0, 0, 0.1);
    border: 1px solid #ff0000;
    color: #ff0000;
    padding: 12px;
    border-radius: 5px;
    margin-bottom: 1rem;
    font-size: 14px;
}

.success-message {
    background-color: rgba(0, 255, 0, 0.1);
    border: 1px solid #00ff00;
    color: #00ff00;
    padding: 12px;
    border-radius: 5px;
    margin-bottom: 1rem;
    font-size: 14px;
}

/* Loading Spinner */
.loading {
    display: none;
    text-align: center;
    margin: 1rem 0;
}

.spinner {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 480px) {
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .login-form {
        padding: 1.5rem;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
    }
} 