/* Federation FFL Styles - Starship Troopers Aesthetic */

/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@400;600;700;900&family=Orbitron:wght@700;900&display=swap');

/* CSS Variables */
:root {
    --primary-red: #E63946;
    --primary-orange: #FF6B35;
    --secondary-orange: #FF8C42;
    --metallic-gray: #4A4E69;
    --dark-bg: #22223B;
    --darker-bg: #1a1a2e;
    --light-text: #F2F2F2;
    --accent-glow: rgba(255, 107, 53, 0.4);
    --gradient-primary: linear-gradient(135deg, #FF6B35, #E63946);
    --gradient-hover: linear-gradient(135deg, #FF8C42, #FF6B35);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Exo 2', sans-serif;
    background: #000000;
    color: var(--light-text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Video Background */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: #1a1a2e; /* Prevent white flash on load */
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 100px 20px;
    position: relative;
}

.logo-container {
    margin-bottom: 40px;
    animation: fadeInDown 1s ease-out;
}

.logo-container img {
    max-width: 500px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 20px var(--accent-glow));
}

.hero h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--primary-orange);
    text-transform: uppercase;
    margin-bottom: 15px;
    text-shadow: 0 0 30px var(--accent-glow), 0 2px 10px rgba(0,0,0,0.8);
    animation: fadeInUp 1s ease-out 0.3s both;
    line-height: 1.2;
}

.hero h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--secondary-orange);
    margin-bottom: 30px;
    animation: fadeInUp 1s ease-out 0.5s both;
}

.hero p {
    max-width: 800px;
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 0 auto 50px auto;
    color: rgba(242, 242, 242, 0.9);
    animation: fadeInUp 1s ease-out 0.7s both;
    text-align: center;
}

/* Buttons */
.cta-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    animation: fadeInUp 1s ease-out 0.9s both;
}

.btn {
    display: inline-block;
    padding: 18px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    border: 3px solid;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    color: white;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.4);
}

.btn-primary:hover {
    background: var(--gradient-hover);
    color: white;
    box-shadow: 0 6px 30px rgba(255, 107, 53, 0.6);
    transform: translateY(-3px);
}

.btn-secondary {
    background: transparent;
    border-color: var(--primary-orange);
    color: var(--primary-orange);
}

.btn-secondary:hover {
    background: var(--primary-orange);
    color: var(--darker-bg);
    border-color: var(--primary-orange);
    transform: translateY(-3px);
}

/* Form Section */
.form-section {
    min-height: 100vh;
    padding: 100px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-container {
    background: rgba(26, 26, 46, 0.95);
    border: 2px solid var(--metallic-gray);
    border-radius: 10px;
    padding: 50px;
    max-width: 700px;
    width: 100%;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.form-container h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    color: var(--primary-red);
    margin-bottom: 15px;
    text-align: center;
}

.form-container h2 {
    font-size: 1.3rem;
    color: var(--secondary-orange);
    margin-bottom: 40px;
    text-align: center;
    font-weight: 400;
}

/* Form Elements */
.form-group {
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(34, 34, 59, 0.3);
    border-radius: 8px;
    border-left: 3px solid transparent;
    transition: border-color 0.3s ease;
}

.form-group:hover {
    border-left-color: rgba(255, 107, 53, 0.3);
}

label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--light-text);
    font-size: 1rem;
}

input[type="text"],
input[type="email"],
textarea,
select {
    width: 100%;
    padding: 15px;
    background: rgba(42, 42, 82, 0.4);
    border: 2px solid var(--metallic-gray);
    border-radius: 5px;
    color: var(--light-text);
    font-size: 1rem;
    font-family: 'Exo 2', sans-serif;
    transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-orange);
    background: rgba(42, 42, 82, 0.6);
    box-shadow: 0 0 15px var(--accent-glow);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

/* Checkboxes */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-red);
}

.checkbox-item label {
    margin: 0;
    cursor: pointer;
}

/* Radio Buttons */
.radio-group {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.radio-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-red);
}

/* Scale Rating */
.scale-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.scale-group input[type="radio"] {
    margin: 0 5px;
}

.scale-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 0.9rem;
    color: rgba(242, 242, 242, 0.7);
}

/* Submit Button */
.btn-submit {
    width: 100%;
    padding: 20px;
    background: var(--primary-red);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.2rem;
    font-weight: 700;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 30px var(--accent-glow);
}

.btn-submit:hover {
    background: var(--secondary-orange);
    box-shadow: 0 0 40px rgba(255, 107, 53, 0.5);
    transform: translateY(-2px);
}

/* Thank You Page */
.thank-you {
    text-align: center;
    padding: 100px 20px;
}

.thank-you h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    color: var(--primary-red);
    margin-bottom: 30px;
}

.thank-you p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.spinner {
    border: 4px solid var(--metallic-gray);
    border-top: 4px solid var(--primary-red);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

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

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Modal Overlay */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9999;
    overflow-y: auto;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.modal.active {
    display: flex !important;
    opacity: 1;
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 107, 53, 0.5);
    border-radius: 10px;
    padding: 50px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 
        0 0 40px rgba(255, 107, 53, 0.3),
        0 10px 50px rgba(0, 0, 0, 0.9),
        inset 0 1px 0 rgba(255, 107, 53, 0.1);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--light-text);
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
}

.modal-close:hover {
    color: var(--primary-orange);
    transform: rotate(90deg);
}

/* Modal Headers */
.modal h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    color: var(--primary-orange);
    margin-bottom: 15px;
    text-align: center;
}

.modal h2 {
    font-size: 1.3rem;
    color: var(--secondary-orange);
    margin-bottom: 40px;
    text-align: center;
    font-weight: 400;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero h2 {
        font-size: 1.2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .logo-container img {
        max-width: 300px;
    }
    
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
    }
    
    .modal-content {
        padding: 30px 20px;
    }
    
    .modal h1 {
        font-size: 1.8rem;
        margin-top: 20px;
    }
    
    .modal-close {
        top: 10px;
        right: 10px;
        font-size: 2.5rem;
    }
    
    .form-group {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 15px;
    }
    
    .scale-group {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .logo-container img {
        max-width: 250px;
    }
    
    .btn {
        padding: 15px 30px;
        font-size: 1rem;
    }
    
    .modal-content {
        padding: 25px 15px;
    }
    
    .modal h1 {
        font-size: 1.5rem;
        margin-top: 15px;
    }
    
    .modal h2 {
        font-size: 1rem;
    }
    
    .modal-close {
        top: 8px;
        right: 8px;
        font-size: 2rem;
        width: 35px;
        height: 35px;
    }
    
    .form-group {
        padding: 12px;
    }
}

/* Mobile Video Background */
@media (max-width: 768px) {
    .video-desktop {
        display: none;
    }
    
    .video-overlay {
        background: rgba(0, 0, 0, 0) !important; /* No overlay on mobile */
    }
}

@media (min-width: 769px) {
    .video-mobile {
        display: none;
    }
}
