* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f7f8fc;
    color: #171923;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}


/* NAVBAR */

.navbar {
    width: 100%;
    max-width: 1150px;
    margin: auto;

    padding: 22px 25px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 24px;
    font-weight: 800;
}

.logo span {
    color: #5b5cf0;
}

.navbar nav {
    display: flex;
    gap: 25px;
}

.navbar nav a {
    color: #555;
    font-size: 15px;
}

.navbar nav a:hover {
    color: #5b5cf0;
}


/* HERO */

.hero {
    text-align: center;

    max-width: 850px;

    margin: auto;

    padding: 90px 25px 80px;
}

.badge {
    display: inline-block;

    background: #ececff;

    color: #4c4ddd;

    padding: 7px 15px;

    border-radius: 30px;

    font-size: 14px;

    font-weight: 600;

    margin-bottom: 20px;
}

.hero h1 {
    font-size: clamp(42px, 7vw, 72px);

    line-height: 1.05;

    letter-spacing: -2px;

    margin-bottom: 25px;
}

.hero-text {
    max-width: 650px;

    margin: auto;

    font-size: 18px;

    color: #666;

    margin-bottom: 35px;
}

.hero-button {
    display: inline-block;

    background: #5b5cf0;

    color: white;

    padding: 14px 25px;

    border-radius: 10px;

    font-weight: 700;

    transition: 0.2s;
}

.hero-button:hover {
    transform: translateY(-2px);

    opacity: 0.9;
}


/* TOOLS */

.tools-section {
    max-width: 1150px;

    margin: auto;

    padding: 70px 25px;
}

.tools-section h2 {
    text-align: center;

    font-size: 38px;

    margin-bottom: 8px;
}

.section-description {
    text-align: center;

    color: #777;

    margin-bottom: 40px;
}

.tools-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 20px;
}

.tool-card {
    background: white;

    border: 1px solid #e7e7ee;

    border-radius: 15px;

    padding: 28px;

    transition: 0.2s;
}

.tool-card:hover {
    transform: translateY(-4px);

    box-shadow:
        0 12px 35px
        rgba(0, 0, 0, 0.08);
}

.tool-icon {
    font-size: 32px;

    margin-bottom: 15px;
}

.tool-card h3 {
    font-size: 20px;

    margin-bottom: 8px;
}

.tool-card p {
    color: #707070;

    font-size: 14px;
}


/* CONVERTER */

.converter {
    max-width: 850px;

    margin: 0 auto;

    padding:
        20px
        25px
        80px;

    text-align: center;
}

.upload-box {
    background: white;

    border:
        2px
        dashed
        #cfd0e8;

    border-radius: 16px;

    padding: 45px 25px;
}

.upload-box h2 {
    margin-bottom: 8px;
}

.upload-box p {
    color: #777;

    margin-bottom: 25px;
}

input[type="file"] {
    display: none;
}

.upload-button {
    display: inline-block;

    background: #5b5cf0;

    color: white;

    padding: 13px 24px;

    border-radius: 9px;

    cursor: pointer;

    font-weight: 700;
}

.upload-button:hover {
    opacity: 0.9;
}


/* PREVIEW */

.preview {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 15px;

    margin-top: 25px;
}

.preview-image {
    width: 100%;

    height: 150px;

    object-fit: contain;

    background: white;

    border:
        1px
        solid
        #ddd;

    border-radius: 10px;

    padding: 5px;
}


/* BUTTON */

.convert-button {
    margin-top: 30px;

    padding: 14px 30px;

    border: none;

    border-radius: 9px;

    background: #171923;

    color: white;

    font-size: 16px;

    font-weight: 700;

    cursor: pointer;
}

.convert-button:hover:not(:disabled) {
    opacity: 0.9;
}

.convert-button:disabled {
    opacity: 0.5;

    cursor: not-allowed;
}


/* STATUS */

.status {
    margin-top: 15px;

    color: #555;

    min-height: 24px;
}


/* FILE LIST */

.file-list {
    margin-top: 20px;

    display: flex;

    flex-direction: column;

    gap: 8px;
}

.file-item {
    background: white;

    border:
        1px
        solid
        #e5e5e5;

    border-radius: 8px;

    padding: 10px 15px;

    text-align: left;

    font-size: 14px;
}


/* INPUT ROW */

.input-row {
    display: flex;

    justify-content: center;

    gap: 20px;

    margin-top: 25px;
}

.input-row div {
    display: flex;

    flex-direction: column;

    gap: 7px;
}

.input-row label {
    font-weight: 600;

    font-size: 14px;
}

.input-row input {
    width: 130px;

    padding: 11px;

    border:
        1px
        solid
        #d7d7df;

    border-radius: 8px;

    font-size: 16px;
}


/* QUALITY */

.quality-box {
    margin-top: 25px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 12px;
}

.quality-box label {
    font-weight: 600;
}

.quality-box select {
    padding: 10px 15px;

    border:
        1px
        solid
        #d7d7df;

    border-radius: 8px;

    background: white;

    font-size: 14px;
}


/* INFO */

.info-section {
    max-width: 800px;

    margin: auto;

    padding: 70px 25px;
}

.info-section h2 {
    font-size: 32px;

    margin-bottom: 20px;
}

.info-section p {
    color: #666;

    margin-bottom: 15px;
}


/* FOOTER */

footer {
    margin-top: 50px;

    padding: 35px 25px;

    border-top:
        1px
        solid
        #ddd;

    text-align: center;

    color: #777;

    font-size: 14px;
}

footer div {
    margin-top: 10px;
}

footer a {
    margin: 0 8px;
}

footer a:hover {
    color: #5b5cf0;
}


/* MOBILE */

@media (max-width: 750px) {

    .navbar {
        flex-direction: column;

        gap: 15px;
    }


    .tools-grid {
        grid-template-columns: 1fr;
    }


    .preview {
        grid-template-columns:
            repeat(2, 1fr);
    }


    .input-row {
        flex-direction: column;

        align-items: center;
    }


    .quality-box {
        flex-direction: column;
    }

}


@media (max-width: 450px) {

    .preview {
        grid-template-columns: 1fr;
    }

}