/* ================================
   RESET
================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f8fafc;
    color: #0f172a;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: min(1120px, 90%);
    margin: 0 auto;
}


/* ================================
   NAVBAR
================================ */

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid #e2e8f0;
    backdrop-filter: blur(12px);
}

.nav-container {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo {
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

nav a {
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    transition: color 0.2s ease;
}

nav a:hover {
    color: #2563eb;
}


/* ================================
   HERO
================================ */

.hero {
    min-height: 650px;
    display: flex;
    align-items: center;
    text-align: center;
    background:
        radial-gradient(circle at top, #dbeafe 0, transparent 38%),
        #f8fafc;
}

.hero-content {
    max-width: 780px;
}

.hero-label,
.section-label {
    color: #2563eb;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.hero h1 {
    font-size: clamp(44px, 7vw, 76px);
    line-height: 1.05;
    letter-spacing: -3px;
    margin-bottom: 24px;
}

.hero h1 span {
    color: #2563eb;
}

.hero-description {
    max-width: 600px;
    margin: 0 auto 32px;
    color: #64748b;
    font-size: 18px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    background: #2563eb;
    color: white;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.18);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.btn:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(37, 99, 235, 0.25);
}


/* ================================
   TOOLS
================================ */

.tools-section {
    padding: 100px 0;
    background: white;
}

.section-heading {
    max-width: 650px;
    margin-bottom: 50px;
}

.section-heading h2 {
    font-size: clamp(30px, 5vw, 46px);
    line-height: 1.15;
    letter-spacing: -1.5px;
    margin-bottom: 16px;
}

.section-heading > p:last-child {
    color: #64748b;
    font-size: 16px;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}


/* ================================
   TOOL CARDS
================================ */

.tool-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 28px 24px;
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    opacity: 0;
    transform: translateY(20px);
}

.tool-card.show {
    opacity: 1;
    transform: translateY(0);
}

.tool-card:hover {
    transform: translateY(-6px);
    border-color: #bfdbfe;
    box-shadow: 0 16px 35px rgba(15, 23, 42, 0.10);
}

.tool-card h3 {
    margin: 16px 0 8px;
    font-size: 20px;
    color: #0f172a;
}

.tool-card p {
    margin: 0 0 20px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}

.tool-btn {
    width: 100%;
    padding: 11px 16px;
    border: none;
    border-radius: 9px;
    background: #2563eb;
    color: white;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.tool-btn:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.tool-btn:active {
    transform: translateY(0);
}

.tool-card:hover {
    transform: translateY(-5px);
    border-color: #bfdbfe;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.08);
}

.tool-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    border-radius: 12px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 24px;
    font-weight: 800;
}

.tool-card h3 {
    font-size: 19px;
    margin-bottom: 10px;
}

.tool-card p {
    min-height: 72px;
    color: #64748b;
    font-size: 14px;
    margin-bottom: 20px;
}

.tool-btn {
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    transition: transform 0.2s ease;
}

.tool-btn:hover {
    transform: translateX(3px);
}


/* ================================
   ABOUT
================================ */

.about-section {
    padding: 100px 0;
    background: #f8fafc;
}


/* ================================
   CONTACT
================================ */

.contact-section {
    padding: 100px 0;
    background: white;
}


/* ================================
   FOOTER
================================ */

footer {
    padding: 30px 0;
    background: #0f172a;
    color: #94a3b8;
    text-align: center;
    font-size: 13px;
}


/* ================================
   RESPONSIVE
================================ */

@media (max-width: 950px) {

    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


@media (max-width: 650px) {

    .nav-container {
        min-height: 65px;
    }

    nav {
        gap: 14px;
    }

    nav a {
        font-size: 12px;
    }

    .logo {
        font-size: 17px;
    }

    .hero {
        min-height: 560px;
    }

    .hero h1 {
        letter-spacing: -2px;
    }

    .hero-description {
        font-size: 16px;
    }

    .tools-section,
    .about-section,
    .contact-section {
        padding: 70px 0;
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }

    .tool-card p {
        min-height: auto;
    }

}
/* ========================================
   TOOL WORKSPACE
======================================== */

.tool-workspace {
    display: none;
    padding: 80px 0;
    background: #f8fafc;
}

.tool-workspace.active {
    display: block;
}


.close-tool {
    border: none;
    background: transparent;
    color: #475569;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 30px;
}


.close-tool:hover {
    color: #2563eb;
}


.working-tool {
    max-width: 850px;
    margin: 0 auto;
    padding: 35px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    box-shadow: 0 15px 40px rgba(15, 23, 42, 0.06);
}


.working-tool-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 30px;
}


.large-tool-icon {
    width: 60px;
    height: 60px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    background: #eff6ff;
    color: #2563eb;

    border-radius: 14px;

    font-size: 25px;
    font-weight: 800;
}


.working-tool h2 {
    font-size: 32px;
    line-height: 1.2;
    margin-bottom: 5px;
}


.working-tool-header p:last-child {
    color: #64748b;
}


/* ========================================
   TEXT AREA
======================================== */

.tool-textarea {
    width: 100%;
    min-height: 300px;

    padding: 20px;

    resize: vertical;

    border: 1px solid #e2e8f0;
    border-radius: 12px;

    outline: none;

    background: #f8fafc;

    font-family: inherit;
    font-size: 16px;
    line-height: 1.7;

    transition: border-color 0.2s ease,
                box-shadow 0.2s ease;
}


.tool-textarea:focus {
    border-color: #2563eb;

    box-shadow:
        0 0 0 3px rgba(37, 99, 235, 0.1);
}


/* ========================================
   COUNTER
======================================== */

.counter-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 20px;
}


