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

body {
    font-family: Arial, sans-serif;
    background: #f7f7f7;
    color: #222;
}

/* NAVBAR */
.navbar {
    display: flex;
    justify-content: space-between;
    padding: 20px 40px;
    background: white;
    border-bottom: 1px solid #eee;
}

.navbar a {
    margin-left: 20px;
    text-decoration: none;
    color: #333;
}

/* =========================
   HAMBURGER MENU
========================= */

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: black;
    border-radius: 2px;
}

/* MOBILE MENU */
@media (max-width: 600px) {

    .hamburger {
        display: flex;
    }

    .navbar {
        position: relative;
    }

    nav {
        display: none;
        flex-direction: column;
        width: 100%;
        background: white;
        padding-top: 15px;
    }

    nav.active {
        display: flex;
    }

    nav a {
        padding: 10px 0;
        border-top: 1px solid #eee;
        width: 100%;
    }
}/* =========================
   HAMBURGER MENU
========================= */

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: black;
    border-radius: 2px;
}

/* MOBILE MENU */
@media (max-width: 600px) {

    .hamburger {
        display: flex;
    }

    .navbar {
        position: relative;
    }

    nav {
        display: none;
        flex-direction: column;
        width: 100%;
        background: white;
        padding-top: 15px;
    }

    nav.active {
        display: flex;
    }

    nav a {
        padding: 10px 0;
        border-top: 1px solid #eee;
        width: 100%;
    }
}

/* HERO */
.hero {
    display: flex;
    justify-content: space-between;
    padding: 60px 40px;
    gap: 40px;
}

.hero-text {
    max-width: 500px;
}

.hero h1 {
    font-size: 40px;
    margin-bottom: 20px;
}

.hero p {
    margin-bottom: 20px;
}

.buttons button {
    padding: 10px 20px;
    margin-right: 10px;
    border: none;
    cursor: pointer;
}

.primary {
    background: black;
    color: white;
}

.secondary {
    background: #ddd;
}

.hero-box {
    background: white;
    padding: 20px;
    border-radius: 10px;
    width: 400px;
}

.hero-box textarea {
    width: 100%;
    height: 120px;
    margin-bottom: 10px;
}

/* FEATURES */
.features {
    display: flex;
    gap: 20px;
    padding: 40px;
}

.card {
    background: white;
    padding: 20px;
    flex: 1;
    border-radius: 10px;
}

/* PROBLEMS */
.problems {
    padding: 40px;
}

.problems ul {
    margin-top: 10px;
}

.problems li {
    margin-bottom: 10px;
}

/* TOOLS */
.tools {
    padding: 40px;
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.tool {
    background: white;
    padding: 20px;
    text-align: center;
    border-radius: 10px;
}

/* CHEATSHEET */
.cheatsheet {
    padding: 40px;
}

.cheat-grid {
    display: flex;
    gap: 20px;
}

.cheat-grid div {
    background: white;
    padding: 20px;
    flex: 1;
    border-radius: 10px;
}

/* FOOTER */
footer {
    text-align: center;
    padding: 20px;
    background: white;
    margin-top: 40px;
}

/* =========================
   TABLET (<= 900px)
========================= */
@media (max-width: 900px) {

    .hero {
        flex-direction: column;
        padding: 40px 20px;
    }

    .hero-box {
        width: 100%;
    }

    .features {
        flex-direction: column;
        padding: 20px;
    }

    .cheat-grid {
        flex-direction: column;
    }

    .tool-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* =========================
   MOBILE (<= 600px)
========================= */
@media (max-width: 600px) {

    .navbar {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }

    .navbar nav {
        margin-top: 10px;
    }

    .navbar a {
        margin-left: 0;
        margin-right: 15px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .buttons button {
        width: 100%;
        margin-bottom: 10px;
    }

    .tool-grid {
        grid-template-columns: 1fr;
    }

    .features {
        gap: 15px;
    }

    .card {
        padding: 15px;
    }

    .hero-box textarea {
        height: 100px;
    }
}