
/* ==========================================
   AM DIGITAL STUDIO
   FREE DIGITAL TOOLS - COMPLETE CSS
========================================== */

:root {
    --bg: #080b16;
    --surface: #111629;
    --surface-light: #171e35;
    --purple: #8b5cf6;
    --purple-light: #a78bfa;
    --white: #ffffff;
    --muted: #a1a1b5;
    --border: rgba(255,255,255,0.16);
}

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

html {
    scroll-behavior: smooth;
}

body.tools-page {
    background: var(--bg);
    color: var(--white);
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    min-height: 100vh;
}

.tools-page button,
.tools-page input,
.tools-page textarea {
    font-family: inherit;
}

.tools-page button {
    cursor: pointer;
}

.tools-container {
    width: min(1150px, 92%);
    margin: auto;
}

/* NAVIGATION */

.tools-header {
    width: 100%;
    background: rgba(8,11,22,0.96);
    border-bottom: 1px solid var(--border);
    padding: 17px 0;
    position: relative;
    z-index: 10;
}

.tools-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.tools-logo {
    color: white;
    font-size: 21px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.tools-logo span {
    color: var(--purple-light);
}

.tools-nav-links {
    display: flex;
    align-items: center;
    gap: 27px;
}

.tools-nav-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 13px;
    transition: .25s;
}

.tools-nav-links a:hover {
    color: var(--purple-light);
}

.tools-home-btn {
    padding: 10px 16px;
    border: 1px solid var(--purple);
    border-radius: 9px;
    color: white;
    text-decoration: none;
    font-size: 12px;
    transition: .25s;
}

.tools-home-btn:hover {
    background: var(--purple);
}

/* HERO */

.tools-hero {
    text-align: center;
    padding: 95px 0 75px;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(139,92,246,.24), transparent 65%),
        var(--bg);
}

.tools-badge {
    display: inline-block;
    padding: 9px 18px;
    border: 1px solid rgba(167,139,250,.4);
    border-radius: 50px;
    background: rgba(139,92,246,.13);
    color: #c4b5fd;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
}

.tools-hero h1 {
    margin: 23px 0 17px;
    font-size: clamp(38px, 6vw, 65px);
    font-weight: 800;
    line-height: 1.16;
    letter-spacing: -2px;
}

.tools-hero h1 span {
    color: var(--purple-light);
}

.tools-hero p {
    max-width: 650px;
    margin: auto;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.9;
}

/* SEARCH */

.tools-search {
    max-width: 570px;
    margin: 32px auto 0;
    position: relative;
}

.tools-search i {
    position: absolute;
    top: 50%;
    left: 19px;
    transform: translateY(-50%);
    color: var(--purple-light);
}

.tools-search input {
    width: 100%;
    padding: 17px 20px 17px 50px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: #111629;
    color: white;
    outline: none;
    font-size: 14px;
    transition: .25s;
}

.tools-search input:focus {
    border-color: var(--purple);
    box-shadow: 0 0 0 3px rgba(139,92,246,.15);
}

.tools-search input::placeholder {
    color: #777f94;
}

/* TOOLS SECTION */

.tools-section {
    padding: 55px 0 90px;
}

.tools-section-heading {
    text-align: center;
    margin-bottom: 35px;
}

.tools-section-heading h2 {
    font-size: clamp(25px, 4vw, 36px);
    font-weight: 700;
    margin-bottom: 10px;
}

.tools-section-heading p {
    color: var(--muted);
    font-size: 13px;
}

/* FILTERS */

.tools-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 38px;
}

.tool-filter {
    padding: 10px 20px;
    border: 1px solid var(--border);
    border-radius: 50px;
    background: var(--surface);
    color: #cbd5e1;
    font-size: 12px;
    transition: .25s;
}

.tool-filter:hover,
.tool-filter.active {
    background: var(--purple);
    border-color: var(--purple);
    color: white;
}

