/**
 * Aviation Dashboard Styles Version: V1.5.0
 * Landing Page Styles
 */

body, html {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
}

/* --- Navbar --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background-color: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

nav .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--taf-green);
    letter-spacing: 1px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-link {
    color: var(--text-gray);
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--text-white);
}

.contact-btn {
    background: transparent;
    color: var(--text-white);
    border: 1px solid var(--text-gray);
    padding: 8px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    border-color: var(--metar-blue);
    color: var(--metar-blue);
    background-color: rgba(74, 144, 226, 0.05);
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    background: radial-gradient(circle at center, #232323 0%, var(--bg-dark) 100%);
    position: relative;
    overflow: hidden;
    animation: fadeIn 1.2s ease-out;
}

/* Background visual mockup - Less angle (15deg instead of 25deg) */
.hero-visual {
    position: absolute;
    width: 100%;
    max-width: 1050px;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%) perspective(1200px) rotateX(15deg) rotateY(-5deg) rotateZ(-2deg);
    opacity: 0.18; 
    filter: blur(1px);
    z-index: 1;
    pointer-events: none;
    animation: floatingBackground 10s ease-in-out infinite;
}

.mockup-img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 40px 80px rgba(0,0,0,0.7));
    border-radius: 15px;
}

/* Keyframes - Very subtle movement (2% vertical difference only) */
@keyframes floatingBackground {
    0%, 100% { 
        transform: translate(-50%, -51%) perspective(1200px) rotateX(15deg) rotateY(-5deg) rotateZ(-2deg); 
    }
    50% { 
        transform: translate(-50%, -49%) perspective(1200px) rotateX(17deg) rotateY(-4deg) rotateZ(-1deg); 
    }
}

/* Content above the visual */
.hero h1, .hero p, .hero-actions {
    position: relative;
    z-index: 10;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    background: linear-gradient(90deg, var(--metar-blue), var(--taf-green));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-gray);
    max-width: 700px;
    margin-bottom: 50px;
    line-height: 1.6;
}

/* --- Hero Actions & Dispatch Login --- */
.hero-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 16px 35px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--taf-green);
    color: var(--bg-dark);
    border: none;
    box-shadow: 0 4px 15px rgba(80, 227, 194, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(80, 227, 194, 0.4);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.03);
    color: var(--text-white);
    border: 2px solid #444;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: var(--text-gray);
    transform: translateY(-3px);
}

/* Dispatch Input Group */
.dispatch-login-group {
    display: flex;
    align-items: center;
    background: rgba(30, 30, 30, 0.8);
    border: 2px solid #444;
    border-radius: 30px;
    padding: 5px;
    backdrop-filter: blur(5px);
    height: 56px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.dispatch-login-group:focus-within {
    border-color: var(--text-gray);
}

.dispatch-code-input {
    background: transparent;
    border: none;
    color: var(--text-white);
    padding: 10px 15px;
    font-size: 1rem;
    width: 140px;
    outline: none;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.dispatch-code-input::placeholder {
    color: var(--text-muted);
    letter-spacing: normal;
    text-transform: none;
}

.dispatch-view-btn {
    padding: 10px 20px;
    margin: 0;
    border-radius: 25px;
    font-size: 1rem;
}

.dispatch-code-input:-webkit-autofill,
.dispatch-code-input:-webkit-autofill:hover, 
.dispatch-code-input:-webkit-autofill:focus, 
.dispatch-code-input:-webkit-autofill:active {
    -webkit-text-fill-color: var(--text-white) !important;
    -webkit-background-clip: text !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* --- Features Section --- */
.features {
    padding: 100px 50px;
    background-color: var(--bg-panel);
    text-align: center;
}

.features h2 {
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: var(--text-white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background-color: var(--bg-dark);
    padding: 40px 30px;
    border-radius: 12px;
    border: 1px solid #333;
    transition: transform 0.3s ease, border-color 0.3s ease;
    text-align: left;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--metar-blue);
}

.feature-card h3 {
    color: var(--taf-green);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--text-gray);
    line-height: 1.6;
    font-size: 1.05rem;
}

/* --- Logo Styling --- */
.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.nav-logo {
    height: 35px;
    width: auto;
    display: block;
}

.logo-text {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--taf-green);
    letter-spacing: 0.5px;
}

/* --- Footer --- */
footer {
    background-color: #0a0a0a;
    padding: 40px 50px 20px;
    border-top: 1px solid #222;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo {
    color: var(--text-white);
    font-size: 1.2rem;
    font-weight: bold;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--taf-green);
}

.footer-bottom {
    text-align: center;
    color: #555;
    font-size: 0.85rem;
    border-top: 1px solid #222;
    padding-top: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- Animations --- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.8rem; }
    .hero p { font-size: 1.1rem; }
    .hero-actions { flex-direction: column; width: 100%; max-width: 320px; margin: 0 auto; }
    .btn-large, .dispatch-login-group { width: 100%; justify-content: space-between; }
    nav { padding: 15px 20px; flex-direction: column; gap: 15px; }
    .footer-content { flex-direction: column; text-align: center; }
}

/**
 * Request System Integration
 */
/* Modal Background Overlay */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

/* Modal Content Box */
.modal-content {
    background-color: var(--bg-panel);
    padding: 40px;
    border: 1px solid var(--border);
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    text-align: left;
}

.modal-content h2 {
    margin-bottom: 10px;
    color: var(--taf-green);
}

.modal-content p {
    color: var(--text-gray);
    margin-bottom: 25px;
    font-size: 0.95rem;
}

/* --- Google Auth Styles --- */
.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    height: 45px;
    background-color: white;
    color: #1f1f1f;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-bottom: 20px;
}

.google-btn:hover {
    background-color: #f1f1f1;
}

.google-btn img {
    width: 20px;
    height: 20px;
}

.auth-separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-muted);
}

.auth-separator::before,
.auth-separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border);
}

.auth-separator span {
    padding: 0 10px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.auth-switch {
    margin-top: 25px; 
    text-align: center;
}

.auth-switch p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-gray);
}

/* Close Button */
.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    color: var(--text-gray);
    cursor: pointer;
    transition: color 0.3s;
}

.close-btn:hover {
    color: var(--alert-red);
}

/* Form Styling */
.input-group {
    margin-bottom: 15px;
}

.input-group input, .input-group textarea {
    width: 100%;
    padding: 12px;
    background-color: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: white;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.input-group input:focus, .input-group textarea:focus {
    border-color: var(--metar-blue);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}