﻿/* === RESET & VARIABLES === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #4361ee;
    --primary-light: #6c86f0;
    --secondary: #3a0ca3;
    --accent: #4cc9f0;
    --dark: #1e293b;
    --gray-dark: #334155;
    --gray-light: #e2e8f0;
    --light-bg: #f8fafc;
    --white: #ffffff;
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 15px 30px rgba(67, 97, 238, 0.12);
    --radius-card: 20px;
    --radius-btn: 40px;
    --transition: all 0.25s ease;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    background-color: var(--light-bg);
    color: var(--dark);
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* === HEADER – modern glassmorphism touch === */
header {
    background: linear-gradient(115deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

    .logo i {
        font-size: 2.2rem;
        filter: drop-shadow(0 2px 5px rgba(0,0,0,0.2));
    }

    .logo span {
        background: linear-gradient(to right, #fff, #f0e9ff);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

.mobile-menu-btn {
    display: none;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    font-size: 1.8rem;
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    align-items: center;
    justify-content: center;
}

    .mobile-menu-btn:hover {
        background: rgba(255,255,255,0.35);
        transform: scale(1.02);
    }

nav ul {
    display: flex;
    gap: 32px;
    list-style: none;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
    opacity: 0.9;
}

    nav a.active, nav a:hover {
        opacity: 1;
        border-bottom-color: white;
    }

/* === MAIN CONTENT === */
main {
    flex: 1;
    padding: 48px 0 60px;
}

/* page header */
.page-header {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 48px;
}

    .page-header h1 {
        font-size: clamp(2rem, 5vw, 3.2rem);
        font-weight: 800;
        background: linear-gradient(145deg, var(--secondary), var(--primary));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        margin-bottom: 16px;
        line-height: 1.2;
    }

    .page-header p {
        font-size: 1.2rem;
        color: var(--gray-dark);
        background: rgba(255,255,255,0.7);
        backdrop-filter: blur(4px);
        padding: 16px 28px;
        border-radius: 60px;
        box-shadow: var(--shadow-sm);
        display: inline-block;
        margin: 0 auto;
        border: 1px solid rgba(255,255,255,0.6);
    }

.section-title {
    font-size: 1.9rem;
    font-weight: 700;
    margin: 48px 0 28px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--dark);
    border-left: 8px solid var(--accent);
    padding-left: 20px;
}

    .section-title i {
        color: var(--primary);
        font-size: 2rem;
    }

/* TOOLS GRID — fully responsive */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
}

.tool-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: var(--transition);
}

    .tool-card-link:hover {
        transform: translateY(-6px);
    }

.tool-card {
    background: var(--white);
    padding: 28px 18px 24px;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.02);
    height: 100%;
    display: flex;
    flex-direction: column;
}

    .tool-card:hover {
        box-shadow: var(--shadow-hover);
        border-color: var(--primary-light);
    }

.tool-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(145deg, var(--primary), var(--accent));
    border-radius: 30% 70% 70% 30% / 30% 40% 60% 70%; /* organic blob shape */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    color: white;
    font-size: 2.2rem;
    box-shadow: 0 15px 20px -10px var(--primary);
    transition: 0.2s;
}

.tool-card:hover .tool-icon {
    border-radius: 40% 60% 30% 70% / 50% 40% 60% 50%;
}

.tool-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--secondary);
}

.tool-card p {
    color: var(--gray-dark);
    margin-bottom: 20px;
    font-size: 0.95rem;
    flex: 1;
}

.tool-link {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: white;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: var(--radius-btn);
    display: inline-block;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.2);
    width: fit-content;
    margin: 0 auto;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.tool-card:hover .tool-link {
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    transform: scale(1.02);
    box-shadow: 0 8px 14px rgba(67, 97, 238, 0.35);
}

/* === FOOTER elegant === */
footer {
    background: var(--dark);
    color: #cbd5e1;
    padding: 40px 0 20px;
    margin-top: 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 32px;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(145deg, #b9c9ff, white);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-links {
    display: flex;
    gap: 36px;
}

    .footer-links a {
        color: #e2e8f0;
        text-decoration: none;
        font-weight: 500;
        transition: 0.2s;
        border-bottom: 1px dotted transparent;
    }

        .footer-links a:hover {
            color: white;
            border-bottom-color: var(--accent);
        }

.copyright {
    text-align: center;
    padding-top: 28px;
    border-top: 1px solid #334155;
    color: #94a3b8;
    font-size: 0.95rem;
}

/* === RESPONSIVE DESIGN — works on all devices === */
@media screen and (max-width: 1024px) {
    .tools-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 820px) {
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .page-header p {
        font-size: 1.1rem;
        padding: 14px 24px;
    }
}

@media screen and (max-width: 680px) {
    .mobile-menu-btn {
        display: flex;
    }

    nav {
        position: absolute;
        top: 82px;
        right: 24px;
        background: white;
        padding: 20px 28px;
        border-radius: 28px;
        box-shadow: 0 25px 40px -12px var(--secondary);
        display: none;
        border: 1px solid rgba(255,255,255,0.5);
        backdrop-filter: blur(8px);
        background: rgba(255, 255, 255, 0.95);
        min-width: 220px;
    }

        nav.show {
            display: block;
        }

        nav ul {
            flex-direction: column;
            gap: 20px;
        }

        nav a {
            color: var(--dark);
            font-weight: 600;
            border-bottom: 2px solid transparent;
            display: block;
        }

            nav a.active {
                border-bottom-color: var(--primary);
                color: var(--primary);
            }

    .section-title {
        font-size: 1.7rem;
    }
}

@media screen and (max-width: 540px) {
    .tools-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        gap: 28px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .page-header p {
        font-size: 1rem;
        padding: 12px 20px;
    }
}

/* tiny phones ( ≤360 ) */
@media screen and (max-width: 380px) {
    .logo span {
        font-size: 1.4rem;
    }

    .logo i {
        font-size: 1.8rem;
    }

    .tool-card {
        padding: 22px 12px;
    }
}

/* large desktop: 4 cards */
@media screen and (min-width: 1400px) {
    .container {
        max-width: 1500px;
    }

    .tools-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.amazon-ad {
    max-width: auto;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    margin: 20px auto;
    font-family: Arial, sans-serif;
    transition: 0.3s;
}

    .amazon-ad:hover {
        box-shadow: 0 6px 18px rgba(0,0,0,0.1);
    }

    .amazon-ad img {
        width: 100%;
    }

.amazon-content {
    padding: 12px;
}

    .amazon-content h3 {
        font-size: 15px;
        margin: 0 0 8px;
    }

.price {
    color: #B12704;
    font-weight: bold;
    margin-bottom: 10px;
}

.buy-btn {
    display: block;
    text-align: center;
    background: #ff9900;
    color: white;
    padding: 8px;
    border-radius: 5px;
    text-decoration: none;
}

    .buy-btn:hover {
        background: #e68900;
    }

.ad-label {
    position: absolute;
    background: #ff9900;
    color: #fff;
    font-size: 11px;
    padding: 3px 6px;
    margin: 6px;
    border-radius: 4px;
}