/* ============================================
   GLOBAL STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(to bottom, #bde3ff, #f7fff6);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header stilleri artık includes/header.php içinde */

main {
    flex: 1;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
    position: relative;
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

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

/* ============================================
   HERO AND DROP AREA
   ============================================ */
.hero-and-drop {
    grid-column: 6 / 13;
    grid-row: 3;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    z-index: 16;
    align-self: center;
}

/* ============================================
   HEADER SECTION
   ============================================ */
.header {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: visible;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto auto auto;
    grid-gap: 0.5rem;
    min-height: 400px;
}

/* ============================================
   INFO BOXES SECTION
   ============================================ */
.info-boxes-section {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem 0;
    position: relative;
}

.info-boxes-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.info-boxes-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.info-box {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1.25rem 1rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 20px 0 rgba(31, 38, 135, 0.3);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.18);
    flex: 1;
    min-width: 0;
}

.info-box:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 30px 0 rgba(31, 38, 135, 0.4);
}

.info-icon {
    margin-bottom: 0.5rem;
    display: block;
}

.info-icon svg {
    width: 36px;
    height: 36px;
}

.info-box h3 {
    color: #fff;
    margin-bottom: 0.35rem;
    font-size: 0.95rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.info-box p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
    font-size: 0.8rem;
}

/* ============================================
   WELCOME SECTION
   ============================================ */
.welcome {
    background-color: white;
    padding: 3rem 2rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
    z-index: 3;
    flex: 0 0 25%;
    text-align: center;
}

.welcome h1 {
    margin-bottom: 1rem;
    color: #333;
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
    z-index: 3;
}

.welcome p {
    color: #666;
    line-height: 1.6;
    font-size: 1.1rem;
    position: relative;
    z-index: 3;
}

/* ============================================
   COMPRESSION SECTION
   ============================================ */
.compression-section {
    position: relative;
    box-sizing: border-box;
    padding: 1rem;
    padding-bottom: 0;
    border-radius: 1.6rem;
    backdrop-filter: blur(5px);
    z-index: 16;
    background: rgba(255, 255, 255, 0.25);
    width: 100%;
    margin-bottom: 2rem;
}

.compression-section h2 {
    margin-bottom: 1.5rem;
    color: #333;
    font-size: 2rem;
    font-weight: 600;
}