.stat {
    padding: 18px;
    text-align: center;

    border: 1px solid #e2e8f0;
    border-radius: 12px;

    background: #f8fafc;
}


.stat span {
    display: block;

    font-size: 25px;
    font-weight: 800;

    color: #2563eb;
}


.stat small {
    color: #64748b;
}


/* ========================================
   BUTTON
======================================== */

.primary-tool-btn {
    margin-top: 20px;

    padding: 13px 22px;

    border: none;
    border-radius: 9px;

    background: #2563eb;
    color: white;

    font-family: inherit;
    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}


.primary-tool-btn:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}


/* ========================================
   PASSWORD GENERATOR
======================================== */

.password-output {
    display: flex;
    gap: 10px;
}


.password-output input {
    flex: 1;

    min-width: 0;

    padding: 15px;

    border: 1px solid #e2e8f0;
    border-radius: 10px;

    background: #f8fafc;

    font-family: monospace;
    font-size: 16px;
}


.password-output button,
.color-value button {
    border: none;
    border-radius: 9px;

    padding: 0 18px;

    background: #0f172a;
    color: white;

    font-family: inherit;
    font-weight: 700;

    cursor: pointer;
}


.password-options {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;

    margin-top: 20px;
}


.password-options label {
    color: #475569;
    font-size: 14px;
}


.password-options input[type="number"] {
    width: 70px;

    margin-left: 8px;
    padding: 8px;

    border: 1px solid #e2e8f0;
    border-radius: 7px;
}


.checkbox-label {
    display: flex;
    align-items: center;
    gap: 7px;
}


.tool-message {
    margin-top: 12px;
    color: #2563eb;
    font-size: 14px;
    font-weight: 600;
}


/* ========================================
   COLOR PICKER
======================================== */

.color-picker-area {
    text-align: center;
}


#colorInput {
    width: 100px;
    height: 100px;

    padding: 0;

    border: none;

    cursor: pointer;
}


.color-preview {
    width: 100%;
    height: 180px;

    margin: 25px 0;

    border-radius: 14px;

    background: #2563eb;
}


.color-value {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    padding: 15px 18px;

    border: 1px solid #e2e8f0;
    border-radius: 10px;

    background: #f8fafc;
}


.color-value span {
    font-family: monospace;
    font-size: 18px;
    font-weight: 800;
}


/* ========================================
   COMING SOON
======================================== */

.coming-soon {
    text-align: center;
}


.coming-soon .large-tool-icon {
    margin: 0 auto 20px;
}


.coming-soon h2 {
    margin-bottom: 10px;
}


.coming-soon > p {
    color: #64748b;
}


.coming-soon > span {
    display: inline-block;

    margin-top: 20px;
    padding: 7px 14px;

    border-radius: 20px;

    background: #eff6ff;
    color: #2563eb;

    font-size: 13px;
    font-weight: 700;
}


/* ========================================
   MOBILE
======================================== */

@media (max-width: 650px) {

    .working-tool {
        padding: 20px;
    }


    .working-tool-header {
        align-items: flex-start;
    }


    .working-tool h2 {
        font-size: 26px;
    }


    .counter-stats {
        grid-template-columns: repeat(2, 1fr);
    }


    .password-output {
        flex-direction: column;
    }


    .password-output button {
        padding: 12px;
    }


    .color-value {
        flex-direction: column;
    }


    .color-value button {
        padding: 10px 16px;
    }

}/* ========================================
   IMAGE RESIZER
======================================== */

.upload-area {
    padding: 35px 20px;
    margin-bottom: 25px;
    text-align: center;
    border: 2px dashed #cbd5e1;
    border-radius: 14px;
    background: #f8fafc;
}

.upload-area input {
    display: none;
}

.upload-area label {
    display: inline-flex;
    padding: 12px 20px;
    border-radius: 9px;
    background: #2563eb;
    color: white;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.upload-area p {
    margin-top: 12px;
    color: #64748b;
    font-size: 13px;
}

.resize-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 7px;
    color: #475569;
    font-size: 14px;
    font-weight: 600;
}

.input-group input {
    width: 100%;
    padding: 12px;
    padding-right: 0px;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    outline: none;
    font-family: inherit;
}

.download-btn {
    display: inline-flex;
    margin-left: 8px;
}

@media (max-width: 650px) {

    .resize-controls {
        grid-template-columns: 1fr;
    }

    .download-btn {
        margin-left: 0;
    }
 
}