/* assets/css/styles.css */
:root {
    --primary-color: #ffffff; /* White as the primary color */
    --secondary-color: #03a87e; /* Your desired greenish color */
    --accent-color: #F56040; /* Coral accent color (kept for contrast) */
    --text-color: #2C3E50; /* Dark text color for readability */
    --light-gray: #F8F9FA; /* Light gray for backgrounds */
    --border-radius: 5px; /* Rounded corners */
    --transition: all 0.3s ease; /* Smooth transitions */
    --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    --font-family: 'Lato', -apple-system, BlinkMacSystemFont, sans-serif; /* Modern font */
    --font-size: 16px; /* Base font size */
    --font-weight: 600; /* Semi-bold font weight */
    --line-height: 1.6; /* Comfortable line spacing */
    --padding: 1rem; /* Consistent padding */
    --margin: 1rem; /* Consistent margin */
}

body {
    background-color: var(--light-gray);
    font-family: var(--font-family);
    font-size: var(--font-size);
    font-weight: var(--font-weight);
    line-height: var(--line-height);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.site-header {
    background: var(--primary-color);
    padding: 0.7rem 0;
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-container img {
    max-height: 40px;
    transition: var(--transition);
    will-change: transform;
}

.logo-container img:hover {
    transform: scale(1.05);
}

/* Language Dropdown Styles */
.language-dropdown {
    box-shadow: var(--box-shadow);
    border: none;
    border-radius: var(--border-radius);
    margin-top: 20px !important;
}

.language-dropdown .dropdown-header {
    font-weight: 600;
    color: var(--text-color);
    padding: 0.5rem 1rem;
}

.language-dropdown .dropdown-item {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    color: var(--text-color);
    transition: var(--transition);
    border-radius: 6px;
    margin: 2px 0;
}

.language-dropdown .dropdown-item:hover {
    background-color: rgba(4, 198, 151, 0.1);
    color: var(--secondary-color);
}

.language-dropdown .dropdown-item.active {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.language-dropdown .border-end {
    border-color: rgba(0, 0, 0, 0.1) !important;
}

.language-dropdown .text-primary {
    color: var(--secondary-color) !important;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

/* Image Resizer Tool Specific Styles */
.hero-section {
    padding: 3rem 0 2rem;
}

.hero-section h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-section h1 span.resizer-text {
    color: var(--secondary-color);
}

.lead {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-color);
    opacity: 0.9;
    margin-bottom: 2rem;
}

.upload-area {
    border: 2px dashed rgba(4, 198, 151, 0.3);
    background-color: rgba(4, 198, 151, 0.05);
    transition: var(--transition);
    cursor: pointer;
    padding: 3rem 2rem;
    border-radius: 0.5rem;
}

.upload-area:hover {
    border-color: var(--secondary-color);
    background-color: rgba(4, 198, 151, 0.1);
}

.upload-area.dragover {
    border-color: var(--secondary-color);
    background-color: rgba(4, 198, 151, 0.2);
    animation: pulse 1.5s infinite;
}

.upload-btn {
    background-color: var(--secondary-color);
    font-size: 16px;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 0.375rem;
    transition: var(--transition);
}

.upload-btn:hover {
    background-color: #038a6a;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(3, 168, 126, 0.2);
}

.image-preview-container {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.02);
    border-radius: 0.375rem;
    margin-bottom: 1.5rem;
}

.image-info-container {
    background-color: rgba(4, 198, 151, 0.05);
    padding: 1.25rem;
    border-radius: 0.375rem;
    border-left: 4px solid var(--secondary-color);
}

.image-info-container h6 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--secondary-color);
}

