/* Professional Career Assessment Application Styles */

/* Typography and Base Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: white;
    min-height: 100vh;
    position: relative;
}

/* Poppins for Headlines */
h1, h2, h3, h4, h5, h6, .headline {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 600;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* New MyJobFit Brand Palette */
:root {
    --primary-blue: #1F70C1;       /* Primary Blue - main brand color */
    --light-gray: #F8F7F4;         /* Light Gray - backgrounds */
    --purple: #4B309C;             /* Purple accent */
    --teal: #1B9AAA;               /* Teal accent */
    --dark-gray: #1F2937;          /* Dark Gray - text */
    --orange-accent: #f97316;      /* Orange - CTA buttons */

    /* Semantic colors */
    --primary-color: #1F70C1;      /* Primary Blue */
    --secondary-color: #1F2937;    /* Dark Gray */
    --success-color: #1B9AAA;      /* Teal for success */
    --warning-color: #f97316;      /* Orange for warnings */
    --danger-color: #ef4444;       /* Red for errors */
    --light-color: #ffffff;        /* Pure White */
    --text-dark: #1F2937;          /* Dark text */
    --text-muted: #6b7280;         /* Muted text */
    --border-color: #e5e7eb;       /* Light border */
    --surface-color: #F8F7F4;      /* Light gray surface */
    --hero-bg: #F8F7F4;            /* Light gray hero background */
}

/* Hero section styling */
.hero-section {
    background: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 2rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

/* Upload section styling */
.upload-section {
    background: white;
    min-height: 100vh;
    padding: 4rem 0;
}

.upload-content {
    max-width: 900px;
    margin: 0 auto;
}

/* Modern card styling */
.card {
    border: 1px solid var(--border-color);
    border-radius: 1.5rem;
    background: white;
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06);
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.card:hover {
    border-color: var(--orange-accent);
    box-shadow: 
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: translateY(-2px);
}

/* Hero card styling */
.hero-card {
    background: white;
    border: 1px solid var(--border-color);
}

/* Hero header styling */
.hero-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-dark);
    font-weight: 800;
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

/* Hero tagline styling */
.hero-tagline {
    font-size: 1.4rem;
    color: var(--text-muted);
    font-weight: 500;
    margin: 0 auto 3rem;
    max-width: 600px;
    text-align: center;
}

/* Hero illustration styling */
.hero-illustration {
    margin: 3rem auto 2rem;
}

.hero-illustration img {
    max-width: 100%;
    height: auto;
    border-radius: 1rem;
}

/* Hero CTA styling */
.hero-cta {
    margin-top: 2rem;
}

/* Upload section header */
.upload-title {
    color: var(--text-dark);
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Navigation styling with glass morphism */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(248, 247, 244, 0.8);
    backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(229, 231, 235, 0.3);
    transition: all 0.3s ease;
}

.top-nav:hover {
    background: rgba(248, 247, 244, 0.9);
}

.nav-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-dark);
    text-decoration: none;
}

.nav-brand img {
    border-radius: 8px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--text-dark);
}

/* Enhanced form styling */
.form-control {
    border: 2px solid var(--border-color);
    border-radius: 1rem;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    color: var(--text-dark);
    background: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 
        0 0 0 0.25rem rgba(31, 112, 193, 0.1),
        0 4px 12px rgba(31, 112, 193, 0.15);
    background: white;
    outline: none;
    transform: translateY(-1px);
}

.form-control::placeholder {
    color: rgba(107, 114, 128, 0.7);
}