/* TOOL CARDS */

.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 23px;
}

.tool-card {
    padding: 29px;
    background: linear-gradient(145deg, #151c32, #0e1323);
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 19px;
    transition: .3s;
}

.tool-card:hover {
    transform: translateY(-7px);
    border-color: var(--purple-light);
    box-shadow: 0 15px 35px rgba(0,0,0,.3);
}

.tool-icon {
    width: 59px;
    height: 59px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139,92,246,.17);
    border: 1px solid rgba(167,139,250,.2);
    border-radius: 16px;
    color: var(--purple-light);
    font-size: 24px;
    margin-bottom: 22px;
}

.tool-card h3 {
    font-size: 18px;
    margin-bottom: 11px;
}

.tool-card p {
    min-height: 75px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.9;
    margin-bottom: 22px;
}

.tool-card button {
    width: 100%;
    padding: 13px;
    border: 1px solid var(--purple);
    border-radius: 10px;
    background: var(--purple);
    color: white;
    font-size: 12px;
    font-weight: 600;
    transition: .25s;
}

.tool-card button:hover {
    background: transparent;
    color: var(--purple-light);
}

/* NO RESULTS */

#noToolsResults {
    display: none;
    padding: 35px;
    text-align: center;
    color: var(--muted);
}

/* WORKSPACE */

#toolWorkspace {
    display: none;
    max-width: 850px;
    margin: 55px auto 0;
    padding: 32px;
    background: var(--surface);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 20px;
    box-shadow: 0 15px 45px rgba(0,0,0,.25);
}

.workspace-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 25px;
}

#workspaceTitle {
    font-size: 23px;
    font-weight: 700;
}

#workspaceDescription {
    color: var(--muted);
    font-size: 12px;
    margin-top: 7px;
}

#closeWorkspace {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface-light);
    color: white;
    font-size: 17px;
}

#closeWorkspace:hover {
    background: #dc2626;
}

/* PANELS */

.tool-panel {
    display: none;
}

.tool-panel.active {
    display: block;
}

.tool-panel h3 {
    font-size: 19px;
    margin-bottom: 18px;
}

.tool-panel p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.8;
}

/* INPUTS */

.tool-panel label {
    display: block;
    margin: 17px 0 9px;
    color: #e2e8f0;
    font-size: 13px;
}

.tool-panel input:not([type="checkbox"]):not([type="range"]):not([type="color"]),
.tool-panel textarea {
    width: 100%;
    padding: 13px 15px;
    background: #080d1b;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 10px;
    color: white;
    outline: none;
    font-size: 13px;
}

.tool-panel input:focus,
.tool-panel textarea:focus {
    border-color: var(--purple);
}

.tool-panel textarea {
    min-height: 135px;
    resize: vertical;
}

.tool-panel input[type="file"] {
    cursor: pointer;
}

.tool-panel input[type="range"] {
    width: 100%;
    accent-color: var(--purple);
}

.tool-panel input[type="checkbox"] {
    accent-color: var(--purple);
}

.tool-panel input[type="color"] {
    width: 65px;
    height: 42px;
    padding: 3px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
}

/* PANEL BUTTONS */

.tool-panel button {
    padding: 12px 20px;
    margin: 15px 8px 0 0;
    border: 1px solid var(--purple);
    border-radius: 10px;
    background: var(--purple);
    color: white;
    font-size: 12px;
    font-weight: 600;
    transition: .25s;
}

.tool-panel button:hover {
    background: #7544df;
    border-color: #7544df;
}

/* RESULTS */

.tool-result {
    margin-top: 23px;
    padding: 20px;
    min-height: 30px;
    background: #080d1b;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 13px;
    color: #e2e8f0;
    overflow-wrap: anywhere;
}

.tool-result img,
.tool-result canvas {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 15px auto;
    border-radius: 8px;
}

/* QR CODE */

