/* ===========================
        Global
=========================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{

    scroll-behavior:smooth;

}

body{

    font-family:'Poppins',sans-serif;
    background:#0F172A;
    color:#F8FAFC;
    padding-top:90px;

}

body::before{

    content:"";

    position:fixed;

    width:450px;

    height:450px;

    background:#2563EB;

    filter:blur(180px);

    opacity:.15;

    top:-120px;

    left:-120px;

    z-index:-1;

}

body::after{

    content:"";

    position:fixed;

    width:350px;

    height:350px;

    background:#3B82F6;

    filter:blur(180px);

    opacity:.12;

    bottom:-100px;

    right:-100px;

    z-index:-1;

}

/* ===========================
        Navbar
=========================== */

.navbar{

    width:90%;
    max-width:1400px;

    margin:auto;

    padding:16px 0;

    display:flex;

    justify-content:space-between;

    align-items:center;

}

/* Logo */

.logo{

    display:flex;

    align-items:center;

    gap:12px;

    text-decoration:none;

}

.logo-icon{

    width:48px;

    height:48px;

    border-radius:14px;

    background:linear-gradient(135deg,#2563EB,#3B82F6);

    display:flex;

    justify-content:center;

    align-items:center;

    color:white;

    font-size:22px;

}

.logo h2{

    color:#fff;

    font-size:30px;

    font-weight:700;

}

.logo span{

    color:#3B82F6;

}

/* Navigation */

.nav-links{

    display:flex;

    align-items:center;

    gap:35px;

    list-style:none;

}

.nav-links a{

    text-decoration:none;

    color:#F8FAFC;

    font-size:16px;

    font-weight:500;

    transition:.3s;

}

.nav-links a:hover{

    color:#3B82F6;

}

/* Button */

.nav-btn{

    display:flex;

    align-items:center;

    gap:10px;

    text-decoration:none;

    background:#2563EB;

    color:white;

    padding:14px 24px;

    border-radius:12px;

    font-weight:600;

    transition:.3s;

}

.nav-btn:hover{

    background:#1D4ED8;

    transform:translateY(-2px);

}

/* Hamburger */

.menu-toggle{

    display:none;

    color:white;

    font-size:28px;

    cursor:pointer;

}

header{
    position:fixed;

    top:0;

    left:0;

    width:100%;

    z-index:1000;

    transition:transform .35s ease;
    background: rgba(15,23,42,.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,.06);
}

header.hide{

    transform:translateY(-100%);

}


/* ===========================
         Footer
=========================== */

.footer{

    background:#0B1120;

    border-top:1px solid rgba(255,255,255,.08);

    padding:70px 0 25px;

    margin-top:80px;

}

.container{
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-top{

    display:flex;

    justify-content:space-between;

    gap:70px;

    flex-wrap:wrap;

}

.footer-logo{

    max-width:320px;

}

.footer-logo p{

    margin-top:20px;

    color:#94A3B8;

    line-height:1.8;

}

.footer-links{

    flex:1;

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:40px;

}

.footer-column h4{

    color:#fff;

    margin-bottom:20px;

    font-size:18px;

}

.footer-column a{

    display:block;

    color:#94A3B8;

    text-decoration:none;

    margin-bottom:14px;

    transition:.3s;

}

.footer-column a:hover{

    color:#60A5FA;

    transform:translateX(6px);

}

.footer-column i{

    width:20px;

}

.footer-bottom{

    margin-top:50px;

    padding-top:25px;

    border-top:1px solid rgba(255,255,255,.08);

    display:flex;

    justify-content:space-between;

    align-items:center;

    flex-wrap:wrap;

    gap:20px;

}

.footer-bottom p{

    color:#94A3B8;

}

.footer-bottom-links{

    display:flex;

    gap:25px;

}

.footer-bottom-links a{

    text-decoration:none;

    color:#94A3B8;

    transition:.3s;

}

.footer-bottom-links a:hover{

    color:#60A5FA;

}
/* Responsive */

@media(max-width:992px){

.footer-container{
    grid-template-columns:1fr 1fr;
}

}

@media(max-width:600px){

.footer{
    padding:60px 25px 20px;
}

.footer-container{
    grid-template-columns:1fr;
    gap:40px;
}

.footer-about p{
    max-width:100%;
}

.footer-links h3{
    margin-bottom:15px;
}

}


.footer-logo span{
    color:#3b82f6;
}





/* ===========================
      Tools Dropdown
=========================== */

.tools-dropdown{

    position:relative;

}

.tools-btn{

    background:none;

    border:none;

    color:#F8FAFC;

    font-size:16px;

    font-weight:500;

    font-family:'Poppins',sans-serif;

    display:flex;

    align-items:center;

    gap:8px;

    cursor:pointer;

    transition:.3s;

}

.tools-btn:hover{

    color:#3B82F6;

}

.tools-btn i{

    font-size:12px;

    transition:.3s;

}

.tools-dropdown.active .tools-btn i{

    transform:rotate(180deg);

}

.tools-menu{

    position:absolute;

    top:60px;

    left:0;

    width:320px;

    background:#182338;

    border:1px solid rgba(59,130,246,.15);

    border-radius:18px;

    padding:10px;

    opacity:0;

    visibility:hidden;

    transform:translateY(15px);

    transition:.3s;

    box-shadow:0 20px 50px rgba(0,0,0,.35);

    z-index:999;
}

.tools-dropdown.active .tools-menu{

    opacity:1;

    visibility:visible;

    transform:translateY(0);

}

.tools-menu a{

    display:flex;

    align-items:center;

    gap:15px;

    text-decoration:none;

    color:#fff;

    padding:14px;

    border-radius:12px;

    transition:.3s;

}

.tools-menu a:hover{

    background:#111C33;

}

.tools-menu i{

    width:45px;

    height:45px;

    border-radius:12px;

    background:#2563EB;

    display:flex;

    justify-content:center;

    align-items:center;

    color:#fff;

}

.tools-menu strong{

    display:block;

    font-size:16px;

}

.tools-menu span{

    font-size:13px;

    color:#94A3B8;

}


/* =====================================
        Responsive Navbar
===================================== */

.overlay{

    position: fixed;

    inset: 0;

    background: rgba(0,0,0,.55);

    opacity: 0;

    visibility: hidden;

    transition: .35s;

    z-index: 998;

}

.overlay.active{

    opacity: 1;

    visibility: visible;

}

.mobile-menu{

    position: fixed;

    top: 0;

    right: -100%;

    width: 320px;

    max-width: 90%;

    height: 100vh;

    background: #111827;

    padding: 100px 25px 30px;

    display: flex;

    flex-direction: column;

    gap: 18px;

    transition: .35s ease;

    z-index: 999;

    overflow-y: auto;

    border-left: 1px solid rgba(255,255,255,.08);

}

.mobile-menu.active{

    right: 0;

}

.mobile-menu a{

    color:#F8FAFC;

    text-decoration:none;

    font-size:17px;

    padding:12px 0;

    border-bottom:1px solid rgba(255,255,255,.06);

}

.mobile-btn{

    margin-top:20px;

    background:#2563EB;

    border-radius:12px;

    text-align:center;

    padding:15px !important;

    border:none !important;

}

.mobile-tools-btn{

    width:100%;

    background:none;

    border:none;

    color:#fff;

    font-size:17px;

    display:flex;

    justify-content:space-between;

    align-items:center;

    cursor:pointer;

    padding:12px 0;

    font-family:'Poppins',sans-serif;

}

.mobile-tools-menu{

    display:none;

    padding-left:15px;

}

.mobile-tools.active .mobile-tools-menu{

    display:flex;

    flex-direction:column;

}

.mobile-tools-menu a{

    font-size:15px;

    color:#CBD5E1;

}

@media (max-width:991px){

    .nav-links{

        display:none;

    }

    .nav-btn{

        display:none;

    }

    .menu-toggle{

        display:block;

        cursor:pointer;

        z-index:1001;

    }

}

@media (min-width:992px){

    .mobile-menu,

    .overlay{

        display:none;

    }

}




/* =====================================
        Footer Responsive
===================================== */

@media (max-width:992px){

    .footer-top{

        flex-direction:column;

        gap:50px;

    }

    .footer-logo{

        max-width:100%;

    }

    .footer-links{

        grid-template-columns:repeat(2,1fr);

        gap:35px;

    }

}

@media (max-width:768px){

    .footer{

        padding:50px 0 20px;

    }

    .footer-links{

        grid-template-columns:1fr;

        gap:30px;

    }

    .footer-column h4{

        font-size:18px;

    }

    .footer-column a{

        font-size:15px;

    }

    .footer-bottom{

        flex-direction:column;

        text-align:center;

    }

    .footer-bottom-links{

        justify-content:center;

        flex-wrap:wrap;

        gap:15px;

    }

}


/* ==========================
   URL Encoder & Decoder
========================== */

.tool-section{
    padding:70px 0 80px;
}

.tool-header{
    text-align:center;
    max-width:750px;
    margin:auto;
    margin-bottom:50px;
}

.tool-header h1{
    font-size:42px;
    color:var(--white);
    margin-bottom:15px;
}

.tool-header p{
    color:var(--text-light);
    line-height:1.8;
}

/* Card */

.tool-card{

    max-width:900px;
    margin:auto;

    background:var(--card-bg);

    border:1px solid rgba(255,255,255,.08);

    border-radius:20px;

    padding:35px;

    box-shadow:0 15px 40px rgba(0,0,0,.25);

}

/* Input */

.input-group{
    margin-bottom:25px;
}

.input-group label{

    display:block;

    color:var(--white);

    font-weight:600;

    margin-bottom:12px;

}

.input-group textarea{

    width:100%;

    min-height:180px;

    resize:vertical;

    padding:18px;

    border-radius:12px;

    border:1px solid rgba(255,255,255,.08);

    background:#0b1220;

    color:#fff;

    font-size:15px;

    outline:none;

    transition:.3s;

}

.input-group textarea:focus{

    border-color:var(--primary-color);

    box-shadow:0 0 0 3px rgba(99,102,241,.15);

}

/* Buttons */

.button-group{

    display:flex;

    justify-content:center;

    flex-wrap:wrap;

    gap:15px;

    margin-bottom:30px;

}

.button-group button{

    border:none;

    cursor:pointer;

    padding:14px 28px;

    border-radius:10px;

    font-size:15px;

    font-weight:600;

    transition:.3s;

}

.primary-btn{

    background:var(--primary-color);

    color:#fff;

}

.primary-btn:hover{

    transform:translateY(-2px);

}

.secondary-btn{

    background:#1f2937;

    color:#fff;

}

.secondary-btn:hover{

    background:#374151;

}

.danger-btn{

    background:#ef4444;

    color:#fff;

}

.danger-btn:hover{

    background:#dc2626;

}

/* Bottom */

.bottom-actions{

    display:flex;

    justify-content:space-between;

    align-items:center;

    flex-wrap:wrap;

    gap:20px;

    margin-top:25px;

}

.bottom-actions button{

    background:transparent;

    border:1px solid rgba(255,255,255,.1);

    color:#fff;

    padding:12px 22px;

    border-radius:10px;

    cursor:pointer;

    transition:.3s;

}

.bottom-actions button:hover{

    background:var(--primary-color);

}

.char-count{

    color:var(--text-light);

    font-size:14px;

}

/* Responsive */

@media(max-width:768px){

.tool-header h1{

    font-size:32px;

}

.tool-card{

    padding:25px;

}

.button-group{

    flex-direction:column;

}

.button-group button{

    width:100%;

}

.bottom-actions{

    flex-direction:column;

    align-items:stretch;

}

.bottom-actions button{

    width:100%;

}

}

/*=====================================
Features
=====================================*/

.features{

    padding:40px 0;

}

.features h2{

    text-align:center;

    color:var(--white);

    margin-bottom:50px;

}

.feature-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));

    gap:25px;

}