.form-label {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* File input professional styling */
.form-control[type="file"] {
    border: 2px dashed var(--primary-color);
    padding: 1.5rem;
    background-color: #f8fafc;
    text-align: center;
    color: var(--primary-color);
    font-weight: 600;
}

.form-control[type="file"]:hover {
    border-color: var(--primary-color);
    background-color: #f1f5f9;
    color: var(--primary-color);
}

/* Enhanced button styling with gradients */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e40af 100%) !important;
    border: none !important;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 1rem;
    color: white !important;
    font-size: 1.1rem;
    position: relative;
    box-shadow: 
        0 4px 14px 0 rgba(31, 112, 193, 0.3),
        0 2px 4px 0 rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1e40af 0%, var(--primary-color) 100%) !important;
    transform: translateY(-2px);
    box-shadow: 
        0 8px 25px 0 rgba(31, 112, 193, 0.4),
        0 4px 8px 0 rgba(0, 0, 0, 0.15);
    color: white !important;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:focus {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 0.25rem rgba(5, 150, 105, 0.25) !important;
    color: white !important;
}

.btn-primary:active {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: white !important;
}

/* Navigation improvements */
.navbar {
    min-height: 80px;
}

.nav-brand img {
    transition: all 0.3s ease;
}

.nav-link {
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #1B9AAA !important;
}

/* Navigation button styling */
nav.navbar button.btn {
    padding: 6px 12px !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    font-size: 0.95rem !important;
    transition: all 0.2s ease;
}

nav.navbar button.btn-primary {
    background-color: #1F70C1 !important;
    border-color: #1F70C1 !important;
    color: white !important;
}

nav.navbar button.btn-primary:hover {
    background-color: #1B5FA3 !important;
    border-color: #1B5FA3 !important;
}

/* Consistent donate button styling across all pages - match Analyze button exactly */
nav.navbar a[href*="donate"],
a[href*="donate"].btn,
nav.navbar span.btn[style*="background-color: #f97316"] {
    background-color: #f97316 !important;
    border-color: #f97316 !important;
    color: white !important;
    border-radius: 6px !important;
    font-weight: 500 !important;
    font-size: 0.95rem !important;
    padding: 6px 12px !important;
    text-decoration: none !important;
    transition: all 0.2s ease;
    display: inline-block;
    min-width: auto;
    height: auto;
    box-sizing: border-box;
}

nav.navbar a[href*="donate"]:hover,
a[href*="donate"].btn:hover,
nav.navbar span.btn[style*="background-color: #f97316"]:hover {
    background-color: #ea580c !important;
    border-color: #ea580c !important;
    color: white !important;
}

/* Enhanced loading spinner */
.spinner-border {
    border-width: 4px;
    width: 3rem !important;
    height: 3rem !important;
    border-style: solid;
    border-color: rgba(31, 112, 193, 0.2);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    position: relative;
    animation: spin 1.2s linear infinite;
}

.spinner-border::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 4px solid transparent;
    border-top-color: var(--orange-accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite reverse;
}

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

/* Enhanced progress bar */
.progress {
    background-color: #e9ecef;
    border-radius: 0.375rem;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    background-color: var(--primary-color);
    border-radius: 0.375rem;
    transition: width 0.6s ease;
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-image: linear-gradient(
        -45deg,
        rgba(255, 255, 255, 0.2) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.2) 75%,
        transparent 75%,
        transparent
    );
    background-size: 1rem 1rem;
    animation: move 1s linear infinite;
}

@keyframes move {
    0% { background-position: 0 0; }
    100% { background-position: 1rem 1rem; }
}

/* Match percentage styling */
#matchPercentage {
    font-size: 5rem;
    font-weight: 900;
    color: var(--primary-color);
    position: relative;
    text-shadow: 0 2px 4px rgba(5, 150, 105, 0.1);
}

/* Step indicators styling */
.step-item {
    position: relative;
    transition: all 0.3s ease;
}

.step-item:hover {
    transform: translateY(-3px);
}

.step-icon {
    background: rgba(31, 112, 193, 0.1);
    border-radius: 50%;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
    transition: all 0.3s ease;
}

.step-item:hover .step-icon {
    background: rgba(31, 112, 193, 0.2);
    transform: scale(1.1);
}

