:root {
    --primary-color: #4a6cf7;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --info-color: #17a2b8;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --body-color: #f9fbfd;
    --text-color: #495057;
    --text-muted: #6c757d;
    --border-color: #e9ecef;
    --primarytext-color:#FFFFFF;
}

/* Base Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-color);
    background-color: var(--body-color);
    line-height: 1.6;
    padding-top: 0;
    padding-bottom: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: #212529;
}

a {
    color: var(--primary-color);
    transition: all 0.2s ease;
}

a:hover {
    color: #3255f3;
}

/* Header & Nav */
.navbar {
    padding: 0.75rem 0;
}

.navbar-brand img {
    max-height: 40px;
}

/* Custom Mobile Navigation Styles */
.mobile-nav-menu {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 15px 15px;
    margin-top: 10px;
}

.mobile-nav-menu .nav-link {
    color: #333 !important;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.mobile-nav-menu .nav-link:hover {
    background-color: rgba(74, 108, 247, 0.1);
    color: var(--primary-color) !important;
    padding-left: 30px;
}

.mobile-nav-menu .nav-link.active {
    background-color: var(--primary-color);
    color: white !important;
}

/* Mobile Submenu Styles */
.mobile-submenu {
    background: rgba(248, 249, 250, 0.95);
    margin-left: 20px;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 5px;
    margin-bottom: 10px;
}

.mobile-submenu .nav-link {
    padding: 10px 20px;
    font-size: 0.9rem;
    color: #555 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-submenu .nav-link:hover {
    background-color: rgba(74, 108, 247, 0.1);
    padding-left: 25px;
}

.mobile-submenu .nav-link:last-child {
    border-bottom: none;
}

/* Toggle button for submenu */
.submenu-toggle {
    background: none;
    border: none;
    color: #333;
    font-size: 0.8rem;
    float: right;
    transition: transform 0.3s ease;
}

.submenu-toggle.expanded {
    transform: rotate(180deg);
}
/* Quick Actions Section */
.quick-actions .list-group-item {
    transition: all var(--transition-speed);
    border-left: 3px solid transparent;
}

.quick-actions .list-group-item:hover {
    background-color: #f8f9fa;
    border-left-color: var(--primary-color);
    transform: translateX(5px);
}

.quick-actions .list-group-item i {
    width: 20px;
    text-align: center;
}

.quick-actions .badge {
    font-size: 0.75rem;
    padding: 0.25em 0.5em;
}
/* Tutorials */
.tutorials {
    background: #f8f9fa;
}

