/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #1e66c0;
    --text-light: #ffffff;
    --text-dark: #333333;
    --bg-overlay: rgba(30, 102, 192, 0.75);
    /* #1e66c0 with opacity */
    --modal-bg: rgba(0, 0, 0, 0.85);
    --button-bg: #ffffff;
    --button-text: #1e66c0;
    --button-hover: #f0f0f0;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-light);
    background-color: #000;
    height: 100vh;
    overflow-x: hidden;
    position: relative;
}

a {
    color: var(--text-light);
    text-decoration: none;
    transition: opacity 0.2s;
}

a:hover {
    opacity: 0.8;
}

/* Background Video */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: -2;
}

/* Blue Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-overlay);
    z-index: -1;
}

/* Main Container */
.container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Header / Logo */
header {
    text-align: center;
    padding: 1rem 0 2rem 0;
}

.logo {
    max-width: 220px;
    height: auto;
}

/* Main Content Area */
main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

h1 {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
    text-align: center;
    letter-spacing: -0.5px;
}

.subtitle {
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 2rem;
    opacity: 0.9;
    font-weight: 300;
}

.key-points {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 5.5rem;
}

.key-point {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Interaction Area */
.upload-form {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1.5rem;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.action-buttons {
    display: flex;
    gap: 1rem;
}

.btn-action {
    flex: 1;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: var(--text-light);
    padding: 1rem;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.btn-action:hover {
    background: rgba(255, 255, 255, 0.25);
}

.btn-action.active {
    background: var(--button-bg);
    color: var(--button-text);
    border-color: var(--button-bg);
}

.btn-action span.icon {
    font-size: 1.5rem;
}

.example-link-container {
    text-align: center;
    margin: 0 0 0.4rem;
}

.example-link {
    font-size: 0.9rem;
    text-decoration: underline;
    opacity: 0.8;
    cursor: pointer;
    background: none;
    border: none;
    color: inherit;
    font-family: inherit;
}

.example-link:hover {
    opacity: 1;
}

.file-name-display {
    text-align: center;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    display: none;
}

.btn-submit {
    background: var(--button-bg);
    color: var(--button-text);
    border: none;
    width: 100%;
    padding: 1.25rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: transform 0.1s, background-color 0.2s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-submit:active {
    transform: scale(0.98);
}

.btn-submit:disabled {
    background: #94a3b8 !important;
    /* Force grey when disabled */
    color: rgba(255, 255, 255, 0.8);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--modal-bg);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: white;
    padding: 1rem;
    border-radius: 12px;
    max-width: 90%;
    width: 400px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-content img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem 0 1rem 0;
}

.disclaimer {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.disclaimer a {
    text-decoration: underline;
}

.footer-links {
    font-size: 0.8rem;
    opacity: 0.8;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.6rem;
}

@media (min-width: 768px) {
    h1 {
        font-size: 3rem;
    }

    .subtitle {
        font-size: 1.3rem;
    }

    .action-buttons {
        gap: 1.5rem;
    }

    .btn-action {
        padding: 1.5rem;
    }
}