.step-card {
    transition: all 0.3s ease;
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Testimonial section styling */
.testimonial-section {
    background: linear-gradient(135deg, rgba(31, 112, 193, 0.05) 0%, rgba(249, 115, 22, 0.05) 100%);
}

.testimonial {
    position: relative;
    padding: 2rem;
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Textarea styling */
textarea.form-control {
    resize: none;
    overflow-y: auto;
    min-height: 200px;
    max-height: 200px;
}

/* Professional list styling */
#strengthsList li,
#gapsList li,
#insightsList li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e9ecef;
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
}

#strengthsList li:last-child,
#gapsList li:last-child,
#insightsList li:last-child {
    border-bottom: none;
}

/* Development Opportunities styling */
#gapsList .badge {
    font-size: 0.75rem;
    font-weight: 600;
    flex-shrink: 0;
    border-radius: 0.25rem;
}

#gapsList li:last-child {
    border-bottom: none !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Strength and insight list items should stack vertically normally */
#strengthsList li,
#insightsList li {
    display: block;
}

/* Job summary structured formatting */
.job-summary-structured h6 {
    color: var(--primary-color) !important;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.job-summary-structured p {
    font-size: 0.95rem;
    line-height: 1.4;
    color: var(--text-dark);
}

.job-summary-structured .mb-3:last-child {
    margin-bottom: 0.5rem !important;
}

/* History section styling */
.history-item {
    transition: all 0.2s ease;
    border-color: #e9ecef !important;
}

.history-item:hover {
    border-color: var(--primary-color) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.history-item h6 {
    color: var(--text-dark);
    font-weight: 600;
}

.history-item .badge {
    font-size: 0.8rem;
    font-weight: 600;
}

/* Enhanced gap display styling */
#gapsList .small.text-muted {
    font-size: 0.8rem;
    line-height: 1.3;
    padding-left: 1.5rem;
}

/* Industry overview structured formatting */
.industry-overview-structured h6 {
    color: var(--primary-color) !important;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.industry-overview-structured p {
    font-size: 0.95rem;
    line-height: 1.4;
    color: var(--text-dark);
}

/* Score scale highlighting */
.score-scale-active {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.score-scale-inactive {
    opacity: 0.7;
    transition: all 0.3s ease;
}

/* Enhanced results section animation */
#resultsSection {
    animation: slideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
    from { 
        opacity: 0; 
        transform: translateY(50px) scale(0.95); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
    }
}

/* Staggered animation for cards */
#resultsSection .card:nth-child(1) { animation-delay: 0.1s; }
#resultsSection .card:nth-child(2) { animation-delay: 0.2s; }
#resultsSection .card:nth-child(3) { animation-delay: 0.3s; }
#resultsSection .card:nth-child(4) { animation-delay: 0.4s; }

#resultsSection .card {
    animation: cardAppear 0.6s ease-out both;
}

@keyframes cardAppear {
    from {
        opacity: 0;
        transform: translateY(30px) rotateX(10deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0deg);
    }
}

/* Professional badge styling */
.badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

.badge.bg-primary {
    background-color: var(--primary-color) !important;
    color: white;
}

.badge.bg-success {
    background-color: var(--success-color) !important;
    color: white;
}

.badge.bg-warning {
    background-color: var(--warning-color) !important;
    color: white;
}

.badge.bg-danger {
    background-color: var(--danger-color) !important;
    color: white;
}

/* Error alert styling */
.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
    border-radius: 0.375rem;
}

#errorAlert {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-3px); }
    75% { transform: translateX(3px); }
}

/* Button loading state */
.btn-loading {
    position: relative;
    color: transparent;
}

.btn-loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Professional card headers */
.card-header {
    background-color: var(--surface-color);
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 1.5rem;
    border-radius: 0.75rem 0.75rem 0 0;
}

.card-header h3,
.card-header h4,
.card-header h5,
.card-header h6 {
    color: var(--text-dark);
    font-weight: 600;
    margin: 0;
}

/* Background colors */
.bg-success {
    background-color: var(--success-color) !important;
}

.bg-warning {
    background-color: var(--warning-color) !important;
}

.bg-light {
    background-color: #f8f9fa !important;
}

.bg-white {
    background-color: #ffffff !important;
}

