/* Basic Reset */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Roboto', Arial, sans-serif;
    display: flex;
    flex-direction: column;
    background-color: #f8fafc;
    color: #1e3a8a;
}

/* Adjust for fixed navbar */
body {
    padding-top: 60px; /* Space for navbar */
}

/* Full height layout */
.container-fluid {
    flex: 1;
}

/* Navbar */
.navbar {
    background-color: #fff;
    padding: 0.5rem 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.navbar-nav {
    display: flex;
    justify-content: center;
    width: 100%;
}

    .navbar-nav .nav-item {
        margin: 0 15px;
    }

/* Logo & website name */
.logo-container {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 35px;
    margin-right: 15px;
}

.website-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #2C3E50;
    text-transform: uppercase;
    letter-spacing: 3px;
    padding: 8px 15px;
    background-color: #ECF0F1;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, color 0.3s ease;
    cursor: default;
}

    .website-name:hover {
        transform: scale(1.1);
        color: #1ABC9C;
    }

/* Hero Section - Centered vertically & horizontally */
.hero-section {
    padding-top: 100px;
    padding-bottom: 60px;
    min-height: auto; /* Let it grow as needed */

    /*min-height: calc(100vh - 60px);*/ /* full height minus navbar */
    margin-bottom: -80px; /* pull the section up */
    z-index: 1;
    position: relative;
    background-color: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    box-sizing: border-box;
    color: #1e3a8a;
    text-align: center;
}


    .hero-section .container {
        max-width: 1000px;
    }

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.highlight {
    color: #1ABC9C; /* Teal highlight */
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 30px;
    font-weight: 500;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* File Upload Form */
.file-upload-form {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

    .file-upload-form input[type="file"] {
        display: none;
    }

/* Custom file upload button */
.custom-file-upload {
    cursor: pointer;
    padding: 15px 48px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 1.3rem;
    border: none;
    color: white;
    background: linear-gradient(90deg, #1ABC9C, #0F8F86);
    box-shadow: 0 8px 15px rgba(26, 188, 156, 0.3);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    user-select: none;
}

    .custom-file-upload svg {
        transition: transform 0.3s ease;
    }

    .custom-file-upload:hover {
        background: linear-gradient(90deg, #14A47A, #0C6D63);
        box-shadow: 0 12px 20px rgba(20, 164, 122, 0.5);
    }

        .custom-file-upload:hover svg {
            transform: translateX(5px);
        }

/* File selected text */
.file-selected-text {
    font-weight: 700;
    font-style: normal;
    color: #2c3e50;
    user-select: none;
    white-space: nowrap;
    min-height: 24px;
    margin-left: 20px;
    font-size: 1.1rem;
    min-width: 200px;
    transition: color 0.3s ease;
    text-align: center;
}

    .file-selected-text.empty {
        color: #a0a0a0;
        font-style: italic;
    }

/* File instructions */
.file-instructions {
    font-size: 0.9rem;
    color: #6b7280;
    width: 100%;
    text-align: center;
    margin-top: 5px;
}

/* File upload form button */
.file-upload-form button, .btn-primary {
    background-color: #13a897;
    border: none;
    padding: 12px 48px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-shadow: 0 6px 20px rgba(19, 168, 151, 0.3);
    white-space: nowrap;
    user-select: none;
    margin-top: 10px;
    width: auto;
}

    .file-upload-form button:hover,
    .btn-primary:hover,
    .btn-primary:focus {
        background-color: #0f6651;
        box-shadow: 0 8px 28px rgba(15, 102, 81, 0.5);
        outline: none;
    }

/* Image aside */
.hero-section .col-md-5 {
    display: flex;
    justify-content: center;
}

.hero-section img {
    max-width: 100%;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* Feature Boxes Section */
.features-section {
    margin-top: 60px; /* adjust as needed */
    background: linear-gradient(to right, #004e92, #000428);
    color: white;
    padding: 130px 15px 50px; /* top padding increased from 50px */
    position: relative;
    z-index: 0;
}
.feature-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 15px;
    margin: 15px;
    transition: transform 0.3s ease, background 0.3s ease;
    text-align: center;
}

    .feature-card:hover {
        transform: translateY(-8px);
        background: rgba(255, 255, 255, 0.15);
    }

.feature-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #1ABC9C;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    width: 100%;
    font-size: 0.9rem;
    color: #555;
}

    footer a {
        text-decoration: none;
        color: #1ABC9C;
        font-weight: 600;
    }

        footer a:hover {
            text-decoration: underline;
        }

/* Responsive Adjustments */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .file-upload-form {
        flex-direction: column;
        max-width: 100%;
    }

        .file-upload-form button {
            width: 100%;
        }

    .file-selected-text {
        min-width: auto;
        text-align: center;
    }

    .hero-section img {
        max-width: 80%;
    }
}

.upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
}

.upload-icon i {
    display: block;
    width: 100%;
    text-align: center;
    margin: 0;
    padding: 0;
}


@media (max-width: 768px) {
    .upload-area.horizontal-layout {
        flex-direction: column;
        max-width: 100%;
        padding: 1.5rem 1rem;
    }

    .upload-label {
        margin-bottom: 1rem;
    }

    .upload-controls {
        width: 100%;
        flex-direction: row;
        justify-content: space-around;
        min-width: auto;
    }

    .btn-primary {
        width: auto;
        padding: 14px 24px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .feature-card {
        margin: 15px 0;
    }

    .btn-primary {
        width: 100%;
        padding: 14px 0;
    }
}

/* Utility */
.text-light-opacity {
    color: rgba(30, 58, 138, 0.6);
}

/* Upload Area Base */

/* Horizontal Layout Style */
.upload-area.horizontal-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    max-width: 750px;
    margin: 2rem auto;
    padding: 1.2rem 1.8rem;
    border: 2px dashed #13a897;
    border-radius: 20px;
    background-color: #e6fffa;
    box-shadow: 0 6px 16px rgba(19, 168, 151, 0.2);
    cursor: pointer;
    user-select: none;
}

/* Vertical Layout Style (Updated Black & White) */
.upload-area.vertical-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 240px; /* Increased to accommodate content */
    padding: 1.5rem;
    border: 2px dashed #000;
    border-radius: 20px;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: visible; /* Ensure content isn’t clipped */
    box-sizing: border-box;
}


    .upload-area.vertical-layout .upload-label {
        width: 100%;
        overflow-wrap: break-word;
    }

.upload-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 64px;
    height: 64px;
    font-size: 36px; /* Adjust size as needed */
    color: #000;
    background: #fff;
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    margin-bottom: 12px;
}


    .upload-area.vertical-layout .upload-icon {
        display: flex;
        justify-content: center; /* center horizontally */
        align-items: center; /* center vertically */
        font-size: 50px;
        color: #000;
        margin-bottom: 12px;
        background: #fff;
        padding: 10px;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        width: 64px;
        height: 64px;
    }

    .upload-area.vertical-layout .upload-instruction {
        font-size: 1.4rem;
        font-weight: 700;
        color: #222;
        margin: 0;
        line-height: 1.3;
    }

        .upload-area.vertical-layout .upload-instruction:hover {
            color: #000;
            text-shadow: none;
        }