.feature-card{

    background:var(--card-bg);

    border:1px solid rgba(255,255,255,.08);

    border-radius:18px;

    padding:35px;

    transition:.35s;

}

.feature-card:hover{

    transform:translateY(-8px);

    border-color:var(--primary-color);

}

.feature-card i{

    font-size:32px;

    color:var(--primary-color);

    margin-bottom:20px;

}

.feature-card h3{

    color:#fff;

    margin-bottom:12px;

}

.feature-card p{

    color:var(--text-light);

    line-height:1.8;

}


/*=====================================
Content
=====================================*/

.content-section{

    padding:40px 0;

}

.content-section .container{

    max-width:900px;

}

.content-section h2{

    color:#fff;

    margin-bottom:25px;

}

.content-section p{

    color:var(--text-light);

    line-height:2;

    margin-bottom:20px;

}

.content-section ol{

    padding-left:22px;

}

.content-section li{

    color:var(--text-light);

    margin-bottom:15px;

    line-height:1.8;

}


.example-box{

    background:var(--card-bg);

    border-radius:18px;

    border:1px solid rgba(255,255,255,.08);

    padding:30px;

}

.example-box h3{

    color:#fff;

    margin:25px 0 12px;

}

.example-box h3:first-child{

    margin-top:0;

}

