/* GLOBAL */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f5f7fb;
    color: #111;
}

/* NAVBAR */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #0f172a;
    padding: 10px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    color: #facc15;
    font-size: 20px;
    font-weight: bold;
}

/* HAMBURGER MENU */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 20px;
    cursor: pointer;
}

.menu-toggle .bar {
    height: 3px;
    width: 100%;
    background-color: white;
    border-radius: 3px;
    transition: all 0.3s;
}

.menu-toggle.open .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.open .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open .bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* MENU */
nav ul.nav-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

nav ul.nav-list li {
    position: relative;
}

nav ul.nav-list li a {
    color: white;
    padding: 10px 12px;
    text-decoration: none;
    display: block;
    font-size: 14px;
}

nav ul.nav-list li a:hover {
    color: #facc15;
}

/* DROPDOWN */
.dropdown-menu {
    display: none;
    position: absolute;
    background: #1e293b;
    top: 40px;
    min-width: 140px;
    border-radius: 8px;
    z-index: 100;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

/* HERO */
.hero-box {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: white;
    text-align: center;
    margin: 20px;
    padding: 60px 20px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.hero-content h1 {
    font-size: 28px;
    margin-bottom: 15px;
    color: #facc15;
}

.hero-content p {
    font-size: 16px;
    max-width: 600px;
    margin: auto;
    line-height: 1.6;
    color: #e5e7eb;
}

/* SERVICES & TOOLS */
.services,
.tools {
    padding: 30px 15px;
}

.services h2,
.tools h2 {
    margin-bottom: 20px;
    font-size: 22px;
    border-left: 4px solid orange;
    padding-left: 10px;
}

.service-container,
.tool-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.service-card,
.tool-card {
    background: white;
    padding: 20px;
    text-align: center;
    border-radius: 15px;
    border: 2px solid #e0e0e0;
    transition: 0.3s;
}

.service-card:hover,
.tool-card:hover {
    transform: translateY(-5px);
    border-color: #22c55e;
    background: #fff7ed;
}

.service-card img,
.tool-card img {
    width: 50px;
    height: 50px;
    margin-bottom: 8px;
}

.service-card h3,
.tool-card h3 {
    font-size: 14px;
}

.tag {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 2px 6px;
    font-size: 10px;
    border-radius: 8px;
    color: white;
}

.tag.new {
    background: #22c55e;
}

.tag.hot {
    background: #ef4444;
}

.tool-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* MEDIA QUERIES */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 24px;
    }

    .hero-content p {
        font-size: 15px;
    }

    .service-card img,
    .tool-card img {
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
        padding: 0px 0px 0px 90px;
    }

    nav ul.nav-list {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #0f172a;
        position: absolute;
        top: 60px;
        left: 0;
        padding: 0;
        transition: max-height 0.3s ease-in-out;
        overflow: hidden;
    }

    nav ul.nav-list.active {
        display: flex;
    }

    nav ul.nav-list li {
        text-align: center;
        margin: 10px 0;
    }

    nav ul.nav-list li a {
        padding: 10px;
        font-size: 16px;
    }

    .hero-box {
        padding: 50px 15px;
    }

    .service-card,
    .tool-card {
        padding: 15px;
    }

    .service-container,
    .tool-container {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 20px;
    }

    .hero-content p {
        font-size: 14px;
    }

    nav ul.nav-list li a {
        font-size: 12px;
        padding: 6px 8px;
    }

    /* 3 cards per row on phone */
    .service-container,
    .tool-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .service-card,
    .tool-card {
        padding: 10px;
    }
}