/* Text colors */
.text-dark {
    color: var(--text-dark) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

.text-secondary {
    color: var(--secondary-color) !important;
}

/* Enhanced container with floating elements */
.container {
    max-width: 1200px;
    position: relative;
    z-index: 1;
}

/* Check Another Job button styling */
.border-top {
    border-top: 2px solid var(--border-color) !important;
}

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

.btn-outline-primary:hover {
    color: #ffffff;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

/* Donation button hover effects */
.donation-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2) !important;
    background-color: rgba(255,255,255,0.95) !important;
}

#customAmountBtn:hover {
    background-color: rgba(255,255,255,0.1) !important;
    border-color: rgba(255,255,255,0.8) !important;
}

/* High contrast text for accessibility */
.card-text,
.form-text,
p,
li {
    color: var(--text-dark);
}

/* Professional shadows */
.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.shadow {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Icon styling */
.fas {
    font-weight: 900;
}

/* Ensure proper contrast for all interactive elements */
.btn, .form-control, .card {
    color: var(--text-dark);
}

/* Professional margin and padding adjustments */
.mb-5 {
    margin-bottom: 3rem !important;
}

.p-4 {
    padding: 1.5rem !important;
}

/* Mobile and responsive design */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden !important;
    }

    /* Mobile navigation styling */
    .navbar {
        padding: 15px 0 !important;
        min-height: auto !important;
    }

    .navbar .container {
        padding: 0 15px !important;
    }

    .navbar .d-flex.justify-content-between.align-items-center.w-100 {
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        gap: 0.5rem !important;
        width: 100% !important;
    }

    .navbar .nav-brand.d-flex.align-items-center {
        align-self: flex-start !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        margin-bottom: 0 !important;
        order: -1 !important;
        width: auto !important;
        margin-left: 0 !important;
        margin-right: auto !important;
        flex-shrink: 0 !important;
        text-align: left !important;
    }

    .navbar .d-flex.align-items-center[style*="gap: 1.5rem"],
    .navbar .d-flex.align-items-center[style*="gap: 3"],
    .navbar .d-flex.align-items-center:not(.nav-brand) {
        width: 100% !important;
        justify-content: center !important;
        flex-wrap: nowrap !important;
        gap: 4px !important;
        order: 1 !important;
        margin-left: 0 !important;
        margin-top: 0.5rem !important;
    }

    .navbar .d-flex.align-items-center > *:not(.nav-brand) {
        flex: 0 1 auto !important;
        margin: 0 0.4rem !important;
    }

    /* Consistent mobile navigation link styling */
    .nav-link,
    .navbar a:not(.btn):not(.nav-brand),
    .navbar span:not(.btn) {
        font-size: 0.85rem !important;
        white-space: nowrap !important;
        padding: 6px 8px !important;
        text-align: center !important;
        font-weight: 500 !important;
        line-height: 1.2 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* Consistent mobile button styling for all navigation buttons */
    nav.navbar button.btn,
    nav.navbar a[href*="donate"],
    nav.navbar .btn,
    nav.navbar button,
    .navbar a.btn {
        padding: 6px 8px !important;
        font-size: 0.85rem !important;
        white-space: nowrap !important;
        min-width: 65px !important;
        margin: 0 0.4rem !important;
        border-radius: 6px !important;
        font-weight: 500 !important;
        line-height: 1.2 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-decoration: none !important;
        height: 32px !important;
        box-sizing: border-box !important;
    }

    /* Mobile logo sizing */
    .navbar img,
    .nav-brand img,
    .hero-section img[alt="MyJobFit.ai Logo"] {
        height: 70px !important;
    }

    /* Mobile hero section */
    .hero-section {
        padding: 0 0 40px 0 !important;
        margin-top: 0 !important;
        min-height: auto !important;
    }

    .hero-title {
        font-size: 2rem !important;
        text-align: center;
        margin-bottom: 1.5rem !important;
    }

    .hero-tagline {
        font-size: 1.1rem !important;
        max-width: 100% !important;
        text-align: center;
        margin: 0 auto 2rem !important;
    }

    .hero-cta {
        text-align: center;
        margin-bottom: 3rem !important;
    }

    .hero-illustration {
        text-align: center;
    }

    .hero-illustration img {
        max-width: 350px !important;
    }

    /* Mobile three-step process */
    .hero-section .text-center.mt-4.mb-4 {
        margin-top: 1rem !important;
        margin-bottom: 1rem !important;
    }

    .hero-section .col-4 {
        padding: 0 2px !important;
        flex: 1 !important;
        max-width: 33.33% !important;
    }

    .hero-section div[style*="width: 35px; height: 35px"] {
        width: 28px !important;
        height: 28px !important;
    }

    .hero-section .col-4 i[style*="font-size: 16px"] {
        font-size: 12px !important;
    }

    .hero-section span[style*="font-size: 1.1rem"] {
        font-size: 0.9rem !important;
        margin-right: 4px !important;
    }

    .hero-section p[style*="font-size: 0.85rem"] {
        font-size: 0.7rem !important;
        line-height: 1.2 !important;
        margin: 0 !important;
    }

    .hero-section button[style*="padding: 0.8rem 1.5rem"],
    .hero-section .btn,
    a[href*="upload-section"].btn,
    a[href*="Analyze"].btn {
        font-size: 0.9rem !important;
        padding: 0.6rem 1.2rem !important;
        min-width: 120px !important;
        height: 40px !important;
        border-radius: 6px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .hero-section .row.justify-content-center.mt-2.mb-5 {
        margin-bottom: 1rem !important;
        margin-top: 0.5rem !important;
    }

    /* Mobile testimonial section */
    .testimonial-section {
        margin-top: -10px !important;
        padding: 10px 0 15px 0 !important;
    }

    .testimonial-section h5 {
        font-size: 1rem !important;
        margin-bottom: 0.5rem !important;
    }

    .testimonial-section .testimonial p {
        font-size: 0.85rem !important;
        line-height: 1.4 !important;
        margin-bottom: 0.5rem !important;
    }

    .testimonial-section .testimonial div p {
        font-size: 0.8rem !important;
    }

    /* Mobile upload section */
    .upload-section {
        padding-top: 1.5rem !important;
        padding-bottom: 2rem !important;
    }

    .upload-section .text-center.mb-5 {
        margin-bottom: 2rem !important;
    }

    .upload-section h2 {
        font-size: 1.5rem !important;
        margin-bottom: 0.5rem !important;
    }

    .upload-section p {
        font-size: 0.9rem !important;
        margin-bottom: 1rem !important;
    }

    .upload-section .card-header h4 {
        font-size: 1rem !important;
    }

    .upload-section .card-body {
        padding: 1rem !important;
    }

    .upload-section .mb-4 {
        margin-bottom: 1rem !important;
    }

    .upload-section .form-label {
        font-size: 0.9rem !important;
        margin-bottom: 0.25rem !important;
    }

    .upload-section .form-text {
        font-size: 0.75rem !important;
    }

    .upload-section .form-control {
        font-size: 0.9rem !important;
        padding: 0.75rem !important;
    }

    .upload-section .btn-lg {
        font-size: 1rem !important;
        padding: 1rem 2rem !important;
    }

    /* Mobile donation buttons */
    .donation-btn, #customAmountBtn {
        min-height: 80px !important;
        height: 80px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 8px 4px !important;
    }

    .donation-btn div, #customAmountBtn div {
        line-height: 1.1 !important;
        margin-bottom: 2px !important;
    }

    .donation-btn small, #customAmountBtn small {
        font-size: 0.7rem !important;
        line-height: 1 !important;
    }

    /* Fix excessive spacing under "How It Works" Get Started button */
    .how-it-works-section .text-center.mt-5 {
        margin-top: 1rem !important;
        margin-bottom: 0.5rem !important;
    }

    .how-it-works-section .mt-5 {
        margin-top: 1rem !important;
    }

    .mobile-reduced-spacing {
        margin-top: 1rem !important;
        margin-bottom: 0.5rem !important;
    }

    /* Ensure containers never overflow */
    .container, .container-fluid {
        max-width: 100vw !important;
        padding-left: 5px !important;
        padding-right: 5px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    section.hero-section,
    .hero-section {
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }

    .hero-section .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .hero-section .col-4 {
        padding-left: 2px !important;
        padding-right: 2px !important;
    }

    .hero-section .hero-main-image img {
        max-width: 75% !important;
        margin-bottom: 1rem !important;
    }

    /* Mobile display responsive text */
    .display-4 {
        font-size: 2.5rem;
    }

    #matchPercentage {
        font-size: 3rem;
    }

    .card-body {
        padding: 1.5rem;
    }

    .btn-lg {
        padding: 0.65rem 1.5rem;
        font-size: 1rem;
    }
}

