:root {
    --primary-blue: #2c5191;
    --secondary-blue: #6092a9;
    --accent-silver: #e0e0e0;
    --text-white: #ffffff;
    --text-dark: #222222;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
}

html,
body {
    height: 100%;
    min-height: 100vh;
}

body {
    margin: 0;
    font-family: 'Segoe UI', 'Helvetica Neue', sans-serif;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue)), url('https://www.transparenttextures.com/patterns/graphy.png');
    background-blend-mode: overlay;
    color: var(--text-white);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    line-height: 1.6;
}

header {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

header img {
    height: 45px;
    max-width: 180px;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

header img:hover {
    transform: scale(1.05);
}

.vengo-link {
    color: var(--text-white);
    font-weight: 500;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
}

.vengo-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.main-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    max-width: 1200px;
    margin: 60px auto 0 auto;
    padding: 0 24px;
    flex: 1 0 auto;
}

.hero {
    flex: 1 1 0;
    text-align: left;
    padding: 0;
    max-width: 500px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    background: linear-gradient(to right, var(--text-white), var(--accent-silver));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.1;
    margin-top: 0;
}

.hero p {
    font-size: 1.3rem;
    opacity: 0.9;
    line-height: 1.8;
}

/* Ensures the upload box does not shift when progress bar appears */
.upload-box {
    min-height: 480px;
    /* Added for layout stability */
    flex: 1 1 0;
    max-width: 480px;
    background: rgba(230, 240, 255, 0.65);
    backdrop-filter: blur(16px);
    border: 1.5px solid rgba(44, 81, 145, 0.12);
    box-shadow: 0 8px 32px rgba(44, 81, 145, 0.10), 0 1.5px 8px rgba(44, 81, 145, 0.08);
    color: #1a2633;
    margin: 40px auto;
    padding: 50px 40px;
    border-radius: 24px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.upload-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.upload-box h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 30px;
    color: #2c5191;
    letter-spacing: -1px;
}

.upload-box label,
.upload-box .file-types-note {
    color: #2c5191;
    font-weight: 500;
}

.upload-box input[type="text"],
.upload-box input[type="file"] {
    color: #1a2633;
    background: rgba(255, 255, 255, 0.98);
    border: 2px solid #cce0fa;
    box-shadow: 0 1px 4px rgba(44, 81, 145, 0.04), inset 0 2px 8px rgba(44, 81, 145, 0.06);
    padding: 18px 20px;
    border-radius: 16px;
    font-size: 1.08rem;
    margin-bottom: 8px;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.upload-box input[type="text"]:focus,
.upload-box input[type="file"]:focus {
    border-color: #1db86a;
    box-shadow: 0 0 0 2px #1db86a33, 0 1px 4px rgba(44, 81, 145, 0.04), inset 0 2px 8px rgba(44, 81, 145, 0.08);
    background: #fff;
}

.upload-box input[type="file"]::file-selector-button {
    color: #2c5191;
    background: #eaf6ff;
    border: 1px solid #cce0fa;
}

.upload-box input[type="file"]::file-selector-button:hover {
    background: #d0eaff;
}

.upload-box .file-types-note {
    color: #2c5191;
    opacity: 0.85;
    font-size: 0.98rem;
    margin-top: 10px;
}

.upload-box .form-group {
    margin-bottom: 28px;
}

.upload-box .submit-btn {
    margin-top: 36px;
}

.upload-box .divider {
    width: 100%;
    height: 1.5px;
    background: linear-gradient(to right, #e0e7ef 0%, #cce0fa 100%);
    margin: 32px 0 24px 0;
    border-radius: 1px;
    opacity: 0.7;
}

.upload-box input[type="text"]::placeholder {
    color: #7a8ca3;
    opacity: 1;
}

.upload-box input[type="text"] {
    width: 100%;
    max-width: 300px;
    margin: 0 auto 8px auto;
    display: block;
}

.submit-btn,
.upload-box input[type='submit'] {
    margin-top: 30px;
    padding: 18px 48px;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #1db86a 0%, #1de9b6 100%);
    border: none;
    border-radius: 32px;
    cursor: pointer;
    box-shadow: 0 6px 24px rgba(29, 184, 106, 0.18);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.submit-btn:hover,
.upload-box input[type='submit']:hover {
    background: linear-gradient(135deg, #11995e 0%, #13c9a3 100%);
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 10px 32px rgba(17, 153, 94, 0.18);
}

/* Progress Area Styles */
.progress-area-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 109, 243, 0.35);
    /* lighter, more bluish overlay */
    z-index: 2000;
}

#progressArea {
    background: rgba(91, 124, 190, 0.85);
    /* lighter, more bluish */
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    padding: 48px 64px;
    min-width: 340px;
    text-align: center;
}

.progress-text {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.progress-bar-container {
    width: 100%;
    max-width: 280px;
    height: 12px;
    background: rgba(255, 255, 255, 0.28);
    /* lighter background */
    border-radius: 6px;
    margin: 0 auto;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(44, 109, 243, 0.10);
}

.progress-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #2c5191 0%, #1db86a 60%, #ffe066 100%);
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 5px;
}

@media (max-width: 900px) {
    .main-content {
        flex-direction: column;
        gap: 24px;
        margin-top: 40px;
        padding: 0 16px;
    }

    .hero {
        text-align: center;
        max-width: 100%;
        padding: 0 16px;
    }

    .hero h1 {
        font-size: 2.5rem;
        margin-bottom: 16px;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .upload-box {
        width: 100%;
        max-width: 100%;
        padding: 30px 20px;
        margin: 20px auto;
    }

    .upload-box h2 {
        font-size: 1.75rem;
    }

    .upload-box input[type="text"],
    .upload-box input[type="file"] {
        padding: 14px 16px;
        font-size: 1rem;
    }

    .submit-btn {
        padding: 14px 32px;
        font-size: 1.1rem;
    }
}

@media (max-width: 700px) {
    header .nav-container {
        padding: 0 16px;
    }

    header img {
        height: 35px;
    }

    .vengo-link {
        font-size: 0.9rem;
        padding: 6px 12px;
    }

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

    .hero p {
        font-size: 1rem;
    }

    .upload-box {
        padding: 24px 16px;
    }

    .upload-box h2 {
        font-size: 1.5rem;
    }

    .file-types-note {
        font-size: 0.9rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.75rem;
    }

    .upload-box {
        margin: 16px auto;
        border-radius: 16px;
    }

    .upload-box input[type="text"],
    .upload-box input[type="file"] {
        padding: 12px 14px;
        font-size: 0.95rem;
    }

    .submit-btn {
        width: 100%;
        justify-content: center;
    }

    .modal-content {
        width: 95%;
        padding: 20px;
    }

    .video-container iframe {
        width: 100%;
        height: 200px;
    }
}

footer {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--glass-border);
    padding: 18px 0;
    margin-top: auto;
    width: 100%;
    position: relative;
    z-index: 10;
    flex-shrink: 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1rem;
}

.copyright {
    color: var(--text-white);
    opacity: 0.8;
    font-size: 0.98rem;
}

.footer-link {
    color: var(--text-white);
    text-decoration: none;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 8px;
    transition: all 0.3s;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    font-size: 1rem;
}

.footer-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #1db86a;
    transform: translateY(-2px);
}

@media (max-width: 700px) {
    .footer-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        padding: 0 10px;
    }
}

