html,
body {
    margin: 0;
    padding: 0;

    width: 100%;
    min-height: 100%;

    overflow-x: hidden;
    overflow-y: auto;
}

.app-layout {
    width: 100%;
    height: 100vh;

    display: flex;

    overflow: hidden;
}
.sidebar {
    width: 315px;
    height: 100vh;

    flex-shrink: 0;

    background: #faf9f0;

    padding: 25px 15px;

    box-sizing: border-box;

    overflow-y: auto;
}
.sidebar h1 {
    margin: 0 0 45px 65px;

    font-size: 36px;
}


.sidebar a {
    display: block;

    margin-bottom: 45px;

    color: black;

    text-decoration: none;

    font-size: 20px;
}
.main-content {
    flex: 1;

    height: 100vh;

    overflow-y: auto;
    overflow-x: hidden;

    box-sizing: border-box;

    padding: 30px 60px 80px;
}

.home-text {
    margin-left: 100px;
    margin-top: 50px;
    font-size: 30px;
}
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body{
   background-color: white
}

h1 {
    font-size: 35px;
    font-weight: 400px;
    text-align: center;
    padding: 20px;
}
ul li {
    list-style: none;
}
ul li a{
    color: #100f0f;
    font-weight: 400px;
    padding: 15px;
    display: block;
    text-decoration: none;
    font-size: 20px;
    line-height: 2;
}
img{
    width: 170px;
    margin-left: 40px;
}
.top-header1 {
    display: flex;
    gap: 10px;
    padding: 10px 20px;
}
.croptext {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 40px;
    text-align: center;
    margin-top: 30px;
}
.croptext1 {
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    font-size: 25px;
    text-align: center;
    line-height: 2.3;
}
.hero {
    width: 100%;
    min-height: 100vh;
    flex: 0 1 390px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.background-head {
    margin-left: 20px;
}



.upload-box {
    width: 400px;
    height: 200px;

    margin: 150px auto 0;

    border: 3px dashed #000;
    border-radius: 12px;

    display: flex;
    justify-content: center;
    align-items: center;

    text-align: center;

    cursor: pointer;

    transition: 0.3s;
}

.upload-box:hover {
    background: #f8f8f8;
    border-color: #2563eb;
}

.upload-box.drag-over {
    background: #eff6ff;
    border-color: #2563eb;
    transform: scale(1.02);
}

.upload-content h2 {
    font-size: 20px;
    margin: 5px 0;
}

.upload-content p {
    margin: 5px;
}

.upload-icon {
    font-size: 35px;
    margin-bottom: 5px;
}

#uploadBtn {
    background: #2563eb;
    color: white;

    border: none;
    border-radius: 8px;

    padding: 10px 22px;

    font-size: 15px;
    cursor: pointer;
}

#uploadBtn:hover {
    background: #1d4ed8;
}

.file-info {
    font-size: 12px;
    color: #777;
}


/* MOBILE */

@media (max-width: 600px) {

    .upload-box {
        width: 85%;
        height: 190px;
        margin-top: 100px;
    }

}

.crop-editor {
    display: none;

    width: 90%;
    max-width: 900px;

    margin: 60px auto;
}


.crop-workspace {
    position: relative;

    width: fit-content;
    max-width: 100%;

    margin: 0 auto;

    overflow: hidden;

    user-select: none;
    touch-action: none;
}


#cropImage {
    display: block;

    max-width: 100%;
    max-height: 600px;

    width: auto;
    height: auto;

    margin: auto;

    pointer-events: none;
}


/* CROP BOX */

.crop-selection {
    position: absolute;

    border: 3px solid white;

    box-sizing: border-box;

    box-shadow:
        0 0 0 9999px rgba(0, 0, 0, 0.5);

    cursor: move;

    touch-action: none;
}


/* CORNER HANDLES */

.crop-handle {
    position: absolute;

    width: 20px;
    height: 20px;

    background: white;

    border: 3px solid #2563eb;

    border-radius: 50%;

    z-index: 20;

    touch-action: none;
}


.top-left {
    left: -12px;
    top: -12px;

    cursor: nwse-resize;
}


.top-right {
    right: -12px;
    top: -12px;

    cursor: nesw-resize;
}


.bottom-left {
    left: -12px;
    bottom: -12px;

    cursor: nesw-resize;
}


.bottom-right {
    right: -12px;
    bottom: -12px;

    cursor: nwse-resize;
}


/* BUTTON AREA */

.crop-buttons {
    display: flex;

    justify-content: center;

    gap: 15px;

    margin-top: 25px;
}


.crop-buttons button {
    padding: 12px 25px;

    border: none;

    border-radius: 8px;

    font-size: 16px;

    cursor: pointer;
}