.tutorial {
    background: white;
    padding: 2.5rem;
    margin-bottom: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.tutorial h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.tutorial h4 {
    color: #34495e;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.tutorial h5 {
    color: #555;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.tutorial ol, .tutorial ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.tutorial li {
    margin-bottom: 0.75rem;
    color: #555;
}

.tutorial strong {
    color: #2c3e50;
}
/* FAQ CSS */
.faq-question { background: #f9f9f9; width: 100%; text-align: left; padding: 15px; border: none; cursor: pointer; outline: none; font-size: 16px; display: flex; justify-content: space-between; align-items: center; } .faq-icon { font-size: 20px; color: #555; transition: transform 0.3s ease; } .faq-question.open .faq-icon { transform: rotate(45deg); }
.faq-answer {display: none; padding: 15px;background: #fff;color: #333;}
/* Logo CSS */
 .logo-icon {
            font-size: 28px;
            color: var(--primary);
            margin-right: 10px;
        }

        .logo-text {
            font-family: 'Montserrat', sans-serif;
            font-weight: 800;
            font-size: 28px;
            color: var(--dark);
            background: linear-gradient(90deg, var(--primary), var(--secondary));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }
         /* Hero Section */
        .hero {
            padding: 100px 0;
            background: linear-gradient(135deg, rgba(67, 97, 238, 0.05) 0%, rgba(114, 9, 183, 0.05) 100%);
            position: relative;
            overflow: hidden;
        }

        .hero::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -10%;
            width: 600px;
            height: 600px;
            border-radius: 50%;
            background: linear-gradient(45deg, var(--primary), var(--secondary));
            opacity: 0.05;
            z-index: 0;
        }

        .hero-content {
            position: relative;
            z-index: 1;
            max-width: 600px;
        }

        .hero-title {
            font-family: 'Montserrat', sans-serif;
            font-size: 3.5rem;
            font-weight: 800;
            line-height: 1.2;
            margin-bottom: 20px;
            background: linear-gradient(90deg, var(--primary), var(--secondary));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .hero-subtitle {
            font-size: 1.25rem;
            color: var(--gray);
            margin-bottom: 30px;
        }

        .hero-buttons {
            display: flex;
            gap: 15px;
            margin-top: 30px;
        }
        .hero-image {
            position: absolute;
            top: 50%;
            right: 0;
            transform: translateY(-50%);
            max-width: 50%;
            z-index: 1;
        }
        .advantage-card {
            background: var(--white); 
            border-radius: 10px; 
            padding: 2rem; 
            height: 100%; 
            transition: transform 0.3s ease, box-shadow 0.3s ease; 
            box-shadow: 0 5px 15px rgba(0,0,0,0.1); 
            position: relative; 
            overflow: hidden; 
            border-bottom: 3px solid var(--primary-color);
        }
        
        .advantage-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 30px rgba(0,0,0,0.15);
        }
        
        .advantage-card i {
            color: var(--primary-color); 
            font-size: 2.5rem; 
            margin-bottom: 1.5rem; 
            position: relative; 
            z-index: 2;
            transition: transform 0.3s ease;
        }
        
        .advantage-card:hover i {
            transform: scale(1.1);
        }
        
        .advantage-card::before {
            content: '';
            position: absolute;
            top: 0;
            right: 0;
            width: 80px;
            height: 80px;
            background: rgba(15, 170, 255, 0.1);
            border-radius: 0 0 0 100%;
            transition: all 0.3s ease;
        }
        
        .advantage-card:hover::before {
            width: 100px;
            height: 100px;
            background: rgba(15, 170, 255, 0.2);
        }
/* Desktop dropdown improvements */
@media (min-width: 992px) {
    .navbar-nav .dropdown-menu {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        border: none;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        border-radius: 10px;
        padding: 5px 0;
        margin-top: 10px;
    }

    .navbar-nav .dropdown-item {
        padding: 5px 10px;
        transition: all 0.3s ease;
        color: #333;
    }

    .navbar-nav .dropdown-item:hover {
        background-color: rgba(74, 108, 247, 0.1);
        color: var(--primary-color);
        padding-left: 30px;
    }

    /* Make large converter dropdown scrollable on desktop */
    .navbar-nav .dropdown-menu.mega-dropdown {
        max-height: 70vh;           /* limit height to viewport */
        overflow-y: auto;            /* show scrollbar when needed */
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }
}

/* Hide mobile menu on desktop */
@media (min-width: 992px) {
    .mobile-nav-menu {
        display: none !important;
    }
}

/* Hide desktop dropdown on mobile */
@media (max-width: 991px) {
    .navbar-nav .dropdown-menu {
        display: none !important;
    }
}

/* Format Cards */
.format-card {
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.format-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.format-icon {
    width: 80px;
    height: 80px;
}

.format-icon-lg {
    width: 100px;
    height: 100px;
}

.format-icon-sm {
    width: 50px;
    height: 50px;
}

.feature-icon {
    width: 60px;
    height: 60px;
    font-size: 24px;
}

/* Step Numbers */
.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    margin: 0 auto;
}

/* Contact Icons */
.contact-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

/* Transition Utilities */
.transition-hover {
    transition: all 0.3s ease;
}

/* Dropzone */
.dropzone {
    min-height: 200px;
    border: 2px dashed var(--border-color);
    background-color: var(--light-color);
    transition: all 0.3s ease;
}

.dropzone:hover, .dropzone.dragover {
    border-color: var(--primary-color);
    background-color: rgba(74, 108, 247, 0.05);
}

.dropzone-icon {
    font-size: 48px;
}

.border-dashed {
    border: 2px dashed #ccc;
    transition: border-color 0.3s;
}

.border-dashed.dragover {
    border-color: #007bff;
}

.upload-container {
    cursor: pointer;
    transition: background-color 0.3s;
    border: 2px dashed #dee2e6;
    transition: border-color 0.3s ease;
}

.upload-container:hover {
    background-color: #f8f9fa;
    border-color: #0d6efd;
}

.upload-container.dragover {
    border-color: #0d6efd;
    background-color: #f8f9fa;
}

.result-card {
    border: 1px solid #dee2e6;
    transition: transform 0.2s;
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.download-button {
    position: absolute;
    bottom: 10px;
    right: 10px;
}

/* File Preview */
.img-preview {
    max-height: 80px;
    width: auto;
}

.preview-img {
    max-height: 400px;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
}

.result-image {
    max-height: 200px;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
}

.settings-container {
    background-color: #f8f9fa;
}

/* Accordion */
.accordion-button:not(.collapsed) {
    background-color: rgba(74, 108, 247, 0.05);
    color: var(--primary-color);
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(74, 108, 247, 0.25);
}

/* Image comparison */
.original-img, .compressed-img {
    max-height: 300px;
    width: auto;
}

/* Button hover states */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: #3255f3;
    border-color: #3255f3;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover, .btn-outline-primary:focus {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Nav tabs */
.nav-tabs .nav-link.active {
    background-color: #0d6efd;
    color: white;
    border-color: #0d6efd;
}

/* Footer */
.footer {
    margin-top: 2rem;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .format-icon, .format-icon-lg {
        width: 60px;
        height: 60px;
    }
    
    .dropzone {
        min-height: 150px;
    }
}

/* Accessibility */
.btn:focus, .form-control:focus {
    box-shadow: 0 0 0 0.25rem rgba(74, 108, 247, 0.25);
}

/* Additional Utilities */
.shadow-hover:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

/* Custom Form Range Styling */
.form-range::-webkit-slider-thumb {
    background: var(--primary-color);
}

.form-range::-moz-range-thumb {
    background: var(--primary-color);
}

.form-range::-ms-thumb {
    background: var(--primary-color);
}

/* Progress Bar Animation */
.progress-bar {
    animation-duration: 1.5s;
    animation-timing-function: ease-in-out;
}

/* Loading Spinner */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--light-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
} 

/* Add styles for image resize functionality */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner-content {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
} 
 
/* Mega Dropdown Menu Styles */
.mega-dropdown {
    width: 800px;
    max-width: 90vw;
    padding: 1.5rem;
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    backdrop-filter: blur(10px);
    margin-top: 10px;
}

.dropdown-section {
    margin-bottom: 1.5rem;
}

.dropdown-section:last-child {
    margin-bottom: 0;
}

.dropdown-header {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(74, 108, 247, 0.1);
}

.dropdown-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.5rem;
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    border: 1px solid transparent;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, rgba(74, 108, 247, 0.1) 0%, rgba(74, 108, 247, 0.05) 100%);
    border-color: rgba(74, 108, 247, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 108, 247, 0.15);
    color: var(--primary-color);
}