#qrCanvas {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 20px;
    background: white;
    width: fit-content;
    max-width: 100%;
    margin: 15px auto;
    padding: 10px;
    border-radius: 8px;
}

#qrCanvas img,
#qrCanvas canvas {
    max-width: 100%;
}

/* PALETTE */

#palettePreview {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin: 22px 0;
}

.palette-color {
    min-height: 110px;
    display: flex;
    align-items: end;
    justify-content: center;
    padding: 9px;
    border-radius: 10px;
    color: white;
    font-size: 11px;
    text-shadow: 0 1px 5px #000;
    overflow-wrap: anywhere;
}

/* WORD STATISTICS */

.word-statistics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 20px;
}

.word-statistics div {
    padding: 17px 8px;
    text-align: center;
    background: #080d1b;
    border: 1px solid var(--border);
    border-radius: 12px;
}

.word-statistics strong {
    display: block;
    color: var(--purple-light);
    font-size: 23px;
}

.word-statistics span {
    display: block;
    color: var(--muted);
    font-size: 10px;
    margin-top: 5px;
}

/* BENEFITS */

.tools-benefits {
    padding: 75px 0;
    background: #0d1221;
    border-top: 1px solid var(--border);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.benefit-item {
    padding: 28px 20px;
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: .25s;
}

.benefit-item:hover {
    border-color: var(--purple-light);
    transform: translateY(-4px);
}

.benefit-item i {
    color: var(--purple-light);
    font-size: 28px;
    margin-bottom: 17px;
}

.benefit-item h3 {
    font-size: 16px;
    margin-bottom: 10px;
}

.benefit-item p {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.8;
}

/* CTA */

.tools-cta {
    padding: 75px 20px;
    text-align: center;
    background:
        radial-gradient(ellipse at center, rgba(139,92,246,.15), transparent 70%);
}

.tools-cta h2 {
    font-size: clamp(25px, 4vw, 37px);
    margin-bottom: 13px;
}

.tools-cta p {
    max-width: 600px;
    margin: auto;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.9;
}

/* FOOTER */

.tools-footer {
    padding: 28px 15px;
    text-align: center;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 12px;
    line-height: 2;
}

/* RESPONSIVE */

@media (max-width: 900px) {
    .tools-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tools-nav-links {
        gap: 14px;
    }
}

@media (max-width: 650px) {
    .tools-nav {
        flex-wrap: wrap;
    }

    .tools-nav-links {
        order: 3;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        padding-top: 12px;
        border-top: 1px solid var(--border);
    }

    .tools-nav-links a {
        font-size: 11px;
    }

    .tools-home-btn {
        font-size: 10px;
    }

    .tools-hero {
        padding: 65px 0 55px;
    }

    .tools-hero h1 {
        letter-spacing: -1px;
    }

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

    .tool-card p {
        min-height: auto;
    }

    #toolWorkspace {
        padding: 20px;
    }

    #workspaceTitle {
        font-size: 19px;
    }

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

    #palettePreview {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 380px) {
    .tools-logo {
        font-size: 17px;
    }

    .tools-home-btn {
        padding: 8px 10px;
    }

    .tools-filters {
        gap: 7px;
    }

    .tool-filter {
        padding: 9px 13px;
        font-size: 11px;
    }
}



/* ===============================
   Footer
================================ */

.site-footer{

    padding:70px 0 25px;

    background:#0b0f16;

    color:#ffffff;

}


.footer-container{

    width:90%;

    max-width:1200px;

    margin:auto;

    display:grid;

    grid-template-columns:1.5fr 1fr 1fr 1.2fr;

    gap:45px;

}


.footer-box h3{

    margin-bottom:18px;

    color:#ffffff;

    font-size:1.1rem;

    font-weight:700;

}


.footer-box p{

    max-width:300px;

    color:#aeb5c0;

    font-size:.88rem;

    line-height:1.8;

}