.example-box code{

    display:block;

    padding:18px;

    background:#0B1220;

    color:#60A5FA;

    border-radius:12px;

    word-break:break-all;

    line-height:1.8;

}

/*=====================================
FAQ
=====================================*/

.faq{

    padding:80px 0;

}

.faq h2{

    text-align:center;

    margin-bottom:50px;

    color:#fff;

}

.faq-item{

    background:var(--card-bg);

    border-radius:16px;

    padding:25px;

    margin-bottom:20px;

    border:1px solid rgba(255,255,255,.08);

}

.faq-item h3{

    color:#fff;

    margin-bottom:15px;

}

.faq-item p{

    color:var(--text-light);

    line-height:1.8;

}

/*=====================================
Related Tools
=====================================*/

.related-tools{

    padding:80px 0 100px;

}

.related-tools h2{

    text-align:center;

    color:#fff;

    margin-bottom:40px;

}

.related-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));

    gap:20px;

}

.related-grid a{

    text-decoration:none;

    color:#fff;

    background:var(--card-bg);

    padding:25px;

    border-radius:16px;

    border:1px solid rgba(255,255,255,.08);

    transition:.35s;

    text-align:center;

    font-weight:600;

}

.related-grid a:hover{

    background:var(--primary-color);

    transform:translateY(-5px);

}


@media(max-width:768px){

.tool-header h1{

    font-size:34px;

}

.tool-header p{

    font-size:16px;

}

.features,
.content-section,
.faq,
.related-tools{

    padding:60px 0;

}

}