/* Upload Subinstruction */
.upload-subinstruction {
    font-size: 0.8rem;
    font-weight: 400;
    color: #222;
    margin-top: 10px;
    user-select: none;
}

.upload-area.vertical-layout .upload-subinstruction {
    font-size: 1rem;
    color: #111;
}

/* Remove Button */
.remove-button {
    background-color: #000;
    border: none;
    border-radius: 40px;
    color: white;
    padding: 8px 16px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    user-select: none;
    transition: background-color 0.3s ease;
    margin-left: 10px;
    white-space: nowrap;
}

    .remove-button:hover {
        background-color: #222;
    }

/* Loading Spinner */
.loading-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(0,0,0,0.1);
    border-top: 3px solid #000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 15px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.footer {
    background-color: #1a1a1a;
    font-family: 'Roboto', sans-serif;
}

.footer-title {
    font-weight: 600;
    font-size: 1.25rem;
    color: #ffdd57;
}

.footer-link {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

    .footer-link:hover {
        color: #ffdd57;
        text-decoration: underline;
    }

.footer-links li a {
    font-weight: 500;
    font-size: 0.95rem;
}

/* Icon spacing */
.footer i {
    color: #ffdd57;
}

/* Responsive spacing */
@media (max-width: 767.98px) {
    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        display: block; /* Disable flex centering */
        padding-top: 60px; /* Adjust as needed */
        padding-bottom: 30px;
        min-height: auto; /* Allow natural height */
    }

    .hero-title {
        margin-top: 0; /* Remove extra margin if any */
    }
}

.hero-title, .hero-subtitle {
    position: relative;
    z-index: 2;
}