.footer-tagline{

    margin-bottom:10px;

    color:#ffffff !important;

    font-weight:600;

}


.footer-box > a{

    display:block;

    width:max-content;

    margin-bottom:10px;

    color:#aeb5c0;

    font-size:.88rem;

    transition:.3s ease;

}


.footer-box > a:hover{

    color:#ffffff;

    transform:translateX(4px);

}


/* ===============================
   Social Icons
================================ */

.social-icons{

    display:flex;

    align-items:center;

    gap:10px;

    margin-top:18px;

}


.social-icons a{

    width:40px;

    height:40px;

    display:flex;

    align-items:center;

    justify-content:center;

    border-radius:10px;

    background:rgba(255,255,255,.08);

    color:#ffffff;

    transition:.3s ease;

}


.social-icons a:hover{

    background:var(--primary);

    transform:translateY(-4px);

}


/* ===============================
   Footer Bottom
================================ */

.site-footer hr{

    width:90%;

    max-width:1200px;

    margin:50px auto 25px;

    border:0;

    border-top:1px solid rgba(255,255,255,.10);

}


.copyright{

    text-align:center;

    color:#8d96a3;

    font-size:.8rem;

    line-height:1.6;

}


/* ===============================
   Back To Top
================================ */

.back-to-top{

    position:fixed;

    right:25px;

    bottom:25px;

    width:45px;

    height:45px;

    display:flex;

    align-items:center;

    justify-content:center;

    border:0;

    border-radius:50%;

    background:var(--primary);

    color:#ffffff;

    font-size:1.1rem;

    cursor:pointer;

    opacity:0;

    visibility:hidden;

    transform:translateY(15px);

    transition:.3s ease;

    z-index:900;

    box-shadow:0 8px 25px rgba(22,119,255,.25);

}


.back-to-top.show-top{

    opacity:1;

    visibility:visible;

    transform:translateY(0);

}


/* ==================================================
   TABLET
================================================== */

@media (max-width:1000px){

    .services-grid{

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

    }


    .pricing-grid{

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

    }


    .pricing-card.featured{

        transform:none;

    }


    .why-grid{

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

    }


    .process-grid{

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

    }


    .process-card:not(:last-child)::after{

        display:none;

    }


    .footer-container{

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

    }

}


/* ==================================================
   MOBILE
================================================== */

@media (max-width:700px){

    /* Navbar */

    .navbar{

        height:70px;

    }


    .nav-container{

        width:90%;

    }


    .menu-toggle{

        display:flex;

    }


    .nav-links{

        position:absolute;

        top:70px;

        left:0;

        width:100%;

        padding:20px;

        display:flex;

        flex-direction:column;

        align-items:center;

        gap:5px;

        background:#ffffff;

        border-top:1px solid var(--border);

        box-shadow:0 15px 30px rgba(0,0,0,.08);

        opacity:0;

        visibility:hidden;

        transform:translateY(-10px);

        transition:.3s ease;

    }


    .nav-links.active{

        opacity:1;

        visibility:visible;

        transform:translateY(0);

    }


    .nav-links a{

        width:100%;

        padding:12px;

        text-align:center;

    }


    /* Hero */

    .poster-hero{

        min-height:auto;

        padding:140px 0 90px;

    }


    .hero-content h1{

        font-size:2.45rem;

        letter-spacing:-1.3px;

    }


    .hero-content > p{

        font-size:.95rem;

    }


    .hero-buttons{

        flex-direction:column;

        width:100%;

    }


    .primary-btn,
    .secondary-btn{

        width:100%;

        max-width:300px;

    }


    /* Sections */

    .poster-services,
    .poster-packages,
    .why-poster,
    .poster-process,
    .poster-faq{

        padding:80px 0;

    }


    .services-grid,
    .pricing-grid,
    .why-grid,
    .process-grid{

        width:90%;

        grid-template-columns:1fr;

    }


    .pricing-card.featured{

        transform:none;

    }


    .section-header{

        margin-bottom:40px;

    }


    .section-header h2{

        font-size:2rem;

    }


    /* CTA */

    .poster-cta{

        padding:90px 0;

    }


    .cta-content h2{

        font-size:2rem;

    }


    /* Footer */

    .footer-container{

        grid-template-columns:1fr;

        gap:35px;

    }


    .footer-box p{

        max-width:none;

    }


    .site-footer{

        padding-top:55px;

    }

}