/* Small mobile screens */
@media (max-width: 480px) {
    .navbar img,
    .nav-brand img {
        height: 50px !important;
    }

    .nav-link {
        font-size: 0.8rem !important;
        padding: 5px 6px !important;
    }

    nav.navbar button.btn,
    nav.navbar a[href*="donate"] {
        padding: 4px 6px !important;
        font-size: 0.75rem !important;
    }

    .hero-section .hero-main-image img {
        max-width: 85% !important;
    }

    .hero-section button[style*="padding: 0.8rem 1.5rem"],
    .hero-section .btn,
    a[href*="upload-section"].btn,
    a[href*="Analyze"].btn {
        font-size: 0.85rem !important;
        padding: 0.5rem 1rem !important;
        min-width: 100px !important;
        height: 36px !important;
    }

    .upload-section h2 {
        font-size: 1.25rem !important;
    }
}

/* Very small screens */
@media (max-width: 400px) {
    nav.navbar .d-flex.align-items-center a:not(.btn) {
        font-size: 0.75rem !important;
        margin-right: 0.5rem !important;
    }

    nav.navbar button.btn-primary,
    nav.navbar a[href*="donate"] {
        padding: 0.2rem 0.5rem !important;
        font-size: 0.75rem !important;
    }

    nav.navbar img {
        height: 60px !important;
    }
}

