:root {
    --primary-color: #4F46E5;
    --primary-dark: #4338CA;
    --secondary-color: #10B981;
    --accent-color: #8B5CF6;
    --light-gray: #F9FAFB;
    --dark-gray: #1F2937;
    --success-color: #10B981;
    --error-color: #EF4444;
    --warning-color: #F59E0B;
    --footer-bg: #F9FAFB;
    --footer-text: #4B5563;
    --footer-link: #6B7280;
    --footer-link-hover: #4F46E5;
}

.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    bottom: -50%;
    left: -50%;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    transform: rotate(35deg);
    pointer-events: none;
}

.hero .display-4 {
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.hero .lead {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.hero .btn-light {
    background: white;
    color: var(--primary-color);
    border: none;
    font-weight: 600;
}

.hero .btn-outline-light {
    font-weight: 600;
}

/* Add Inter font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

body {
    font-family: 'Manrope', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--light-gray);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
}

.display-4 {
    letter-spacing: -0.02em;
}

.display-6 {
    letter-spacing: -0.01em;
}

/* Spacing */
section {
    padding: 4rem 0;
}

.mb-section {
    margin-bottom: 4rem;
}

/* Buttons */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 70%);
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.3s ease;
}

.btn:active::after {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    transition: transform 0s ease, opacity 0.1s ease;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* Container max-width adjustments */
.container {
    max-width: 1200px;
    padding: 0 1.5rem;
}

@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

.custom-navbar {
    background-color: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
}

.custom-navbar.scrolled {
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    background-color: rgba(255, 255, 255, 0.98) !important;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 700;
    color: var(--dark-gray);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 8px;
}

.navbar-brand:hover {
    transform: translateY(-1px);
    background-color: rgba(79, 70, 229, 0.02);
}

.navbar-brand img {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.02);
}

.navbar-nav {
    margin-left: auto;
    gap: 0.25rem;
}

