@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300..700&display=swap');

:root {
    --primary-color: #2C5EAD;
    --secondary-color: #1591DC;
    --light-color: #C4E2F5;
    --white-color: #FFFFFF;
    --text-dark: #1E293B;
    --light-dark: #6b7280;
    --theme-bg-1: #f8fafc;
    --theme-bg-2: #fff;
    --color-green: forestgren;
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: "Quicksand", sans-serif;
}

body {
    background: #f8fbff;
    color: var(--text-dark);
}

/* =========================
   THEME BUTTONS
========================= */

.theme-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: 0;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: .3s ease;
    text-decoration: none;
    line-height: 1;
}

/* Primary */
.theme-btn-primary {
    background: var(--primary-color);
    color: var(--white-color);
}

.theme-btn-primary:hover {
    background: var(--secondary-color);
}

/* Secondary */
.theme-btn-secondary {
    background: var(--secondary-color);
    color: var(--white-color);
}

.theme-btn-secondary:hover {
    opacity: .9;
}

/* Success */
.theme-btn-success {
    background: forestgreen;
    color: #fff;
}

.theme-btn-success:hover {
    opacity: .9;
}

/* Danger */
.theme-btn-danger {
    background: #dc2626;
    color: #fff;
}

.theme-btn-danger:hover {
    opacity: .9;
}

/* Dark */
.theme-btn-dark {
    background: var(--text-dark);
    color: #fff;
}

/* Outline */
.theme-btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.theme-btn-outline:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Light */
.theme-btn-light {
    background: var(--light-color);
    color: var(--text-dark);
}

/* Disabled */
.theme-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.footer {
    background: var(--primary-color);
    color: white;
    padding: 25px 10px;
    text-align: center;
}

/* ===================================
   HEADER
=================================== */

.main-header {
    position: sticky;
    top: 0;
    z-index: 999;
    padding: 15px 0;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, .06);
}



/* Logo */

.logo {
    text-decoration: none;
    font-size: 30px;
    font-weight: 800;
    color: var(--primary-color);
}

.logo span {
    color: var(--secondary-color);
}

/* Navigation */

.desktop-nav ul {
    display: flex;
    align-items: center;
    gap: 35px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.desktop-nav ul li {
    position: relative;
}

.desktop-nav ul li a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 700;
    transition: .3s;
}

.desktop-nav ul li a:hover {
    color: var(--secondary-color);
}

/* Dropdown */

.has-dropdown>a {
    display: flex;
    align-items: center;
    gap: 8px;
}

.has-dropdown>a i {
    font-size: 12px;
}

/* Mega Menu */

.mega-menu {
    position: absolute;
    top: 130%;
    left: 50%;
    transform: translateX(-50%);
    width: 520px;
    background: var(--white-color);
    border-radius: 15px;
    padding: 15px;
    opacity: 0;
    visibility: hidden;
    transition: all .3s ease;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .08);
    z-index: 999;

    /* 2 items per row */
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 15px;
}

/* Show on hover */
.has-dropdown:hover .mega-menu {
    top: 100%;
    opacity: 1;
    visibility: visible;
}

/* Links */
.mega-menu a {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--title-color);
    font-size: 14px;
    transition: all .2s ease;
    white-space: nowrap;
}

.mega-menu a:hover {
    background: rgba(0, 0, 0, .05);
    color: var(--primary-color);
}

/* Right */

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* CTA */

.header-btn {
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg,
            var(--primary-color),
            var(--secondary-color));

    transition: .3s;
}

.header-btn:hover {
    transform: translateY(-2px);
}

/* Hamburger */

.menu-btn {
    display: none;
    border: none;
    background: none;
    cursor: pointer;
    background-color: var(--primary-color);
    color: var(--white-color);
    font-size: 32px;
    height: 50px;
    width: 50px;
    border-radius: 50%;
}

/* ===================================
   OVERLAY
=================================== */

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    opacity: 0;
    visibility: hidden;
    transition: .3s;
    z-index: 999;
}

.overlay.show {
    opacity: 1;
    visibility: visible;
}

/* ===================================
   MOBILE DRAWER
=================================== */

.mobile-drawer {
    position: fixed;
    top: 0;
    right: -350px;
    width: 320px;
    max-width: 90%;
    height: 100vh;
    background: #fff;
    z-index: 1000;
    transition: all .35s ease;
    overflow-y: auto;
    padding: 25px;
    box-shadow: -15px 0 40px rgba(0, 0, 0, .12);
    scrollbar-width: thin;
}