.dropdown-item i {
    font-size: 1.1rem;
    margin-right: 0.75rem;
    width: 20px;
    text-align: center;
}

/* Mobile Submenu Header Styles */
.mobile-submenu-header {
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, rgba(74, 108, 247, 0.1) 0%, rgba(74, 108, 247, 0.05) 100%);
    border-radius: 8px;
    margin: 0.5rem 0;
    border-left: 4px solid var(--primary-color);
}

.mobile-submenu-header span {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive Mega Dropdown */
@media (max-width: 991px) {
    .mega-dropdown {
        width: 100%;
        max-width: 100%;
        padding: 1rem;
    }
    
    .dropdown-grid {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }
    
    .dropdown-item {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .mega-dropdown {
        position: static !important;
        transform: none !important;
        width: 100%;
        margin-top: 0;
        border-radius: 0;
        box-shadow: none;
        background: transparent;
    }
    
    .dropdown-section {
        margin-bottom: 1rem;
    }
    
    .dropdown-header {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }
}

/* Dropdown Animation */
.dropdown-menu.show {
    animation: dropdownFadeIn 0.3s ease-out;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover Effects for Dropdown Items */
.dropdown-item {
    position: relative;
    overflow: hidden;
}

.dropdown-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.dropdown-item:hover::before {
    left: 100%;
}

/* Logo Icon Animation */
.logo-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    transition: all 0.3s ease;
}

.logo-icon:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(15deg);
}

.logo-icon i {
    font-size: 1.2rem;
    color: white;
} 
 
/* Compact and centered Mega Dropdown overrides */
.navbar .dropdown-menu.mega-dropdown {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
}

.mega-dropdown {
    width: 680px;
    max-width: 92vw;
    padding: 1rem;
}

.dropdown-section {
    margin-bottom: 1rem;
}

.dropdown-grid {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
    gap: 0.4rem;
}

.dropdown-item {
    padding: 0.5rem 0.75rem;
    font-size: 0.95rem;
}

@media (max-width: 1200px) {
    .mega-dropdown {
        width: 600px;
    }
    .dropdown-grid {
        grid-template-columns: repeat(2, minmax(160px, 1fr));
    }
}

@media (max-width: 991px) {
    .navbar .dropdown-menu.mega-dropdown {
        left: 0 !important;
        transform: none !important;
        width: 100%;
        max-width: 100%;
    }
} 
 