:root {

    /* ===============================
   COLORS
================================ */

    --bg: #f8fbff;
    /* main page background */
    --bg2: #eef3ff;
    /* secondary background */
    --card: #ffffff;
    /* card background */

    --primary: #4f7cff;
    /* main brand color */
    --accent: #6bdcff;
    /* highlight / gradient color */


    /* ===============================
   TEXT COLORS
================================ */

    --text: #1a1d2e;
    /* main text */
    --muted: #64748b;
    /* secondary text */
    --heading: #0f172a;
    /* headings */


    /* ===============================
   BORDERS
================================ */

    --border: #dde6ff;


    /* ===============================
   EFFECTS
================================ */

    --shadow: 0 4px 24px rgba(79, 124, 255, .10);


    /* ===============================
   BORDER RADIUS
================================ */

    --radius: 16px;
    /* cards */
    --radius-sm: 10px;
    /* buttons */


    /* ===============================
   TRANSITIONS
================================ */

    --t: .22s ease;


    /* ===============================
   GLOBAL SETTINGS
================================ */

    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 16px;

    color: var(--text);
    background: var(--bg);

    scroll-behavior: smooth;

}



/* ── UTILS ───────────────────────────────────────────── */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: box-shadow var(--t)
}

.card:hover {
    box-shadow: 0 8px 36px rgba(79, 124, 255, .18)
}



.section-label {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 999px;
    background: rgba(79, 124, 255, .1);
    color: var(--primary);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: 12px
}

.section-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    margin-bottom: 8px
}

.section-sub {
    color: var(--muted);
    font-size: .95rem;
    max-width: 520px
}

/* Default state (JS ना हो तो content visible) */
.fade-in {
    opacity: 1;
    transform: none;
    transition: opacity .6s ease, transform .6s ease;
}

/* JS होने पर animation start */
.js .fade-in {
    opacity: 0;
    transform: translateY(40px);
}

/* scroll पर visible */
.js .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}


/* ── HERO ────────────────────────────────────────────── */

/* HERO TEXT RESPONSIVE */

.section-label {
    display: inline-block;
    font-size: 14px;
    padding: 6px 14px;
    border-radius: 20px;
    background: #eef2ff;
    color: #4f46e5;
    font-weight: 600;
    margin-bottom: 16px;
}

.hero {
    padding: 64px 0 48px;
    text-align: center;
    background: linear-gradient(160deg, var(--bg) 60%, var(--bg2) 100%)
}

.hero h1 {
    font-size: clamp(24px, 5.5vw, 48px);
    font-weight: 800;
    background: linear-gradient(130deg, var(--text), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    margin-bottom: 16px;
}


.hero p {
    color: var(--muted);
    font-size: clamp(14px, 2.5vw, 18px);
    line-height: 1.7;
    max-width: 500px;
    margin: 0 auto 28px
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 24px
}

.badge {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: .75rem;
    font-weight: 700;
    background: var(--bg2);
    color: var(--primary);
    border: 1px solid var(--border)
}



/* button for image select design and Browse File Button*/

.btnStyleImage {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 12px 26px;
    margin-top: 10px;

    font-size: 15px;
    font-weight: 600;

    color: #fff;
    text-decoration: none;

    background: linear-gradient(135deg, #2563eb, #4f46e5);

    border: none;
    border-radius: 8px;

    cursor: pointer;
    transition: all .25s ease;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.btnStyleImage:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

/* Click effect */

.btnStyleImage:active {
    transform: scale(.96);
}



/* ── ADS ─────────────────────────────────────────────── */
aside.ad-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px
}

.ad-banner,
.ad-bottom {
    width: 100%;
    max-width: 728px;
    height: 88px;
    margin: 32px auto
}

.ad-bottom {
    margin: 48px auto 0
}

.ad-sidebar {
    width: 260px;
    min-height: 320px;
    flex-shrink: 0;
    position: sticky;
    top: 80px
}

/* ── TOOL SECTION ────────────────────────────────────── */
.tool-section {
    padding: 48px 0
}

.tool-layout {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 28px;
    align-items: start
}

.tool-card {
    padding: 32px
}

.tool-card h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 4px
}

.tool-card .subtitle {
    color: var(--muted);
    font-size: .85rem;
    margin-bottom: 24px
}


/* Drop zone */
.drop-zone {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color var(--t), background-color var(--t)
}

.drop-zone:hover,
.drop-zone.over {
    border-color: var(--primary);
    background: rgba(79, 124, 255, .04)
}

.drop-icon {
    font-size: 2.6rem;
    margin-bottom: 10px
}

.drop-zone h3 {
    font-size: .95rem;
    font-weight: 600;
    margin-bottom: 4px
}

.drop-zone p {
    font-size: .8rem;
    color: var(--muted);
    margin-bottom: 14px
}

#file-input {
    display: none
}

/* Preview */
.preview {
    display: none;
    margin: 20px 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border)
}

.preview.show {
    display: block
}

.preview-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    font-size: .8rem;
    font-weight: 600;
    color: var(--muted)
}

.remove-btn {
    color: #ef4444;
    font-size: 1rem;
    padding: 2px 6px;
    border-radius: 4px;
    transition: background-color var(--t)
}

.remove-btn:hover {
    background: rgba(239, 68, 68, .1)
}

.preview figure {
    display: flex;
    justify-content: center;
    padding: 16px;
    background: repeating-conic-gradient(rgba(128, 128, 128, .06) 0% 25%, transparent 0% 50%) 0/16px 16px
}

.preview figure img {
    max-height: 220px;
    border-radius: 8px;
    object-fit: contain;
    box-shadow: var(--shadow)
}

figcaption {
    padding: 8px 14px;
    font-size: .78rem;
    color: var(--muted);
    text-align: center;
    border-top: 1px solid var(--border)
}

/* Controls */
.controls {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    align-items: end;
    margin: 20px 0
}

.field label {
    display: block;
    font-size: .83rem;
    font-weight: 600;
    margin-bottom: 6px
}

select {
    width: 100%;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border);
    background: var(--card);
    color: var(--text);
    font-size: .87rem;
    font-family: inherit;
    appearance: none;
    background-repeat: no-repeat;
    background-position: right 12px center;
    cursor: pointer;
    transition: border-color var(--t)
}

select:focus {
    outline: none;
    border-color: var(--primary)
}


/* ── HOW TO USE ──────────────────────────────────────── */
.how-section {
    padding: 56px 0
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 36px
}

.step-card {
    padding: 26px 22px;
    text-align: center
}

.step-num {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 1.1rem;
    color: #fff;
    margin: 0 auto 14px
}

.s1 {
    background: linear-gradient(135deg, #4f7cff, #6bdcff)
}

.s2 {
    background: linear-gradient(135deg, #a78bfa, #c4b0ff)
}

.s3 {
    background: linear-gradient(135deg, #f472b6, #fb7bb8)
}

.s4 {
    background: linear-gradient(135deg, #22d3ee, #6bdcff)
}

.step-card h3 {
    font-size: .95rem;
    font-weight: 700;
    margin-bottom: 6px
}

.step-card p {
    font-size: .8rem;
    color: var(--muted);
    line-height: 1.55
}




/* ── RESPONSIVE ──────────────────────────────────────── */
@media(max-width:900px) {
    .tool-layout {
        grid-template-columns: 1fr
    }

    .ad-sidebar {
        display: none
    }
}

@media(max-width:640px) {


    .controls {
        grid-template-columns: 1fr
    }

    .ad-banner,
    .ad-bottom {
        max-width: 100%;
        height: 72px
    }

    .hero {
        padding: 44px 0 36px
    }
}