.mobile-drawer.active {
    right: 0;
}

/* Custom Scrollbar */

.mobile-drawer::-webkit-scrollbar {
    width: 5px;
}

.mobile-drawer::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, .2);
    border-radius: 10px;
}

/* ===================================
   DRAWER TOP
=================================== */

.drawer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 18px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, .08);
}

.drawer-top h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    color: var(--primary-color);
}

.drawer-top button {
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    background: var(--primary-color);
    color: #fff;
    font-size: 20px;
    transition: .3s;
}

.drawer-top button:hover {
    transform: rotate(90deg);
}

/* ===================================
   MAIN LINKS
=================================== */

.mobile-drawer>a,
.mobile-tools-btn {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    text-decoration: none;
    background: none;
    border: none;
    color: var(--text-dark) !important;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: .3s;
    border-bottom: 1px solid rgba(0, 0, 0, .05);
}

.mobile-drawer>a:hover,
.mobile-tools-btn:hover {
    color: var(--primary-color);
    padding-left: 6px;
}

/* ===================================
   ACCORDION BUTTON
=================================== */

.mobile-tools-btn i {
    font-size: 14px;
    transition: .3s;
}

.mobile-tools-btn.active {
    color: var(--primary-color);
}

.mobile-tools-btn.active i {
    transform: rotate(180deg);
}

/* ===================================
   DROPDOWN MENU
=================================== */

.mobile-tools-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
    padding-left: 15px;
}

.mobile-tools-menu a {
    display: block;
    padding: 10px 0;
    text-decoration: none;
    color: #666;
    font-size: 14px;
    transition: .3s;
}

.mobile-tools-menu a:hover {
    color: var(--primary-color);
    padding-left: 8px;
}


/* theme design start here  */

.theme-section-1 {
    padding: 80px 0;
    background: linear-gradient(135deg,
            var(--primary-color),
            var(--secondary-color));
    position: relative;
    overflow: hidden;
}

.theme-section-1::before {
    content: "";
    position: absolute;
    top: -120px;
    right: -120px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
}

.theme-section-1::after {
    content: "";
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .05);
}

.theme-main-badge {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 50px;
    background: rgba(255, 255, 255, .15);
    color: var(--white-color);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .5px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.theme-main-title {
    font-size: clamp(1.4rem, 5vw, 2rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 18px;
    color: var(--white-color);
}

.theme-main-subtitle {
    font-size: clamp(16px, 2vw, 18px);
    font-weight: 400;
    line-height: 1.8;
    color: rgba(255, 255, 255, .9);
    max-width: 850px;
    margin: 0 auto;
}


.theme-title-section {
    padding: 60px 0;
    background: var(--theme-bg-1);
}



.theme-title {
    font-size: clamp(2rem, 4vw, 2rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 12px;
    color: var(--text-dark);
    position: relative;
}



.theme-subtitle {
    font-size: 18px;
    line-height: 1.7;
    color: var(--light-dark);
    margin-top: 10px;
}

.theme-search {
    max-width: 500px;
    margin-left: auto;
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.theme-search i {
    position: absolute;
    left: 18px;
    color: var(--light-dark);
    font-size: 15px;
}

.theme-search .form-control {
    height: 52px;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    padding-left: 45px;
    box-shadow: none;
}

.theme-search .form-control:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, .15);
}

.theme-search .btn {
    height: 52px;
    padding: 0 24px;
    border-radius: 14px;
    white-space: nowrap;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.tool-card {
    position: relative;
    background: #fff;
    padding: 30px 20px;
    border-radius: 18px;
    text-align: center;
    text-decoration: none;
    color: var(--text-dark);
    border: 1px solid #f1f1f1;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all .35s ease;
    overflow: hidden;
}

/* Top Accent */
.tool-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 0;
    height: 4px;
    background: var(--theme-color);
    transform: translateX(-50%);
    transition: width .35s ease;
}

.tool-card:hover::before {
    width: 100%;
}

.tool-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

/* Icon Box */
.tool-card-img-box {
    width: 90px;
    height: 90px;
    margin: 0 auto 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fff5f5, #ffe5e5);
    border: 1px solid #ffe0e0;
    transition: all .35s ease;
}

.tool-card:hover .tool-card-img-box {
    transform: scale(1.08);
    background: linear-gradient(135deg, #ffeaea, #ffd7d7);
}

/* Icon */
.tool-card-img-box img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    transition: transform .35s ease;
}

.tool-card:hover .tool-card-img-box img {
    transform: scale(1.12);
}

/* Title */
.tool-card h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
    color: #222;
    transition: color .3s ease;
}

.tool-card:hover h3 {
    color: var(--theme-color);
}


/* FAQ SECTION */

.faq-main {
    padding: 60px 0;
    background: #fff9ed;
}



.faq-item {
    background: #fff;
    border-radius: 16px;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 0, 0, .08);
    box-shadow: 0 5px 20px rgba(0, 0, 0, .05);
    overflow: hidden;
    transition: .3s;
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, .08);
}

