/* ==========================================================================
   FileIntact - Custom Styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Variables
   -------------------------------------------------------------------------- */
:root {
    --fi-primary: #0d6efd;
    --fi-primary-dark: #0a58ca;
    --fi-success: #198754;
    --fi-danger: #dc3545;
    --fi-warning: #ffc107;
    --fi-info: #0dcaf0;
    --fi-light: #f8f9fa;
    --fi-dark: #212529;
    --fi-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --fi-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --fi-shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
    --fi-transition: all 0.3s ease;
}

/* --------------------------------------------------------------------------
   Base Styles
   -------------------------------------------------------------------------- */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

.display-4, .display-5, .display-6 {
    font-weight: 800;
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.navbar {
    transition: var(--fi-transition);
}

.navbar-brand {
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
    transition: var(--fi-transition);
}

.nav-link:hover {
    color: var(--fi-primary) !important;
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e9f2 100%);
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.min-vh-50 {
    min-height: 50vh;
}

.before-after-demo {
    max-width: 400px;
    margin: 0 auto;
}

.doc-line {
    border-radius: 4px;
}

/* --------------------------------------------------------------------------
   Upload Tool Section
   -------------------------------------------------------------------------- */
.drop-zone {
    cursor: pointer;
    transition: var(--fi-transition);
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.drop-zone:hover,
.drop-zone.drag-over {
    background: linear-gradient(135deg, #e3f2fd 0%, #ffffff 100%);
    border-color: var(--fi-primary) !important;
    transform: scale(1.01);
}

.drop-zone.drag-over {
    border-style: solid !important;
    box-shadow: 0 0 20px rgba(13, 110, 253, 0.2);
}

.drop-zone i {
    transition: var(--fi-transition);
}

.drop-zone:hover i {
    transform: translateY(-5px);
}

/* --------------------------------------------------------------------------
   Feature Cards
   -------------------------------------------------------------------------- */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: var(--fi-shadow-lg) !important;
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon i {
    font-size: 2rem;
}

/* --------------------------------------------------------------------------
   Step Numbers (How It Works)
   -------------------------------------------------------------------------- */
.step-number {
    box-shadow: var(--fi-shadow);
}

/* --------------------------------------------------------------------------
   Accordion (FAQ)
   -------------------------------------------------------------------------- */
.accordion-button {
    font-weight: 600;
    padding: 1.25rem 1.5rem;
}

.accordion-button:not(.collapsed) {
    background-color: var(--fi-light);
    color: var(--fi-primary);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0, 0, 0, 0.125);
}

.accordion-body {
    padding: 1.25rem 1.5rem;
}

/* --------------------------------------------------------------------------
   Pricing Cards
   -------------------------------------------------------------------------- */
.card.border-primary {
    transform: scale(1.02);
}

/* --------------------------------------------------------------------------
   Progress Bar
   -------------------------------------------------------------------------- */
.progress {
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    transition: width 0.3s ease;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: var(--fi-transition);
}

.btn-lg {
    padding: 1rem 2rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.4);
}

.btn-outline-primary:hover {
    transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   Comparison Table
   -------------------------------------------------------------------------- */
.comparison-table .table {
    margin-bottom: 0;
}

.comparison-table th,
.comparison-table td {
    vertical-align: middle;
    padding: 1rem;
}

.comparison-table th.bg-primary {
    background-color: var(--fi-primary) !important;
    color: white;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

footer a:hover {
    color: var(--fi-primary) !important;
}

.social-links a {
    font-size: 1.25rem;
    transition: var(--fi-transition);
}

.social-links a:hover {
    transform: translateY(-3px);
}

/* --------------------------------------------------------------------------
   Modals
   -------------------------------------------------------------------------- */
.modal-content {
    border-radius: 1rem;
    border: none;
}

.modal-header,
.modal-footer {
    padding: 1.5rem;
}

/* --------------------------------------------------------------------------
   Animations
   -------------------------------------------------------------------------- */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* --------------------------------------------------------------------------
   Responsive Adjustments
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        padding: 3rem 0;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
    
    .drop-zone {
        padding: 2rem !important;
    }
    
    .before-after-demo {
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .card-body {
        padding: 1.5rem !important;
    }
}

/* --------------------------------------------------------------------------
   Utility Classes
   -------------------------------------------------------------------------- */
.text-gradient {
    background: var(--fi-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e9f2 100%);
}

.border-dashed {
    border-style: dashed !important;
}

.shadow-soft {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

/* --------------------------------------------------------------------------
   File Type Icons
   -------------------------------------------------------------------------- */
.file-icon-pdf {
    color: #dc3545;
}

.file-icon-docx {
    color: #0d6efd;
}

.file-icon-xlsx {
    color: #198754;
}

/* --------------------------------------------------------------------------
   Loading States
   -------------------------------------------------------------------------- */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --------------------------------------------------------------------------
   Print Styles
   -------------------------------------------------------------------------- */
@media print {
    .navbar,
    footer,
    .btn,
    #upload-tool {
        display: none !important;
    }
}
