:root{

    --primary:#2563EB;
    --secondary:#3B82F6;

    --bg:#08111F;
    --card:#111C33;
    --input:#0B1629;

    --text:#F8FAFC;
    --text-light:#94A3B8;

    --border:rgba(255,255,255,.08);

}

/* ===========================
        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;

    }

}



/* ===========================
   Base64 Tool
=========================== */

.base64-tool{
    padding:120px 0 80px;
}

.base64-tool .container{
    max-width:900px;
    margin:auto;
    padding:0 20px;
}

/* Heading */

.tool-heading{
    text-align:center;
    margin-bottom:40px;
}

.tool-heading h1{
    font-size:2.5rem;
    font-weight:700;
    margin-bottom:15px;
}

.tool-heading p{
    max-width:700px;
    margin:auto;
    line-height:1.8;
    color:var(--text-light);
}

/* Card */

.tool-card{

    background:rgba(17,28,51,.85);

    border:1px solid rgba(255,255,255,.08);

    border-radius:28px;

    padding:40px;

    backdrop-filter:blur(20px);

    box-shadow:

    0 25px 60px rgba(0,0,0,.45);

}


/* ===========================
   Input & Output Section
=========================== */

.input-section,
.output-section{
    margin-bottom:35px;
        margin-top:35px;
}

.section-title{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:10px;
}

.section-title h2{
    font-size:1.1rem;
    font-weight:600;
}

.section-title span{
    font-size:.9rem;
    color:var(--text-light);
}




textarea{
    width:100%;
    min-height:260px;
    resize:vertical;
    padding:18px;
    border-radius:12px;
    border:1px solid var(--border-color);
    background:var(--input-bg);
    color:var(--text-color);
    font-size:16px;
    line-height:1.6;
    outline:none;
    transition:.3s;
}

textarea::placeholder{
    color:#8a8a8a;
}

textarea:focus{
    border-color:var(--primary-color);
    box-shadow:0 0 0 4px rgba(99,102,241,.15);
}

/* ===========================
   Buttons
=========================== */

.button-group{
    display:flex;
    gap:15px;
    margin:30px 0;
    flex-wrap:wrap;
    margin-bottom:30px;
}

.button-group button{
    flex:1;
    min-width:140px;
    height:50px;
    border:none;
    border-radius:12px;
    cursor:pointer;
    font-size:16px;
    font-weight:600;
    transition:.3s;
}

#encodeBtn{
    background:#4f46e5;
    color:#fff;
}

#decodeBtn{
    background:#0891b2;
    color:#fff;
}

#copyBtn{
    background:#16a34a;
    color:#fff;
}

#clearBtn{
    background:#dc2626;
    color:#fff;
}

.button-group button:hover{
    transform:translateY(-3px);
    opacity:.9;
}


.tool-heading h1{

    font-size:58px;

    font-weight:800;

    line-height:1.1;

    background:linear-gradient(90deg,#fff,#60A5FA);

    -webkit-background-clip:text;

    -webkit-text-fill-color:transparent;

}

.tool-heading p{

    font-size:18px;

    color:#CBD5E1;

    margin-top:20px;

}


textarea{

    background:#08111F;

    border:1px solid rgba(255,255,255,.08);

    border-radius:18px;

    padding:22px;

    font-size:17px;

    color:#fff;

}

textarea:focus{

    border-color:#3B82F6;

    box-shadow:0 0 25px rgba(59,130,246,.25);

}


/* ===========================
   Content Section
=========================== */

.content-section{
    max-width:900px;
    margin:70px auto;
    padding:40px;
    background:#111C33;
    border:1px solid rgba(255,255,255,.08);
    border-radius:20px;
}

.content-section h2{
    font-size:32px;
    margin-bottom:20px;
    color:#fff;
}

.content-section h3{
    font-size:22px;
    margin:25px 0 15px;
    color:#fff;
}

.content-section p{
    color:#CBD5E1;
    line-height:1.9;
    margin-bottom:18px;
}

.content-section ul,
.content-section ol{
    margin-left:20px;
    color:#CBD5E1;
    line-height:2;
}

.content-section li{
    margin-bottom:10px;
}


.uses-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
    gap:20px;
    margin-top:30px;
}

.uses-grid div{
    background:#0B1629;
    border:1px solid rgba(255,255,255,.08);
    border-radius:16px;
    padding:25px;
    transition:.3s;
}

.uses-grid div:hover{
    transform:translateY(-8px);
    border-color:#2563EB;
}

.uses-grid h3{
    margin-bottom:12px;
    font-size:20px;
}


/* ===========================
   FAQ
=========================== */

.faq-section{
    padding:80px 0;
}

.section-heading{
    text-align:center;
    margin-bottom:40px;
}

.section-heading h2{
    font-size:40px;
    margin-bottom:10px;
}

.section-heading p{
    color:#94A3B8;
}

.faq-container{
    max-width:900px;
    margin:auto;
}

.faq-item{
    background:#111C33;
    border:1px solid rgba(255,255,255,.08);
    border-radius:16px;
    margin-bottom:18px;
    overflow:hidden;
    transition:.3s;
}

.faq-item:hover{
    border-color:#2563EB;
}

.faq-question{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:22px;
    cursor:pointer;
}

.faq-question h3{
    font-size:18px;
}

.faq-question i{
    transition:.3s;
}

.faq-answer{
    max-height:0;
    overflow:hidden;
    transition:.35s ease;
}

.faq-answer p{
    padding:0 22px 22px;
    color:#CBD5E1;
    line-height:1.8;
}

.faq-item.active .faq-answer{
    max-height:200px;
}

.faq-item.active .faq-question i{
    transform:rotate(45deg);
}


/* ===========================
   Related Tools
=========================== */

.related-tools{

    padding:90px 0;

}

.related-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));

    gap:25px;

    margin-top:50px;

}

.related-card{

    background:#111C33;

    border:1px solid rgba(255,255,255,.08);

    border-radius:20px;

    padding:30px;

    text-decoration:none;

    transition:.35s;

}

.related-card:hover{

    transform:translateY(-10px);

    border-color:#2563EB;

    box-shadow:0 20px 50px rgba(37,99,235,.18);

}

.related-card i{

    width:65px;

    height:65px;

    border-radius:18px;

    display:flex;

    justify-content:center;

    align-items:center;

    background:linear-gradient(135deg,#2563EB,#7C3AED);

    color:#fff;

    font-size:28px;

    margin-bottom:20px;

}

.related-card h3{

    color:#fff;

    margin-bottom:12px;

    font-size:22px;

}

.related-card p{

    color:#94A3B8;

    line-height:1.8;

}