.faq-question {
    width: 100%;
    border: 0;
    background: transparent;
    padding: 22px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    text-align: left;
}

.faq-title {
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    color: #222;
    padding-right: 20px;
}

.faq-icon {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    transition: transform .3s ease;
    flex-shrink: 0;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s ease;
}

.faq-answer p {
    margin: 0;
    padding: 0 25px 25px;
    color: #666;
    font-size: 15px;
    line-height: 1.8;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}


/* contact page design  */

.contact-main {
    padding: 70px 0;
    background: var(--theme-bg-1);
}

.theme-content-section {
    padding: 80px 0;
    background: var(--light-color);
}

.theme-content-box {
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, .06);
}

.theme-content-box h3,
.theme-content-box h4,
.theme-content-box h5,
.theme-content-box h6 {
    margin-top: 25px;
    margin-bottom: 12px;
    font-weight: 700;
}

.theme-content-box p,
.theme-content-box li {
    color: #555;
    line-height: 1.8;
}

.theme-content-box ul {
    padding-left: 20px;
}

.theme-content-hidden {
    max-height: 0;
    overflow: hidden;
    transition: all .6s ease;
}

.theme-content-hidden.active {
    max-height: 3000px;
}

.theme-read-more-btn {
    margin-top: 20px;
    border: 0;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    background: var(--primary-color);
    color: #fff;
}


/* =========================
   FILE UPLOAD BOX
========================= */

.theme-file-box {
    background: var(--theme-bg-2);
    border: 2px dashed var(--light-color);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    transition: .3s ease;
}

.theme-file-box:hover {
    border-color: var(--secondary-color);
}



.theme-file-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.theme-file-text {
    color: var(--light-dark);
    margin-bottom: 25px;
}

.theme-file-input {
    display: none;
}


/* ==========================
   PREVIEW BOX
========================== */

.theme-preview-box,
.theme-loading-box,
.theme-result-box {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    padding: 30px;
    margin-top: 25px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .05);
}

/* ==========================
   PREVIEW IMAGE
========================== */

#previewImage {
    max-width: 100%;
    max-height: 180px;
    object-fit: contain;
    border-radius: 12px;
    border: 1px solid #eee;
    padding: 10px;
    background: #fafafa;
}

/* ==========================
   FILE INFO
========================== */

#fileName {
    font-size: 20px;
    font-weight: 600;
    color: #222;
    margin-bottom: 10px;
    word-break: break-word;
}

#fileSize,
#imageDimensions {
    font-size: 15px;
    color: #666;
    margin-bottom: 5px;
}

/* ==========================
   LOADING
========================== */

.theme-loading-box {
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.theme-loading-box p {
    font-size: 16px;
    color: #555;
    margin: 0;
}

.spinner-border {
    width: 60px;
    height: 60px;
    border-width: 5px;
}

/* ==========================
   RESULT BOX
========================== */

.theme-result-box h4 {
    font-size: 24px;
    font-weight: 700;
    color: #198754;
    margin-bottom: 20px;
}

#originalSize,
#convertedSize,
#savedPercent {
    font-size: 16px;
    color: #444;
    margin-bottom: 10px;
}

#savedPercent {
    font-weight: 700;
    color: #198754;
    font-size: 18px;
}

/* ==========================
   BUTTONS
========================== */

#convertBtn,
#downloadBtn,
#resetBtn {
    min-width: 220px;
    margin-top: 20px;
}

/* ==========================
   SUCCESS DOWNLOAD BUTTON
========================== */

.theme-btn-success {
    background: #198754;
    color: #fff;
    border: none;
}

.theme-btn-success:hover {
    background: #157347;
    color: #fff;
}

/* ==========================
   OUTLINE BUTTON
========================== */

.theme-btn-outline {
    background: transparent;
    border: 1px solid #ddd;
    color: #333;
}

.theme-btn-outline:hover {
    background: #f5f5f5;
}