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

/* BASE STYLES */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #0e0e0e;
    color: #eaeaea;
    line-height: 1.6;
    padding-bottom: 50px;
}

a {
    color: #00ffd5;
    text-decoration: none;
}

a:hover {
    color: #0ff;
}

/* CONTAINER */
.container {
    width: 100%;
    max-width: 1100px;
    padding: 20px;
    margin: auto;
}

/* BUTTON */
.btn {
    display: inline-block;
    background: linear-gradient(135deg, #00ffd5, #00a8ff);
    color: #0e0e0e;
    padding: 12px 20px;
    border-radius: 8px;
    margin: 5px;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 255, 200, 0.7);

}

.btn:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, #00a8ff, #00ffd5);
    box-shadow: 0 0 10px rgba(0, 255, 200, 0.4);
}

.btn.small {
    padding: 8px 14px;
    font-size: 0.9rem;
}

/*Mobile size Optimized buttons */
@media (max-width: 768px) {
    .btn {
        padding: 8px 12px;
        font-size: 0.85rem;
        margin: 2px;
    }

    .btn.small {
        padding: 6px 8px;
        font-size: 0.75rem;
    }

    .search-bar {
        padding: 10px;
        font-size: 0.9rem;
    }

    .tool-card h3 {
        font-size: 1rem;
    }

    .tool-card p {
        font-size: 0.85rem;
    }
}


/* SEARCH BOX */
.search-bar {
    width: 90%;
    max-width: 500px;
    padding: 14px;
    border-radius: 10px;
    font-size: 1rem;
    border: none;
    margin: 20px auto;
    display: block;
    background: #1c1c1c;
    color: #fff;
    box-shadow: 0 0 8px rgba(0, 255, 200, 0.2);
}

/* TOOL GRID */
.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

/* TOOL CARD */
.tool-card {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 0 15px rgba(0, 255, 200, 0.08);
    transition: 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.tool-card:hover {
    box-shadow: 0 0 25px rgba(0, 255, 200, 0.2);
    transform: translateY(-3px);
}

.tool-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.tool-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.tool-card p {
    font-size: 0.95rem;
    color: #aaa;
    margin-bottom: 15px;
}

.tool-actions {
    margin-top: auto;
}

/* FOOTER */
footer {
    background: #111;
    color: #777;
    padding: 30px 20px;
    text-align: center;
    font-size: 0.9rem;
    margin-top: 50px;
    border-top: 1px solid #222;
}

footer a {
    color: #00ffd5;
}

footer a:hover {
    text-decoration: underline;
}

/* PAGINATION */
.pagination {
    text-align: center;
    margin-top: 30px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .tool-grid {
        grid-template-columns: 1fr;
    }
}


.main-header {
    background: #0d0d0d;
    padding: 15px 0;
    border-bottom: 1px solid #222;
}



.logo {
    display: flex;
    align-items: center;
    color: #00ffd5;
    font-weight: bold;
    font-size: 1.2rem;
    text-decoration: none;
}

.logo img {
    margin-right: 10px;
}

.header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-menu a {
    margin-left: 20px;
    color: #ccc;
    font-weight: bolder;
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-menu a:hover {
    color: #00ffd5;
}

/* Mobile styles */
@media (max-width: 768px) {
    .header-flex {
        flex-direction: column;
        align-items: center; /* center logo and nav */
    }

    .nav-menu {
        margin-top: 10px;
        font-weight: bold;
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }

    .nav-menu a {
        margin-left: 0; /* remove left margin for mobile */
    }
}

/* Add this to your CSS file */
.breadcrumb a {
    color: #00ffd5;
    text-decoration: none;
}
.breadcrumb a:hover {
    text-decoration: underline;
}


/**Footer**/

.site-footer {
    background: #0d0d0d;
    padding: 60px 20px 30px;
    color: #ccc;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 50px;
    padding: 10px;
}

.footer-column h4 {
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: #00ffd5;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
}

.footer-column ul li a:hover {
    text-decoration: underline;
}

.footer-logo img {
    width: 110px;
    vertical-align: middle;
}

.portal-name {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 800;
    margin: 15px 0 10px;
}

.about-text {
    color: #aaa;
    line-height: 1.6;
    font-weight: 500;
    margin-bottom: 20px;
}

.footer-social a {
    color: white;
    font-size: 1.4rem;
    margin-right: 15px;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    color: #00ffd5;
}

.glow-btn {
    display: inline-block;
    margin-top: 12px;
    background: linear-gradient(90deg, #00ffd5, #00d4ff);
    color: #000;
    font-weight: bold;
    padding: 12px 22px;
    border-radius: 10px;
    box-shadow: 0 0 12px #00ffd5;
    transition: 0.3s ease;
    text-decoration: none;
    font-size: 1rem;
}

.glow-btn:hover {
    box-shadow: 0 0 20px #00ffd5, 0 0 40px #00d4ff;
    transform: translateY(-2px);
}

.newsletter-desc {
    color: #aaa;
    line-height: 1.6;
    font-weight: 500;
}

.footer-credit {
    text-align: center;
    font-size: 0.95rem;
    color: #888;
    margin-top: 30px;
    font-weight: 500;
}

.footer-credit span {
    color: #a884fc;
    font-weight: 600;
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-column {
        margin-bottom: 30px;
    }

    .footer-social {
        justify-content: center;
    }
}


/**POPUP***/
/* DARK THEME OVERLAY */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* POPUP BOX */
.popup-content {
    background: #111;
    color: #fff;
    border-radius: 16px;
    padding: 30px;
    max-width: 800px;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    box-shadow: 0 0 20px #00ffd5;
    position: relative;
}

/* FORM AREA */
.popup-form {
    flex: 1 1 400px;
    padding-right: 20px;
}

.popup-form h2 {
    font-size: 1.6rem;
    margin-bottom: 10px;
    color: #fff;
}

.popup-form p {
    font-size: 1rem;
    color: #ccc;
    margin-bottom: 20px;
}

.popup-form label {
    font-weight: 600;
    display: block;
    margin-bottom: 6px;
    color: #00ffd5;
}

.popup-form input[type="text"],
.popup-form input[type="email"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    background: #0d0d0d;
    color: #00ffd5;
    border: 1px solid #00ffd5;
    border-radius: 8px;
    outline: none;
    font-size: 1rem;
    box-shadow: 0 0 10px #00ffd5;
    transition: 0.3s;
}

.popup-form input[type="text"]:focus,
.popup-form input[type="email"]:focus {
    box-shadow: 0 0 20px #00ffd5, 0 0 30px #00d4ff;
}

/* SUBMIT BUTTON */
.popup-form input[type="submit"] {
    background: linear-gradient(90deg, #00ffd5, #00d4ff);
    color: #000;
    font-weight: 800;
    border: none;
    padding: 20px 35px;
    border-radius: 10px;
    box-shadow: 0 0 10px #00ffd5;
    cursor: pointer;
    transition: 0.3s ease;
}

.popup-form input[type="submit"]:hover {
    box-shadow: 0 0 20px #00ffd5, 0 0 40px #00d4ff;
    transform: translateY(-2px);
}

/* ILLUSTRATION */
.popup-image {
    flex: 1 1 300px;
    text-align: center;
}
.popup-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

/* CLOSE BUTTON */
.popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: transparent;
    color: #00ffd5;
    font-size: 1.5rem;
    border: none;
    cursor: pointer;
}

/* MOBILE STYLES */
@media (max-width: 768px) {
    .popup-content {
        flex-direction: column;
    }

    .popup-form {
        padding-right: 0;
    }

    .popup-image {
        display: none;
    }
}