.image-info-container p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.resize-option {
    padding: 1.25rem;
    background-color: rgba(0, 0, 0, 0.02);
    border-radius: 0.375rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.btn-group .btn-outline-secondary {
    color: var(--text-color);
    border-color: #dee2e6;
    font-weight: 500;
}

.btn-group .btn-outline-secondary:hover,
.btn-group .btn-outline-secondary:focus {
    background-color: rgba(4, 198, 151, 0.1);
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-group .btn-check:checked + .btn-outline-secondary {
    background-color: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

.form-range::-webkit-slider-thumb {
    background: var(--secondary-color);
    width: 18px;
    height: 18px;
    margin-top: -7px;
}

.form-range::-moz-range-thumb {
    background: var(--secondary-color);
    width: 18px;
    height: 18px;
}

.form-range::-ms-thumb {
    background: var(--secondary-color);
    width: 18px;
    height: 18px;
}

.preset-btn {
    white-space: nowrap;
    height: 100%;
    min-height: 38px;
    transition: all 0.2s ease;
    border-color: #dee2e6;
    font-size: 0.85rem;
    padding: 0.375rem 0.5rem;
}

.preset-btn:hover {
    background-color: rgba(4, 198, 151, 0.1);
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.preset-btn.active {
    background-color: var(--secondary-color) !important;
    color: white !important;
    border-color: var(--secondary-color) !important;
    box-shadow: 0 0 0 0.2rem rgba(4, 198, 151, 0.25);
}

.upload-error {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    max-width: 350px;
    box-shadow: var(--box-shadow);
    animation: slideIn 0.3s ease-out;
}

.batch-processing .table {
    margin-bottom: 0;
}

.batch-processing .table th {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-color);
    opacity: 0.8;
    border-bottom-width: 2px;
}

.batch-processing .table td {
    vertical-align: middle;
}

.batch-processing .img-thumbnail {
    object-fit: cover;
}

/* Animations */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

@keyframes slideIn {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Features Section - Alternate Layout */
.features-section {
    background-color: var(--light-gray);
}

.features-section img {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
}

.features-section h2 {
    font-size:2rem;
}

/* How To Resize Section */
.how-to-resize {
    position: relative;
    overflow: hidden;
}

.process-roadmap {
    position: relative;
    padding: 40px 0;
}

.process-roadmap .step-number {
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(3, 168, 126, 0.3);
}

.process-roadmap .card:hover .step-number {
    transform: scale(1.1);
    background-color: var(--accent-color);
}

/* Footer Styles */
footer.bg-dark {
    background-color: var(--text-color) !important; /* Using the dark text color from your theme */
    color: var(--light-gray) !important;
    padding-top: 3rem;
    padding-bottom: 3rem;
}

footer h5 {
    color: var(--light-gray);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

footer p.text-muted {
    color: #a0a0a0 !important; /* Slightly lighter gray for muted text */
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Social Icons Styles */
.social-links a {
    color: var(--light-gray);
    text-decoration: none;
    font-size: 1.2rem;
    margin-right: 1rem;
    transition: var(--transition);
    display: inline-block;
}

.social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-5px); /* Move icon up slightly on hover */
}

/* Add unique colors for each social icon */
.social-links a.facebook:hover {
    color: #1877F2; /* Facebook blue */
}

.social-links a.twitter:hover {
    color: #1DA1F2; /* Twitter blue */
}

.social-links a.instagram:hover {
    color: #E4405F; /* Instagram pink */
}

.social-links a.pinterest:hover {
    color: #BD081C; /* Pinterest red */
}

/* Optional: Add a subtle animation on hover */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.social-links a:hover {
    animation: bounce 0.5s ease;
}

footer .list-unstyled li {
    margin-bottom: 0.75rem;
}

footer .list-unstyled a {
    color: #a0a0a0 !important;
    text-decoration: none;
    transition: var(--transition);
}

footer .list-unstyled a:hover {
    color: var(--primary-color) !important;
}

footer .list-unstyled i {
    margin-right: 0.5rem;
}

/* Mobile App Download Buttons */
.download-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.download-btn {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
    text-decoration: none;
}

.download-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.download-btn i {
    font-size: 1.25rem;
    color: var(--secondary-color);
    margin-right: 0.75rem;
}

.download-btn .btn-text {
    display: flex;
    flex-direction: column;
}

.download-btn .btn-label {
    line-height: 1;
    font-size: 0.65rem;
    color: #a0a0a0;
}

.download-btn .btn-platform {
    line-height: 1.1;
    color: var(--light-gray);
    font-weight: 500;
}

footer hr.bg-secondary {
    border-color: rgba(255, 255, 255, 0.1);
}

footer .copyright p {
    color: #a0a0a0;
    font-size: 0.9rem;
}



/* Responsive Adjustments */
@media (max-width: 992px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0 1.5rem;
    }
    
    .resize-options .col-lg-6 {
        margin-bottom: 1.5rem;
    }
    
    .btn-group {
        flex-wrap: wrap;
    }
    
    .btn-group .btn {
        flex: 1 0 45%;
        margin-bottom: 0.5rem;
    }
    
    .preset-btn {
        font-size: 0.75rem;
        padding: 0.25rem;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 1.2rem;
    }
    
    .hero-section .lead {
        font-size: 0.8rem;
    }
    
    .upload-area {
        padding: 2rem 1rem;
    }
    
    .image-info-container .row > div {
        margin-bottom: 0.5rem;
    }
    
    .preset-btn {
        white-space: normal;
        height: auto;
        min-height: 50px;
    }
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .process-roadmap .row {
        flex-direction: column;
        align-items: center;
    }
    
    .process-roadmap .col-md-4 {
        max-width: 100%;
        margin-bottom: 30px;
    }
    
    .process-roadmap::before {
        display: none;
    }
}

@media (max-width: 768px) {
    .features-section h2 {
        font-size:1.2rem;
    }
    
    .features-section .row > div {
        margin-bottom: 10px;
    }
    
    .features-section img {
        margin-top: 10px;
    }
}