.nav-link {
    font-weight: 500;
    color: var(--dark-gray) !important;
    padding: 0.75rem 1rem !important;
    transition: all 0.2s ease;
    border-radius: 8px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-icon {
    width: 20px;
    height: 20px;
    stroke-width: 1.5;
    transition: transform 0.2s ease;
}

.nav-link:hover .nav-icon {
    transform: translateY(-1px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0.5rem;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.2s ease;
    border-radius: 1px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
    background-color: rgba(79, 70, 229, 0.05);
}

.nav-link.active::after {
    transform: scaleX(1);
}

.navbar-toggler {
    padding: 0.5rem;
    border: none;
    background-color: transparent;
    color: var(--dark-gray);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.navbar-toggler:hover {
    background-color: rgba(79, 70, 229, 0.05);
    color: var(--primary-color);
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.navbar-toggler-icon {
    background-image: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.navbar-toggler-icon::before {
    content: '';
    width: 24px;
    height: 2px;
    background-color: currentColor;
    position: relative;
    transition: all 0.3s ease;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before {
    transform: rotate(45deg);
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: white;
        padding: 1rem;
        border-radius: 12px;
        box-shadow: 0 4px 6px rgba(0,0,0,0.05);
        margin-top: 1rem;
    }

    .nav-link {
        padding: 1rem !important;
    }
}

.upload-container {
    border: 2px dashed #E5E7EB;
    border-radius: 24px;
    padding: 3rem;
    text-align: center;
    background-color: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.upload-container:hover {
    border-color: var(--primary-color);
    background-color: rgba(79, 70, 229, 0.02);
    transform: translateY(-2px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.1);
}

.upload-container.drag-over {
    border-color: var(--primary-color);
    background-color: rgba(79, 70, 229, 0.05);
    transform: scale(1.02);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.upload-container.processing {
    pointer-events: none;
    opacity: 0.8;
    border-color: var(--primary-color);
    background-color: rgba(79, 70, 229, 0.02);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(79, 70, 229, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(79, 70, 229, 0);
    }
}

.upload-container.file-dropped::after,
.upload-container.success::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: var(--primary-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: dropEffect 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
}

.upload-container.success::after {
    background: var(--success-color);
}

@keyframes dropEffect {
    0% {
        width: 5px;
        height: 5px;
        opacity: 1;
    }
    50% {
        width: 400px;
        height: 400px;
        opacity: 0.5;
    }
    100% {
        width: 500px;
        height: 500px;
        opacity: 0;
    }
}

.upload-container.success {
    border-color: var(--success-color);
    background-color: rgba(16, 185, 129, 0.05);
}

.upload-container.success svg {
    color: var(--success-color);
    transform: scale(1.2);
    animation: bounce 0.5s cubic-bezier(0.36, 0, 0.66, -0.56) forwards;
}

@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

.upload-container svg {
    color: var(--primary-color);
    opacity: 0.8;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 48px;
    height: 48px;
}

.upload-container:hover svg {
    opacity: 1;
    transform: translateY(-4px) scale(1.1);
}

.upload-container.drag-over svg {
    transform: scale(1.2);
    opacity: 1;
}

.upload-container h3 {
    font-weight: 700;
    color: var(--dark-gray);
    margin: 1.5rem 0 1rem;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.upload-container.drag-over h3 {
    transform: scale(1.05);
}

.upload-container p {
    color: var(--dark-gray);
    opacity: 0.7;
    margin: 0.5rem auto;
    font-size: 1rem;
    max-width: 80%;
    line-height: 1.6;
}

.upload-container .btn-primary {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.upload-container .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

.upload-container .btn-primary svg {
    color: white;
    opacity: 1;
    width: 20px;
    height: 20px;
}

.options-container {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 16px;
    padding: 2rem;
    margin: 1.5rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 2px solid rgba(229, 231, 235, 0.8);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    transition: all 0.3s ease;
}

.options-container:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.option-section {
    padding: 1.5rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(229, 231, 235, 0.5);
    transition: all 0.3s ease;
}

.option-section:hover {
    border-color: var(--primary-color);
    background-color: rgba(79, 70, 229, 0.02);
}

@media (max-width: 768px) {
    .options-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }
}

.option-section:last-child {
    margin-bottom: 0;
    padding-bottom: 1.5rem;
}

.option-section h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.option-section h4::before {
    content: '';
    display: block;
    width: 4px;
    height: 1em;
    background: var(--primary-color);
    border-radius: 2px;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border: 2px solid rgba(229, 231, 235, 0.8);
    border-radius: 8px;
    transition: all 0.2s ease;
    background: white;
    position: relative;
}

.radio-option:hover {
    border-color: var(--primary-color);
    background-color: rgba(79, 70, 229, 0.02);
    transform: translateY(-1px);
}

.radio-option input[type="radio"] {
    width: 1.25rem;
    height: 1.25rem;
    margin: 0;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

.radio-option label {
    font-size: 0.95rem;
    color: var(--dark-gray);
    cursor: pointer;
    user-select: none;
    margin: 0;
    padding: 0.25rem 0;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.radio-option label img {
    max-height: 24px;
    width: auto;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.radio-option:hover label img {
    transform: scale(1.05);
}

.radio-option input[type="radio"]:checked + label {
    color: var(--primary-color);
    font-weight: 500;
}

.radio-option input[type="radio"]:checked {
    accent-color: var(--primary-color);
}

.radio-option input[type="radio"]:checked ~ * {
    border-color: var(--primary-color);
    background-color: rgba(79, 70, 229, 0.02);
}

.radio-option::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    transition: box-shadow 0.2s ease;
}

.radio-option:hover::after {
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.1);
}

.radio-option input[type="radio"]:checked ~ *::after {
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15);
}

.btn {
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    font-weight: 600;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover {
    background-color: #4338CA;
    border-color: #4338CA;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(67, 56, 202, 0.2);
}

#prepare-button {
    margin-top: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    position: relative;
    overflow: hidden;
}

#prepare-button::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 70%);
    transform: translate(-100%, -100%);
    transition: transform 0.6s ease;
}

#prepare-button:hover::before {
    transform: translate(0, 0);
}

.btn-success {
    background-color: var(--success-color);
    border-color: var(--success-color);
    color: white;
}

.btn-success:hover {
    background-color: #059669;
    border-color: #059669;
    transform: translateY(-1px);
}

.progress {
    height: 8px;
    margin: 1.5rem 0;
    background-color: #E5E7EB;
    border-radius: 999px;
    overflow: hidden;
}

.progress-bar {
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.message {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.875rem;
    line-height: 1.5;
    animation: slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.message span {
    flex-grow: 1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.message span::before {
    content: '';
    display: block;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.message::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: translateX(-100%);
    animation: shimmer 2s infinite;
    pointer-events: none;
}

.message-close {
    background: none;
    border: none;
    padding: 0.25rem;
    color: currentColor;
    opacity: 0.5;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.message-close:hover {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.05);
}

.message-close:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.message.fade-in {
    animation: slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.message.fade-out {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
}

.error-message {
    color: var(--error-color);
    background-color: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.15);
}

.error-message::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23EF4444'%3E%3Cpath fill-rule='evenodd' d='M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z' clip-rule='evenodd'/%3E%3C/svg%3E");
}

.success-message {
    color: var(--success-color);
    background-color: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.15);
}

.success-message::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2310B981'%3E%3Cpath fill-rule='evenodd' d='M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z' clip-rule='evenodd'/%3E%3C/svg%3E");
}

.warning-message {
    color: var(--warning-color);
    background-color: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.15);
}

.warning-message::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23F59E0B'%3E%3Cpath fill-rule='evenodd' d='M8.257 3.099c.765-1.36 2.722-1.36 3.486 0l5.58 9.92c.75 1.334-.213 2.98-1.742 2.98H4.42c-1.53 0-2.493-1.646-1.743-2.98l5.58-9.92zM11 13a1 1 0 11-2 0 1 1 0 012 0zm-1-8a1 1 0 00-1 1v3a1 1 0 002 0V6a1 1 0 00-1-1z' clip-rule='evenodd'/%3E%3C/svg%3E");
}

.info-message {
    color: var(--primary-color);
    background-color: rgba(79, 70, 229, 0.08);
    border: 1px solid rgba(79, 70, 229, 0.15);
}

.info-message::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%234F46E5'%3E%3Cpath fill-rule='evenodd' d='M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z' clip-rule='evenodd'/%3E%3C/svg%3E");
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

.feature-card {
    padding: 2rem;
    border-radius: 24px;
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #E5E7EB;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color);
}

.feature-card h3 {
    color: var(--dark-gray);
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
}

.feature-card h3 svg {
    color: var(--primary-color);
    flex-shrink: 0;
}

.feature-card p {
    color: var(--dark-gray);
    opacity: 0.75;
    margin: 0;
    line-height: 1.6;
    font-size: 1rem;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    margin: 2rem auto;
    border: 3px solid rgba(79, 70, 229, 0.1);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

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

.progress {
    height: 12px;
    border-radius: 6px;
    overflow: hidden;
    background-color: #F3F4F6;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.footer {
    background-color: var(--footer-bg);
    padding: 4rem 0;
    margin-top: 4rem;
    border-top: 1px solid rgba(229, 231, 235, 0.5);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        rgba(229, 231, 235, 0) 0%,
        rgba(229, 231, 235, 1) 50%,
        rgba(229, 231, 235, 0) 100%
    );
}

.footer-brand {
    margin-bottom: 2rem;
}

.footer-brand img {
    height: 40px;
    width: auto;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.footer-brand:hover img {
    transform: scale(1.02);
}

.footer-brand p {
    color: var(--footer-text);
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.9;
    max-width: 300px;
}

.footer-heading {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 1.25rem;
    position: relative;
    padding-left: 1rem;
}

.footer-heading::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 1em;
    background: var(--primary-color);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--footer-link);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0;
    position: relative;
}

.footer-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--footer-link-hover);
    transition: width 0.2s ease;
}

.footer-links a:hover {
    color: var(--footer-link-hover);
    transform: translateX(4px);
}

.footer-links a:hover::before {
    width: 100%;
}


.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    color: var(--dark-gray);
    opacity: 0.7;
    transition: all 0.2s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
}