.upload-inner {
    position: relative;
    width: 100%;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* ============================================
   DECORATIVE ELEMENTS (CLOUD, GRASS, TREE, LION)
   ============================================ */
.cloud-container {
    grid-column: 1 / 4;
    grid-row: 1;
    position: absolute;
    z-index: 2;
}

.cloud-container .cloud {
    width: 100%;
    height: auto;
    max-width: 300px;
}

.grass-container {
    grid-column: 1 / 13;
    grid-row: 3;
    position: relative;
    align-self: end;
    z-index: 8;
}

.grass-container .grass {
    width: 100%;
    height: auto;
    max-height: 50px;
    display: block;
    margin-bottom: 0;
}

.tree-container {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 7;
    height: 100%;
    left: -20%;
}

.tree-container img {
    width: 100%;
    height: 100%;
    transition: all 0.5s ease;
    object-fit: contain;
    object-position: bottom left;
    display: block;
}

.lion-container {
    position: absolute;
    bottom: 0;
    left: 20%;
    z-index: 7;
    pointer-events: none;
    text-align: center;
}

.lion-container img {
    width: auto;
    height: auto;
    max-width: 200px;
    transition: all 0.5s ease;
    object-fit: contain;
    display: block;
}

/* ============================================
   TITLE CONTAINER
   ============================================ */
.title-container {
    z-index: 3;
    display: none;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0.5rem;
    overflow: visible;
    grid-column: 1 / 6;
    grid-row: 3;
    position: absolute;
    z-index: 2;
}

.title-container h1 {
    font-family: THICCCBOI, Arial, sans-serif;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 700;
    color: #333;
    margin: 0 0 1rem 0;
    line-height: 1.2;
}

.format-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.format-badge {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    background: #f0f3ff;
    color: #667eea;
    border: 1px solid #d0d9ff;
    border-radius: 6px;
    font-size: clamp(0.75rem, 1.1vw, 0.85rem);
    font-weight: 600;
    font-family: Poppins, Arial, sans-serif;
    cursor: default;
    user-select: none;
}

.title-container p {
    font-family: Poppins, Arial, sans-serif;
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    color: #666;
    margin: 0;
    line-height: 1.4;
    font-weight: 500;
}

/* ============================================
   FILE DROP AREA
   ============================================ */
.file-drop-area {
    position: relative;
    z-index: 16;
    color: #40444F;
    background-image: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' rx='10' ry='10' stroke='%23FFFFFF' stroke-width='3' stroke-dasharray='6.5' stroke-dashoffset='56' stroke-linecap='square'/%3e%3c/svg%3e");
    border-radius: 10px;
    height: 18rem;
    width: 100%;
    cursor: pointer;
    transition: background-image 0.1s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
    padding: 2rem;
}

.file-drop-area:hover,
.file-drop-area.dragover {
    border-color: #667eea;
    background: linear-gradient(145deg, #f0f4ff, #ffffff);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

.file-drop-area > * {
    position: relative;
    z-index: 2;
}

.file-drop-area p {
    font-size: 1.39rem;
    margin: 0;
    line-height: normal;
}

.file-drop-area p:first-child {
    font-family: THICCCBOI;
    font-size: 2.1rem;
    line-height: 3rem;
    font-weight: 800;
    color: #40444f;
}

.file-drop-area p:nth-child(2) {
    color: #616778;
    font-family: Poppins;
    font-size: 1.29rem;
    font-style: normal;
    font-weight: 400;
    margin-bottom: 0.4rem;
}

.file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* ============================================
   UPLOAD BUTTON
   ============================================ */
.upload-btn {
    position: relative;
    background: linear-gradient(135deg, #1a0933 0%, #2d1b4e 25%, #3d2563 50%, #4a2c6d 75%, #5c3a7d 100%);
    color: white;
    padding: 1.25rem 3rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    transition: all 0.3s ease;
    box-shadow: none;
    overflow: hidden;
    letter-spacing: 0.5px;
    text-shadow: none;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.upload-btn:hover {
    background: linear-gradient(135deg, #2a1548 0%, #3d2563 25%, #4d3078 50%, #5d3a88 75%, #6e4698 100%);
    transform: scale(1.02);
}

.upload-btn:active {
    transform: scale(0.98);
}

.upload-btn:disabled {
    background: linear-gradient(135deg, #6c757d 0%, #6c757d 100%);
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.2);
}

/* ============================================
   FILE LIST & PROGRESS
   ============================================ */
.file-list {
    margin: 1rem 0;
    text-align: left;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin: 0.5rem 0;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background-color: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    margin: 1rem 0;
    display: none;
}

.progress-fill {
    height: 100%;
    background-color: #007bff;
    transition: width 0.3s;
    width: 0%;
}
/* ============================================
   RESULTS SECTION
   ============================================ */
.results-section {
    position: relative;
    width: 100%;
    max-width: 112.8rem;
    margin: 0 auto;
    padding: 0 2rem;
    animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
        max-height: 0;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 2000px;
    }
}

.results-container {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}

.c1uwtt8h {
    background: #40444F;
    border-radius: 1rem 1rem 0 0;
    padding: 1.4rem;
    box-shadow: 0 1px 12px 0 rgba(81, 107, 118, 0.15);
}

.stats {
    color: #fff;
}

.stats-progress-container {
    display: flex;
    justify-content: flex-start;
    width: 100%;
}

.stats-header-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    margin-top: 0;
    text-align: left;
    white-space: normal;
    font-family: THICCCBOI, Arial, sans-serif;
    font-style: normal;
}

.stats-main-text {
    color: #8CC938;
    font-family: THICCCBOI, Arial, sans-serif;
    font-size: 2rem;
    line-height: 2.4rem;
    font-weight: 700;
}

.stats-subtext {
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 0.6rem;
    padding-top: 0.6rem;
    font-weight: 500;
    color: white;
    font-size: 1.3rem;
    line-height: 2rem;
}

.vertical-divider {
    height: 1.5rem;
    width: 0.1rem;
    background-color: white;
}

.saved-size {
    padding-left: 0.2rem;
    color: white !important;
    letter-spacing: 0.08rem;
    text-transform: uppercase;
}

.results-footer {
    position: relative;
    z-index: 15;
    width: 100%;
    max-width: 112.8rem;
    margin: 0 auto;
    padding: 1rem 1.4rem;
    border-radius: 0 0 1rem 1rem;
    background: #40444F;
    box-shadow: 0 1px 12px 0 rgba(81, 107, 118, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.download-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.6rem;
    background: linear-gradient(135deg, #8CC938 0%, #7eb631 100%);
    color: white;
    border: none;
    border-radius: 0.8rem;
    font-size: 1.4rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: inset 0 -0.2rem 0 #70a22c;
}

.download-all-btn:hover {
    background: linear-gradient(135deg, #7eb631 0%, #70a22c 100%);
    transform: translateY(-1px);
}

.download-all-btn:active {
    transform: translateY(0);
}

.download-all-btn svg {
    width: 1.6rem;
    height: 1.6rem;
}

.results {
    margin-top: 2rem;
}

.result-item {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    border-radius: 20px 50px 50px 20px;
    margin: 0.75rem 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border: 1px solid rgba(0,0,0,0.08);
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    position: relative;
    overflow: visible;
}

.result-success {
    border-color: #28a745;
    background: linear-gradient(145deg, rgba(248, 255, 249, 0.9), rgba(255, 255, 255, 0.9));
}

.result-error {
    border-color: #dc3545;
    background: linear-gradient(145deg, rgba(255, 248, 248, 0.9), rgba(255, 255, 255, 0.9));
}

.result-processing {
    border-color: #667eea;
    background: linear-gradient(145deg, rgba(248, 249, 255, 0.9), rgba(255, 255, 255, 0.9));
}

@keyframes pulse {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.5; }
}

.result-queued {
    border-color: #ffc107;
    background: linear-gradient(145deg, rgba(255, 253, 245, 0.9), rgba(255, 255, 255, 0.9));
}

.image-preview {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
    margin-right: 0.75rem;
}

.result-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.result-content > * {
    position: relative;
    z-index: 2;
}

.result-info {
    flex: 1;
}

.result-image-container {
    display: flex;
    align-items: center;
}

.result-status {
    font-weight: bold;
    margin-bottom: 0.25rem;
    white-space: pre-line;
    line-height: 1.4;
}

.result-details {
    font-size: 0.9rem;
    color: #666;
}

.processing-bar {
    width: 100%;
    height: 6px;
    background-color: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.processing-fill {
    height: 100%;
    background-color: #007bff;
    transition: width 0.3s;
    width: 0%;
}

/* ============================================
   DOWNLOAD & REMOVE BUTTONS
   ============================================ */
.download-btn {
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    font-size: 0.85rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    gap: 4px;
    position: relative;
    z-index: 2;
}

.download-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    opacity: 0.95;
}

.download-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.download-btn svg {
    flex-shrink: 0;
    opacity: 0.9;
}

.remove-btn {
    position: absolute;
    top: 50%;
    right: 0.25rem;
    transform: translateY(-50%);
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    padding: 0;
    border: 1.5px solid rgba(220, 53, 69, 0.3);
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.95rem;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    line-height: 1;
    z-index: 100;
}

.remove-btn:hover {
    background: rgba(220, 53, 69, 0.2);
    transform: translateY(-50%) scale(1.1);
    border-color: rgba(220, 53, 69, 0.5);
}

.remove-btn:active {
    transform: translateY(-50%) scale(0.95);
}

/* ============================================
   STATS
   ============================================ */
.stats {
    background: transparent;
    padding: 0;
    margin: 0;
}

/* Minimal Stats */
.stats-animated {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    opacity: 0;
    animation: statFadeIn 0.4s ease forwards;
}

@keyframes statFadeIn {
    to {
        opacity: 1;
    }
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.stat-icon {
    display: inline-flex;
    width: 18px;
    height: 18px;
    align-items: center;
    justify-content: center;
}

.stat-icon svg {
    width: 100%;
    height: 100%;
}

.stat-value {
    font-weight: 600;
    color: #fff;
    font-size: 0.9rem;
}

.stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

.stat-separator {
    color: #ddd;
    margin: 0 0.2rem;
    font-size: 0.7rem;
}

/* ============================================
   RATE LIMIT & ERROR MESSAGES
   ============================================ */
.rate-limit-info {
    background: transparent;
    padding: 0.5rem 0;
    margin: 1rem 0 0 0;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(64, 68, 79, 0.8);
}

.error-message {
    background: linear-gradient(145deg, rgba(248, 215, 218, 0.9), rgba(255, 255, 255, 0.9));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(245, 198, 203, 0.5);
    color: #721c24;
    padding: 1.5rem;
    border-radius: 15px;
    margin: 1rem 0;
    box-shadow: 0 4px 20px rgba(220, 53, 69, 0.1);
}

/* ============================================
   AVIF CONVERT SWITCH STYLES
   ============================================ */
.convert-switch {
    position: relative;
    appearance: none;
    width: 50px;
    height: 26px;
    background: #ccc;
    border-radius: 13px;
    outline: none;
    cursor: pointer;
    transition: background 0.3s;
}

.convert-switch:checked {
    background: #007bff;
}

.convert-switch::before {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: white;
    top: 2px;
    left: 2px;
    transition: transform 0.3s;
}

.convert-switch:checked::before {
    transform: translateX(24px);
}

.avif-convert-section {
    animation: fadeIn 0.3s;
}

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

/* ============================================
   RESPONSIVE MEDIA QUERIES - TABLET & MOBILE
   ============================================ */
@media (max-width: 768px) {
    /* Compact Format/Resize - Mobile Stack */
    .compression-section > div:first-child {
        grid-template-columns: 1fr !important;
        gap: 0.5rem !important;
    }

    .info-boxes-section {
        padding: 1.5rem 0;
    }

    .info-boxes-container {
        flex-direction: column !important;
        gap: 0.5rem !important;
        padding: 0 1rem !important;
    }

    .info-box {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        text-align: left !important;
        padding: 0.75rem !important;
        gap: 0.75rem !important;
        background: rgba(255, 255, 255, 0.2) !important;
        border-radius: 8px !important;
        min-width: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .info-box > div {
        flex: 1;
        min-width: 0;
        overflow: hidden;
    }

    .info-icon {
        margin-bottom: 0 !important;
        flex-shrink: 0 !important;
    }

    .info-icon svg {
        width: 28px !important;
        height: 28px !important;
    }

    .info-box h3 {
        font-size: 0.85rem !important;
        margin-bottom: 0.2rem !important;
        margin-top: 0 !important;
        line-height: 1.2 !important;
        word-wrap: break-word;
    }

    .info-box p {
        font-size: 0.7rem !important;
        line-height: 1.3 !important;
        margin: 0 !important;
        word-wrap: break-word;
    }

    .result-item {
        padding: 0.6rem 2.5rem 0.6rem 0.75rem;
        margin: 0.6rem 0;
        border-radius: 15px 45px 45px 15px;
    }

    .image-preview {
        width: 45px;
        height: 45px;
        margin-right: 0.6rem;
    }

    .download-btn {
        padding: 0.45rem 0.65rem;
        font-size: 0.8rem;
        flex: 1 1 auto;
        border-radius: 6px;
    }

    .stats-animated {
        flex-wrap: wrap;
        gap: 1rem;
    }

    /* Mobile responsive for advanced options */
    .upload-inner > div:last-child > div {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
    }

    .format-convert-section,
    .resize-section {
        padding: 0.65rem 0.85rem !important;
    }

    .header {
        grid-template-columns: repeat(6, 1fr);
        grid-template-rows: auto auto auto auto;
        min-height: 300px;
    }

    .hero-and-drop {
        grid-column: 1 / 7;
        grid-row: 2;
        gap: 1rem;
    }

    .cloud-container {
        grid-column: 4 / 7;
        grid-row: 1;
    }

    .title-container {
        display: flex;
        padding: 0.5rem;
        bottom: 0;
    }

    .title-container h1 {
        font-size: clamp(1.2rem, 3vw, 1.8rem);
    }

    .title-container p {
        font-size: clamp(0.8rem, 2vw, 1rem);
    }

    .tree-container {
        height: 300px;
        width: 200px;
    }

    .lion-container {
        right: 5%;
        left: auto;
        bottom: 0;
    }

    .lion-container img {
        max-width: 120px;
        max-height: 140px;
    }

    .grass-container {
        grid-column: 1 / 7;
        grid-row: 4;
    }

    .compression-section {
        padding: 1.5rem;
        width: 100%;
        margin-bottom: 7rem;
    }

    .info-boxes-section {
        padding: 2rem 0;
    }

    .info-boxes-container {
        padding: 0 1rem;
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .info-box {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .info-boxes-container {
        padding: 0 0.75rem !important;
    }

    .info-box {
        padding: 0.6rem !important;
        gap: 0.6rem !important;
    }

    .info-icon svg {
        width: 24px !important;
        height: 24px !important;
    }

    .info-box h3 {
        font-size: 0.8rem !important;
    }

    .info-box p {
        font-size: 0.65rem !important;
    }

    .header {
        grid-template-columns: repeat(4, 1fr);
        min-height: 250px;
    }

    .hero-and-drop {
        grid-column: 1 / 5;
        grid-row: 2;
    }

    .cloud-container {
        grid-column: 3 / 5;
        grid-row: 1;
    }

    .title-container {
        padding: 0.25rem;
        grid-column: 1 / 4;
        grid-row: 3;
        position: relative;
        justify-self: start;
        align-self: end;
    }

    .title-container h1 {
        font-size: clamp(1rem, 4vw, 1.5rem);
    }

    .title-container p {
        font-size: clamp(0.7rem, 2.5vw, 0.9rem);
    }

    .tree-container {
        grid-column: 1 / 2;
        grid-row: 3;
        margin-left: -50%;
        margin-bottom: -0.25rem;
        height: 30px;
    }

    .tree-container img {
        max-width: 60px;
        height: 100%;
    }

    .lion-container {
        grid-column: 4 / 5;
        grid-row: 3;
        justify-self: end;
        align-self: end;
        bottom: -7px;
        position: relative;
    }

    .lion-container img {
        max-width: 100px;
        max-height: 120px;
    }

    .grass-container {
        grid-column: 1 / 5;
        grid-row: 4;
    }

    .compression-section {
        padding: 1rem;
        margin-bottom: 0rem;
    }

    .file-drop-area {
    height: 100%;
    }
}

@media (max-width: 360px) {
    .info-boxes-container {
        padding: 0 0.5rem !important;
    }

    .info-box {
        padding: 0.5rem !important;
        gap: 0.5rem !important;
    }

    .info-icon svg {
        width: 20px !important;
        height: 20px !important;
    }

    .info-box h3 {
        font-size: 0.75rem !important;
    }

    .info-box p {
        font-size: 0.6rem !important;
    }

    .result-item {
        padding: 0.5rem 2.2rem 0.5rem 0.6rem;
        border-radius: 12px 40px 40px 12px;
    }

    .remove-btn {
        width: 26px;
        height: 26px;
        font-size: 0.9rem;
        right: 0.2rem;
    }

    .image-preview {
        width: 40px;
        height: 40px;
        margin-right: 0.5rem;
    }

    .download-btn {
        padding: 0.4rem 0.5rem;
        font-size: 0.75rem;
        min-width: 70px;
    }

    .result-details {
        font-size: 0.75rem !important;
    }
}

/* ============================================
   SECOND CSS BLOCK - ADVANCED OPTIONS STYLES
   ============================================ */

/* Slide-in Animation */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Toggle Switch Styles - Enhanced */
.toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #d1d5db 0%, #9ca3af 100%);
    border-radius: 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.toggle-slider::before {
    position: absolute;
    content: "";
    height: 17px;
    width: 17px;
    left: 2px;
    bottom: 2px;
    background: linear-gradient(135deg, #ffffff 0%, #f3f4f6 100%);
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.toggle-switch:hover .toggle-slider {
    background: linear-gradient(135deg, #b0b5bd 0%, #8891a0 100%);
}

#formatConvertToggle:checked + .toggle-slider {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.5), inset 0 1px 3px rgba(0,0,0,0.1);
}

#formatConvertToggle:checked + .toggle-slider::before {
    transform: translateX(17px);
    background: linear-gradient(135deg, #ffffff 0%, #ecfdf5 100%);
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.4);
}

#resizeToggle:checked + .toggle-slider {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.5), inset 0 1px 3px rgba(0,0,0,0.1);
}

#resizeToggle:checked + .toggle-slider::before {
    transform: translateX(17px);
    background: linear-gradient(135deg, #ffffff 0%, #eff6ff 100%);
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.4);
}

/* Smooth animation on toggle */
.toggle-switch:active .toggle-slider::before {
    width: 19px;
}

/* Advanced Options Container Styles */
.format-convert-section,
.resize-section {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.format-convert-section:hover,
.resize-section:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12) !important;
    transform: translateY(-2px);
}

/* Resize input styling */
#resizeWidth::placeholder,
#resizeHeight::placeholder {
    color: #999;
}

#resizeWidth:focus,
#resizeHeight:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Format Pill Styles */
.format-pill {
    padding: 0.5rem 1rem;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #555;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
}

.format-pill:hover {
    background: #e8e8e8;
    border-color: #d0d0d0;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.format-pill.selected {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    border-color: #10b981 !important;
    color: white !important;
    font-weight: 600;
    position: relative;
    padding-left: 2rem;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.format-pill.selected::before {
    content: "✓";
    position: absolute;
    left: 0.6rem;
    font-weight: bold;
    color: white;
}

/* Converting indicator styles */
.converting-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #0369a1;
    margin-top: 0.5rem;
}

.converting-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #bae6fd;
    border-top-color: #0369a1;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   THIRD CSS BLOCK - COMPARISON SECTION
   ============================================ */

.comparison-section {
    padding: 60px 20px;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

.comparison-container {
    max-width: 900px;
    margin: 0 auto;
}

.comparison-title {
    font-family: Poppins, Arial, sans-serif;
    font-size: 40px;
    font-weight: 600;
    text-align: center;
    color: #171717;
    margin-bottom: 0.5rem;
    margin-top: 0;
}

.comparison-subtitle {
    font-family: Poppins;
    font-size: 0.95rem;
    text-align: center;
    color: #777;
    margin-bottom: 2.5rem;
    font-weight: 400;
}

.image-comparison-wrapper {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.comparison-with-sides {
    display: flex;
    align-items: center;
    gap: 2rem;
    justify-content: center;
}

.comparison-slider {
    position: relative;
    width: 100%;
    max-width: 700px;
    user-select: none;
    flex-shrink: 0;
}

.comparison-image-container {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.comparison-img {
    width: 100%;
    height: auto;
    display: block;
    pointer-events: none;
    user-select: none;
}

.comparison-img-original {
    position: relative;
    display: block;
}

.comparison-img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
    z-index: 2;
}

.comparison-img-overlay .comparison-img {
    position: absolute;
    top: 0;
    left: 0;
    width: auto;
    height: 100%;
    max-width: none;
}

.comparison-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 3px;
    height: 100%;
    transform: translateX(-50%);
    cursor: ew-resize;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.handle-line {
    width: 3px;
    flex: 1;
    background: white;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
}

.handle-circle {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #1a0933 0%, #3d2563 50%, #5c3a7d 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 6px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    cursor: ew-resize;
}

.handle-circle svg {
    flex-shrink: 0;
}

.comparison-info-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.info-top-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
}

.info-top-item:last-child {
    align-items: flex-end;
}

.info-label {
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
}

.side-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.side-left {
    flex-direction: row;
}

.side-right {
    flex-direction: row;
}

.side-arrow {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

.side-left .side-arrow {
    transform: rotate(-48deg) scaleX(-1);
    padding-top: 30px;
}

.side-right .side-arrow {
    transform: rotate(48deg);
    padding-top: 30px;
}

.side-size {
    font-size: 1.4rem;
    color: #333;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

/* Download Links */
.comparison-download-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.download-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: white;
    color: #667eea;
    text-decoration: none;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.download-link:hover {
    border-color: #667eea;
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.download-link svg {
    transition: transform 0.3s ease;
}

.download-link:hover svg {
    transform: translateY(2px);
}

/* ============================================
   COMPARISON SECTION - RESPONSIVE
   ============================================ */
@media (max-width: 1280px) {
    .hero-and-drop {
    padding-right: 2rem;
    }}
@media (max-width: 768px) {
    .comparison-section {
        padding: 40px 15px;
    }

    .comparison-title {
        font-size: 1.6rem;
        line-height: 1.3;
    }

    .comparison-subtitle {
        font-size: 0.85rem;
        margin-bottom: 2rem;
    }

    .image-comparison-wrapper {
        padding: 1rem;
        border-radius: 15px;
    }

    .comparison-slider {
        max-width: 100%;
    }

    .comparison-image-container {
        border-radius: 10px;
    }

    .handle-circle {
        width: 40px;
        height: 40px;
        padding: 0 4px;
    }

    .handle-circle svg {
        width: 16px;
        height: 16px;
    }

    .handle-line {
        width: 2px;
    }

    .comparison-handle {
        width: 2px;
    }

    .comparison-info-top {
        margin-bottom: 0.75rem;
    }

    .info-label {
        font-size: 0.8rem;
    }

    .side-box {
        gap: 0.5rem;
    }

    .side-arrow {
        width: 32px;
        height: 32px;
    }

    .side-size {
        font-size: 1.1rem;
    }

    .comparison-download-links {
        flex-direction: column;
        gap: 12px;
        margin-top: 20px;
    }

    .download-link {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .comparison-section {
        padding: 30px 10px;
    }

    .comparison-title {
        font-size: 1.4rem;
    }

    .comparison-subtitle {
        font-size: 0.8rem;
    }

    .handle-circle {
        width: 36px;
        height: 36px;
    }

    .handle-circle svg {
        width: 14px;
        height: 14px;
    }
}

/* ============================================
   BLOG SECTION (removal.ai "Who is it for" style)
   ============================================ */

.home-section {
    margin-bottom: 240px;
}

.container {
    padding: 0 24px;
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -12px;
}

.row > * {
    padding: 0 12px;
}

.align-items-center {
    align-items: center !important;
}

.col-6 {
    flex: 0 0 auto;
    width: 50%;
}

.col-12 {
    flex: 0 0 auto;
    width: 100%;
}

@media (min-width: 576px) {
    .col-sm-12 {
        flex: 0 0 auto;
        width: 100%;
    }
}

@media (min-width: 768px) {
    .col-md-3 {
        flex: 0 0 auto;
        width: 25%;
    }

    .col-md-6 {
        flex: 0 0 auto;
        width: 50%;
    }

    .col-md-12 {
        flex: 0 0 auto;
        width: 100%;
    }
}

@media (min-width: 992px) {
    .col-lg-3 {
        flex: 0 0 auto;
        width: 25%;
    }

    .col-lg-8 {
        flex: 0 0 auto;
        width: 66.66666667%;
    }

    .offset-lg-1 {
        margin-left: 8.33333333%;
    }

    .order-lg-3 {
        order: 3 !important;
    }
}

.icon-section {
    display: flex;
    gap: 16px;
    color: #4e7efe;
    font-weight: 600;
    align-items: center;
}

.icon-section > div {
    width: 16px;
    height: 16px;
    background: #4e7efe;
    border-radius: 4px;
}

.icon-section__label {
    font-size: 14px;
    letter-spacing: 0.5px;
}

.home-section__heading {
    margin-top: 60px;
    margin-bottom: 60px;
}

.home-section h2 {
    margin-top: 0;
    font-size: 40px;
    margin-bottom: 20px;
    font-family: Poppins, Arial, sans-serif;
    color: #171717;
    font-weight: 600;
}

.home-section__heading p {
    color: #707070;
    margin-bottom: 0;
    font-size: 16px;
    line-height: 1.5;
}

.rm-menu-tab-who {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rm-menu-tab-who li {
    width: 100%;
    padding: 28px 24px;
    margin-bottom: 16px;
    background-color: #fff;
    box-shadow: 0 12px 48px -8px rgba(0, 0, 0, 0.16);
    border-radius: 12px;
    cursor: pointer;
    color: #707070;
    user-select: none;
    font-weight: 500;
    font-size: 20px;
    line-height: 1.6;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    min-height: 80px;
}

.rm-menu-tab-who li.active,
.rm-menu-tab-who li:hover {
    color: #4e7efe;
    transform: translateY(-2px);
    box-shadow: 0 16px 56px -8px rgba(78, 126, 254, 0.25);
}

.rm-menu-tab-who li.active svg path,
.rm-menu-tab-who li:hover svg path {
    stroke: #4e7efe;
}

.rm-menu-tab-who li svg {
    margin-right: 20px;
    transition: all 0.3s ease;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.image-who-tabs {
    width: 100%;
}

.image-who-tab {
    display: none;
    position: relative;
}

.image-who-tab.active {
    display: block;
}

.image-who-tab img {
    border-radius: 16px;
    max-width: 684px;
    max-height: 480px;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.content-who-tab {
    padding: 40px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.65);
    box-shadow: 0 12px 48px -8px rgba(0, 0, 0, 0.16);
    backdrop-filter: blur(20px);
    position: absolute;
    bottom: calc(-50% + 48px);
    width: 636px;
    max-width: 100%;
    left: 50%;
    transform: translateX(-50%);
}

.content-who-tab h3 {
    font-size: 24px;
    font-style: normal;
    font-weight: 500;
    line-height: 36px;
    letter-spacing: -0.24px;
    color: #292929;
    margin: 0 0 16px 0;
    font-family: Poppins, Arial, sans-serif;
}

.content-who-tab p {
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
    color: #707070;
    margin: 0 0 16px 0;
}

.content-who-tab .learn_more {
    text-decoration: none;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px;
    letter-spacing: 0.16px;
    color: #4e7efe;
    padding-left: 30px;
    background: url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M7.5 15L12.5 10L7.5 5" stroke="%234e7efe" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>') no-repeat center left;
    transition: all 0.3s ease;
}

.content-who-tab .learn_more:hover {
    padding-left: 35px;
}

/* Responsive */
@media (max-width: 992px) {
    .home-section h2 {
        font-size: 32px;
        margin-bottom: 40px;
    }

    .home-section__heading p {
        margin-bottom: 40px;
    }

    .rm-menu-tab-who li {
        padding: 20px 16px;
        font-size: 17px;
        min-height: 70px;
    }

    .rm-menu-tab-who li svg {
        width: 24px;
        height: 24px;
        margin-right: 16px;
    }

    .content-who-tab {
        padding: 30px;
        bottom: -100px;
    }
}

@media (max-width: 768px) {
    .home-section {
        margin-bottom: 180px;
    }

    /* Mobile: col-6 makes 2 columns naturally */
    .col-md-3.col-6 {
        flex: 0 0 auto;
        width: 50%;
    }

    .left-who-is-it {
        order: 1;
    }

    .right-who-is-it {
        order: 2;
    }

    .col-md-6.col-12 {
        flex: 0 0 auto;
        width: 100%;
        order: 3;
    }

    .rm-menu-tab-who li {
        padding: 20px 16px;
        margin-bottom: 16px;
        font-size: 16px;
        flex-direction: row;
        text-align: left;
        justify-content: flex-start;
        align-items: center;
    }

    .rm-menu-tab-who li svg {
        margin-right: 12px;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .content-who-tab {
        position: static;
        transform: none;
        margin-top: 20px;
        padding: 30px;
    }
}

@media (max-width: 680px) {
    .rm-menu-tab-who li {
        padding: 18px 14px;
        font-size: 15px;
    }

    .rm-menu-tab-who li svg {
        width: 22px;
        height: 22px;
        margin-right: 10px;
    }

    .content-who-tab {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .rm-menu-tab-who li {
        padding: 16px 12px;
        font-size: 14px;
    }

    .rm-menu-tab-who li svg {
        width: 20px;
        height: 20px;
        margin-right: 8px;
    }

    .content-who-tab {
        padding: 20px;
    }

    .content-who-tab h3 {
        font-size: 20px;
    }

    .content-who-tab p {
        font-size: 14px;
    }
}