/* Desktop logo sizing */
@media (min-width: 769px) {
    .navbar img,
    .nav-brand img,
    .hero-section img[alt="MyJobFit.ai Logo"] {
        height: 140px !important;
    }
}

/* Tablet and mobile logo */
@media (max-width: 991px) {
    .navbar img,
    .nav-brand img,
    .hero-section img[alt="MyJobFit.ai Logo"] {
        height: 70px !important;
    }
}

/* Responsive typography */
@media (max-width: 1400px) {
    .hero-title {
        font-size: 3rem !important;
    }

    .hero-description {
        font-size: 1rem !important;
        max-width: 450px !important;
    }

    .hero-illustration img {
        max-width: 500px !important;
    }
}

@media (max-width: 1200px) {
    .hero-title {
        font-size: 2.5rem !important;
    }

    .hero-description {
        font-size: 0.95rem !important;
        max-width: 400px !important;
    }

    .hero-illustration img {
        max-width: 450px !important;
    }
}

@media (max-width: 992px) {
    .hero-section {
        padding: 0 0 60px 0 !important;
    }

    .hero-title {
        font-size: 2.2rem !important;
    }

    .hero-description {
        font-size: 1rem !important;
        max-width: 100% !important;
    }

    .hero-illustration img {
        max-width: 500px !important;
    }
}

/* Large screens */
@media (min-width: 1200px) {
    .hero-title {
        font-size: 2.8rem !important;
    }

    .hero-description {
        font-size: 1rem !important;
        max-width: 420px !important;
    }

    .hero-illustration img {
        max-width: 600px !important;
    }
}

@media (min-width: 1400px) {
    .hero-title {
        font-size: 3rem !important;
    }

    .hero-description {
        font-size: 1.1rem !important;
        max-width: 450px !important;
    }

    .hero-illustration img {
        max-width: 650px !important;
    }
}