.social-link:hover {
    color: var(--primary-color);
    opacity: 1;
    transform: translateY(-2px);
    background: rgba(79, 70, 229, 0.1);
}

.social-link i {
    font-size: 1.1rem;
    transition: transform 0.2s ease;
}

.social-link:hover i {
    transform: scale(1.1);
}

.footer-bottom {
    border-top: 1px solid #E5E7EB;
    padding-top: 2rem;
    margin-top: 3rem;
}

.footer-bottom p {
    font-size: 0.875rem;
    color: var(--footer-text);
    opacity: 0.9;
}

.footer-bottom .d-flex {
    gap: 1rem;
}

@media (max-width: 991.98px) {
    .footer-brand {
        text-align: center;
        margin-bottom: 3rem;
    }
    
    .footer-brand p {
        margin: 0 auto;
    }
    
    .footer-heading {
        text-align: center;
    }
    
    .footer-links {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-bottom {
        text-align: center;
    }
    
    .footer-bottom .d-flex {
        flex-direction: column;
        gap: 1rem;
    }
}
/* PDF Preview Styles */
.pdf-preview-wrapper {
    background-color: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-top: 2rem;
}

.pdf-pages {
    min-height: 400px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #F9FAFB;
}

.preview-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 1rem;
    border-top: 1px solid #E5E7EB;
    margin-top: 1rem;
}

.preview-controls button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    color: var(--dark-gray);
    background-color: white;
    border: 1px solid #E5E7EB;
    transition: all 0.2s ease;
}

.preview-controls button:hover {
    background-color: #F9FAFB;
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
}

.preview-controls button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

#page-info {
    font-weight: 500;
    color: var(--dark-gray);
    padding: 0.75rem;
    background-color: #F9FAFB;
    border-radius: 8px;
    min-width: 120px;
    text-align: center;
}
/* Accessibility Helpers */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sr-only-focusable:active,
.sr-only-focusable:focus {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

.file-name {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    background: white;
    border: 1px solid rgba(229, 231, 235, 0.8);
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--dark-gray);
    animation: slideDown 0.3s ease;
}

.file-name svg {
    color: var(--primary-color);
    margin-right: 0.5rem;
    height: 25px;
    width: 25px;
}

.file-name-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.remove-file {
    padding: 0;
    color: var(--error-color);
    opacity: 0.7;
    transition: opacity 0.2s;
}

.remove-file:hover {
    opacity: 1;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* End of styles */



/* make the PDF preview compact */
.pdf-preview-wrapper {
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid var(--bs-gray-300);
  padding: 1rem;
  background: var(--bs-light);
  border-radius: .5rem;
}

/* each canvas page */
#pdf-pages canvas {
  max-width: 100%;
  margin-bottom: 1rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* preview controls styling */
.preview-controls button {
  width: 3.5rem;
}