.results-dashboard-bg {
    max-width: 1200px;
    margin: 48px auto 32px auto;
    background: rgba(44, 81, 145, 0.18);
    border-radius: 32px;
    box-shadow: 0 8px 40px rgba(44, 81, 145, 0.18);
    padding: 48px 40px 40px 40px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: relative;
}

/* Ensures dashboard header aligns download button to the right */
.results-dashboard-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 32px;
}

.download-btn {
    background: linear-gradient(135deg, #2c5191 0%, #6092a9 100%);
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    padding: 16px 36px;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(44, 81, 145, 0.12);
    border: none;
    transition: background 0.2s, transform 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.download-btn:hover {
    background: linear-gradient(135deg, #1b355e 0%, #3e6fa1 100%);
    transform: translateY(-2px) scale(1.03);
}

.results-dashboard {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 32px;
    width: 100%;
}

.results-card {
    background: rgba(255, 255, 255, 0.82);
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(44, 81, 145, 0.10);
    padding: 28px 22px;
    color: #1a2633;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 260px;
    max-width: 320px;
    flex: 1 1 0;
}

.results-card h2 {
    color: #2c5191;
    font-size: 1.5rem;
    margin-bottom: 18px;
    font-weight: 700;
    text-align: left;
}

.results-card p,
.results-card li {
    color: #1a2633;
    font-size: 1.08rem;
    margin-bottom: 8px;
    text-align: left;
}

.results-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

@media (max-width: 1100px) {
    .results-dashboard-bg {
        max-width: 98vw;
        padding: 18px 2vw 18px 2vw;
    }

    .results-dashboard {
        gap: 18px;
    }
}

@media (max-width: 900px) {
    .results-dashboard {
        flex-direction: column;
        gap: 18px;
        align-items: stretch;
    }

    .results-card {
        min-width: 0;
        max-width: 100%;
    }
}

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

.modal-content {
    position: relative;
    background-color: transparent;
    margin: auto;
    padding: 20px;
    width: 80%;
    max-width: 800px;
    top: 50%;
    transform: translateY(-50%);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 20px;
    color: #fff;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #1db86a;
}