#resetCropBtn {
    background: #e5e7eb;
}


#cropBtn {
    background: #2563eb;
    color: white;
}

.crop-result {
    display: none;
    text-align: center;
    width: 90%;
    max-width: 900px;
    margin: 40px auto;
}

#croppedImage {
    display: block;
    max-width: 100%;
    max-height: 600px;
    margin: 20px auto;
}

#downloadBtn {
    padding: 12px 25px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
}

#downloadBtn:hover {
    background: #1d4ed8;
}

@media (max-width: 600px) {

    .crop-editor {
        width: 95%;
        margin-top: 30px;
    }


    #cropImage {
        max-height: 500px;
    }


    .crop-handle {
        width: 26px;
        height: 26px;
    }

}
.crop-animage {
    text-align: center;
    font-size: 30px;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    margin-top: 200px;
}
.crop-animage1 {
    text-align: center;
    font-size: 20px;
    font-family: inter, Verdana, Geneva, Tahoma, sans-serif;
    margin-top: 20px;
    line-height: 2;
}




/* =================================
   CROP PAGE FEATURES
================================= */

.crop-features {
    width: 100%;
    max-width: 1200px;
    margin: 120px auto 0;
    padding: 40px 30px 80px;
}

.features-title {
    text-align: center;
    font-family: Arial, sans-serif;
    font-size: 32px;
    margin-bottom: 10px;
}

.features-subtitle {
    text-align: center;
    font-family: Arial, sans-serif;
    font-size: 17px;
    color: #555;
    margin-bottom: 70px;
}


/* 3 columns */

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 80px 70px;
}


/* Individual feature */

.feature-card {
    text-align: center;
    font-family: Arial, sans-serif;
}

.feature-icon {
    font-size: 42px;
    margin-bottom: 22px;
}

.feature-card h3 {
    font-size: 19px;
    margin-bottom: 22px;
}

.feature-card p {
    font-size: 17px;
    line-height: 1.7;
    color: #222;
    max-width: 310px;
    margin: 0 auto;
}
/* ================================
   FAQ SECTION
================================ */

.faq-section {
    width: 90%;
    max-width: 900px;
    margin: 100px auto;
    font-family: Arial, sans-serif;
}

.faq-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 50px;
}


/* FAQ ITEM */

.faq-item {
    border-bottom: 1px solid #d5d5d5;
}


/* QUESTION */

.faq-question {
    width: 100%;
    padding: 22px 5px;

    background: white;
    border: none;

    display: flex;
    justify-content: space-between;
    align-items: center;

    text-align: left;

    font-size: 18px;
    font-weight: 600;

    cursor: pointer;
}


/* + ICON */

.faq-icon {
    font-size: 27px;
    font-weight: 300;

    transition: transform 0.3s ease;
}


/* ANSWER */

.faq-answer {
    max-height: 0;
    overflow: hidden;

    transition: max-height 0.35s ease;
}

.faq-answer p {
    padding: 0 45px 22px 5px;

    font-size: 16px;
    line-height: 1.7;

    color: #555;
}


/* OPEN FAQ */

.faq-item.active .faq-answer {
    max-height: 250px;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}


/* MOBILE */

@media (max-width: 600px) {

    .faq-section {
        width: 90%;
        margin: 70px auto;
    }

    .faq-title {
        font-size: 27px;
        margin-bottom: 35px;
    }

    .faq-question {
        font-size: 16px;
        padding: 20px 3px;
    }

    .faq-answer p {
        font-size: 15px;
        padding-right: 20px;
    }
}
/* =========================================================
   10. FOOTER
   ========================================================= */

.footer {
    text-align: center;
    padding: 40px 20px;
    margin-top: 80px;
    border-top: 1px solid #ddd;
    background: #f8f8f8;
}

.footer h3 {
    margin: 0 0 8px;
    font-size: 24px;
}

.footer p {
    color: #666;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin: 25px 0;
}

.footer-links a {
    color: #555;
    text-decoration: none;
    font-size: 15px;
}

.footer-links a:hover {
    color: #8e67dc;
    text-decoration: underline;
}

.copyright {
    font-size: 14px;
}

@media (max-width: 600px) {
    .crop-features {
        margin: 64px auto 0;
        padding: 24px 18px 48px;
    }

    .features-title {
        font-size: 26px;
        line-height: 1.25;
    }

    .features-subtitle {
        margin-bottom: 32px;
        line-height: 1.5;
    }

    .features-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .feature-card {
        padding: 22px 18px;
        border: 1px solid #e5e7eb;
        border-radius: 16px;
        background: #fff;
    }

    .feature-card h3 {
        margin-bottom: 12px;
    }

    .feature-card p {
        max-width: 340px;
        line-height: 1.6;
    }
}