/* =========================================
   1. Base & Layout
   ========================================= */
   html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    overflow-x: hidden; /* Prevents horizontal scroll from overflowing text */
}

body {
    padding-top: 76px; /* Accounts for navbar height */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f8f9fa;
}

/* Background Image Handling */
.background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(8px);
    -webkit-filter: blur(8px);
    z-index: -1;
    opacity: 0.6;
}

/* Main Container Wrapper */
.container {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
    /* Centering Fixes */
    margin-left: auto;
    margin-right: auto;
    max-width: 1140px; /* Bootstrap standard, ensures it doesn't get too wide */
    width: 90%; /* Default width for standard screens */
}

/* =========================================
   2. Navbar
   ========================================= */
.navbar {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    padding: 10px 1rem;
}

.navbar-brand {
    font-weight: 600;
    color: #333 !important;
}

.nav-link {
    font-weight: 500;
    color: #555 !important;
    margin-right: 10px;
}

.nav-link.active {
    color: #007bff !important;
    font-weight: 700;
}

.navbar-logo {
    height: 45px;
    width: auto;
    margin-left: 12px;
}

/* =========================================
   3. Cards (Datasets)
   ========================================= */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    background-color: #fff;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

.card-img-top {
    height: 220px;
    object-fit: cover;
    border-bottom: 1px solid #f0f0f0;
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-weight: 700;
    margin-bottom: 0.75rem;
}

/* Coming Soon Overlay */
.coming-soon-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(33, 37, 41, 0.7); 
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    backdrop-filter: blur(2px);
}

.coming-soon-text {
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 2px solid white;
    padding: 10px 20px;
    border-radius: 4px;
}

.blur {
    filter: blur(3px);
}

/* =========================================
   4. Minimal Collaborators Section (TIGHT)
   ========================================= */
.scrolling-collaborators {
    padding: 10px 0;
    background: transparent;
}

/* Remove bottom margin for containers inside these sections to save space */
.scrolling-collaborators .container {
    margin-bottom: 10px;
    padding-bottom: 20px;
}

.section-heading {
    margin-bottom: 15px;
    text-align: center;
}

.section-heading h3 {
    font-weight: 700;
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 0;
}

.section-heading hr {
    width: 50px;
    border-top: 3px solid #007bff;
    margin: 10px auto;
}

.scroll-container {
    width: 100%;
    overflow: visible; 
}

.scroll-content {
    display: flex;
    flex-wrap: wrap;       
    justify-content: center; 
    gap: 20px;
}

.feature-item {
    width: 130px;
    text-align: center;
    margin-bottom: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feature-item img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 8px;
    border: 3px solid #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.feature-item h4 {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 2px;
    color: #2c3e50;
    line-height: 1.2;
}

.feature-item p {
    font-size: 11px;
    color: #6c757d;
    line-height: 1.2;
    margin: 0;
}

/* =========================================
   5. Forms & Utilities
   ========================================= */
.form-group {
    margin-bottom: 1rem;
}

.form-control {
    border-radius: 6px;
    border: 1px solid #ced4da;
    padding: 10px 15px;
    height: auto;
    min-height: 45px;
}

.form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    border-color: #80bdff;
}

.btn-primary {
    padding: 8px 20px;
    font-weight: 600;
    border-radius: 6px;
    background-color: #007bff;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 5px;
    display: block;
}

.sample-image-container {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 15px;
}

.sample-image {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

/* =========================================
   6. Footer
   ========================================= */
.footer {
    font-size: 0.9rem;
    background-color: transparent; 
    color: #333;
    padding: 20px 0;
    margin-top: auto; 
    width: 100%;
}

.footer span {
    display: block;
}
.footer .container {
    margin-bottom: 0;
}
/* =========================================
   7. MOBILE OPTIMIZATION (Fixes Layout Issues)
   ========================================= */
@media (max-width: 768px) {
    /* Adjust Navbar spacing */
    body {
        padding-top: 60px;
    }

    /* Fix Main Container Alignment */
    .container {
        width: 95% !important; /* Forces container to leave small gaps on sides */
        margin-left: auto !important;
        margin-right: auto !important;
        padding: 15px !important; /* Reduces padding to give content more room */
        margin-bottom: 20px;
    }

    /* Fix Title Overlap - Forces text to wrap and shrinks size */
    h1, .display-4 {
        font-size: 1.8rem !important; /* Smaller title */
        word-wrap: break-word; /* Breaks long words if necessary */
        overflow-wrap: break-word;
        line-height: 1.3;
    }
    
    .lead {
        font-size: 1rem;
    }

    /* Fix Jumbotron (Hero Section) padding */
    .jumbotron {
        padding: 2rem 1rem !important;
    }

    /* Collaborative Section Mobile Tweaks */
    .scroll-content {
        gap: 15px; /* Tighter gap on mobile */
    }

    .feature-item {
        width: 45%; /* Two items per row on mobile instead of fixed pixel width */
        max-width: 150px;
    }
    
    .feature-item img {
        width: 70px;
        height: 70px;
    }
}