/* ==================================================
   SMALL MOBILE
================================================== */

@media (max-width:420px){

    .hero-content h1{

        font-size:2.1rem;

    }


    .hero-badge,
    .section-badge{

        padding:7px 12px;

        font-size:.68rem;

    }


    .poster-service-card,
    .pricing-card,
    .why-card{

        padding:28px 22px;

    }


    .package-top h3{

        font-size:2.6rem;

    }


    .faq-question{

        padding:18px;

        font-size:.88rem;

    }


    .faq-answer p{

        padding:0 18px 18px;

        font-size:.84rem;

    }


    .cta-content h2{

        font-size:1.8rem;

    }


    .back-to-top{

        right:15px;

        bottom:15px;

        width:42px;

        height:42px;

    }

}
/* =========================================
   MOBILE NAVBAR — FINAL
========================================= */

@media (max-width: 768px) {

    /* Navbar */
    .navbar {
        width: 94%;
        height: 72px;
        position: relative;
    }


    /* Logo */
    .logo {
        flex: 1;
        min-width: 0;
    }

    .logo a {
        display: block;

        font-size: 1.45rem;
        font-weight: 800;

        white-space: nowrap;

        line-height: 1;
        color: var(--primary);

        letter-spacing: -0.5px;
    }


    /* Hamburger */
    .menu-toggle {
        display: flex;

        width: 44px;
        height: 44px;

        align-items: center;
        justify-content: center;

        flex-direction: column;

        margin-left: 12px;

        cursor: pointer;

        border-radius: 10px;

        transition: .3s;
    }


    .menu-toggle:hover {
        background: #f1f6ff;
    }


    .menu-toggle span {
        display: block;

        width: 27px;
        height: 3px;

        margin: 3px 0;

        background: #111;

        border-radius: 20px;

        transition: .3s;
    }


    /* Hamburger animation */
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }


    /* Mobile Navigation */
    .nav-links {
        position: absolute;

        top: 72px;
        left: 0;
        right: 0;

        display: flex;

        flex-direction: column;

        gap: 0;

        background: #ffffff;

        padding: 10px 0;

        border-radius: 0 0 18px 18px;

        box-shadow: 0 15px 35px rgba(0,0,0,.10);

        opacity: 0;
        visibility: hidden;

        transform: translateY(-10px);

        transition:
            opacity .3s ease,
            transform .3s ease,
            visibility .3s ease;

        z-index: 9998;
    }


    /* Open menu */
    .nav-links.active {
        opacity: 1;

        visibility: visible;

        transform: translateY(0);
    }


    /* Menu items */
    .nav-links li {
        width: 100%;
    }


    .nav-links a {
        display: block;

        width: 100%;

        padding: 15px 22px;

        color: #222;

        font-size: 1rem;

        font-weight: 600;

        border-bottom: 1px solid #f0f0f0;
    }


    .nav-links li:last-child a {
        border-bottom: none;
    }


    .nav-links a:hover {
        color: var(--primary);

        background: #f5f9ff;
    }


    /* Remove desktop underline on mobile */
    .nav-links a::after {
        display: none;
    }

}
.usd-price {
    margin-top: -12px;
    margin-bottom: 18px;
    color: #635BFF;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.pricing-card .price {
    margin-bottom: 16px;
}

@media (max-width: 600px) {
    .usd-price {
        font-size: 15px;
    }
}

