body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #111827;
    color: white;
}

header {
    background: #0f172a;
    padding: 20px;
}

nav a {
    color: white;
    text-decoration: none;
    margin-right: 20px;
}

    nav a:hover {
        color: #38bdf8;
    }

main {
    max-width: 1000px;
    margin: auto;
    padding: 50px;
}

.button {
    display: inline-block;
    margin-top: 20px;
    background: #0ea5e9;
    color: white;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
}

    .button:hover {
        background: #0284c7;
    }

footer {
    text-align: center;
    padding: 25px;
    background: #0f172a;
}

.hero {
    text-align: center;
    padding: 80px 20px;
}

    .hero h2 {
        font-size: 48px;
        color: #38bdf8;
    }

    .hero p {
        font-size: 20px;
        max-width: 700px;
        margin: auto;
    }

.features {
    display: flex;
    justify-content: center;
    gap: 25px;
    padding: 50px;
    flex-wrap: wrap;
}

.card {
    background: #1e293b;
    width: 280px;
    padding: 25px;
    border-radius: 12px;
    transition: .3s;
    text-align: center;
}

    .card:hover {
        transform: translateY(-8px);
        box-shadow: 0 0 20px #38bdf8;
    }

.devices {
    padding: 60px 20px;
    text-align: center;
}

    .devices h2 {
        font-size: 36px;
        margin-bottom: 40px;
        color: #38bdf8;
    }

.device-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
    gap: 20px;
    max-width: 1200px;
    margin: auto;
}

.device {
    background: #1e293b;
    padding: 20px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    transition: .3s;
}

    .device:hover {
        transform: translateY(-5px);
        box-shadow: 0 0 20px #38bdf8;
    }

.repair-form {
    max-width: 600px;
    margin: auto;
    padding: 30px;
}

    .repair-form input,
    .repair-form textarea {
        width: 100%;
        padding: 12px;
        margin: 10px 0;
    }

    .repair-form textarea {
        height: 150px;
    }

    .repair-form button {
        padding: 12px 25px;
        cursor: pointer;
    }



.navbar {
    height: 70px;
    background: #050505;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}


/* Center logo */
.logo {
    font-size: 26px;
    font-weight: bold;
}


/* Left and right buttons */
.hamburger,
.theme-toggle {
    position: absolute;
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
}


.hamburger {
    left: 25px;
}


.theme-toggle {
    right: 25px;
}

.light-mode {
    background: white;
    color: black;
}


    .light-mode .navbar {
        background: white;
    }


    .light-mode .hamburger,
    .light-mode .theme-toggle {
        color: black;
    }


    .light-mode .menu {
        background: white;
    }


        .light-mode .menu a {
            color: black;
        }


            .light-mode .menu a:hover {
                background: #ddd;
            }

/* Navbar */

.navbar {
    height: 70px;
    background: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}


.logo {
    font-size: 26px;
    font-weight: bold;
}


.hamburger,
.theme-toggle {
    position: absolute;
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
}


.hamburger {
    left: 25px;
}


.theme-toggle {
    right: 25px;
}


/* Menu */

.menu {
    position: fixed;
    top: 0;
    left: -300px;
    width: 260px;
    height: 100%;
    background: #0f172a;
    padding-top: 80px;
    transition: 0.3s;
    z-index: 1000;
}


    .menu.active {
        left: 0;
    }


    .menu a {
        display: block;
        color: white;
        padding: 18px;
        text-decoration: none;
    }


        .menu a:hover {
            background: #1e293b;
        }


/* Light mode */

.light-mode {
    background: white;
    color: black;
}


    .light-mode header,
    .light-mode footer,
    .light-mode .navbar {
        background: white;
    }


    .light-mode .hamburger,
    .light-mode .theme-toggle {
        color: black;
    }


    .light-mode .card,
    .light-mode .device {
        background: #eeeeee;
        color: black;
    }


    .light-mode .menu {
        background: white;
    }


        .light-mode .menu a {
            color: black;
        }

.hamburger {
    left: 25px;
    z-index: 1001;
}

.theme-toggle {
    right: 25px;
    z-index: 1001;
}

.navbar {
    z-index: 1000;
}
/* Keep buttons above the menu */
.hamburger,
.theme-toggle {
    z-index: 2000;
}


/* Keep navbar above menu */
.navbar {
    position: relative;
    z-index: 1500;
}


/* Menu layer */
.menu {
    z-index: 1000;
}
.hamburger {
    width: 45px;
    height: 45px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    background: transparent;
    border: none;
    z-index: 2000;
}

    .hamburger span {
        width: 30px;
        height: 3px;
        background: #0ea5e9;
        border-radius: 5px;
        transition: 0.3s ease;
    }

    /* Turn hamburger into X */
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

.repair-form {
    max-width: 750px;
    margin: 50px auto;
    background: #1e293b;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(56,189,248,.2);
}

    .repair-form h2 {
        text-align: center;
        margin-bottom: 25px;
        color: #38bdf8;
    }

    .repair-form label {
        display: block;
        margin-top: 18px;
        margin-bottom: 8px;
        font-weight: bold;
    }

    .repair-form input,
    .repair-form textarea,
    .repair-form select {
        width: 100%;
        box-sizing: border-box;
        padding: 14px;
        border: 1px solid #334155;
        border-radius: 8px;
        background: #111827;
        color: white;
        font-size: 16px;
    }

    .repair-form textarea {
        min-height: 150px;
        resize: vertical;
    }

    .repair-form button {
        width: 100%;
        margin-top: 30px;
        padding: 15px;
        background: #0ea5e9;
        color: white;
        border: none;
        border-radius: 8px;
        font-size: 18px;
        cursor: pointer;
        transition: .3s;
    }

        .repair-form button:hover {
            background: #0284c7;
            box-shadow: 0 0 15px #38bdf8;
        }

    .repair-form input[type="checkbox"] {
        width: auto;
        margin-right: 8px;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 35px;
    max-width: 1100px;
    margin: 60px auto;
}

.service-box {
    background: #1e293b;
    border-radius: 15px;
    padding: 50px;
    text-align: center;
    transition: .3s;
    box-shadow: 0 0 20px rgba(56,189,248,.15);
}

.service-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 25px #38bdf8;
}

.service-box h3 {
    font-size: 34px;
    color: #38bdf8;
    margin-bottom: 20px;
}

.service-box p {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 30px;
}

/* iFixit Family Cards */

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

.card .button {
    display: inline-block;
    margin-top: 15px;
}

.card p {
    min-height: 90px;
}

.menu-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1e293b;
    color: white;
    padding: 25px;
    margin: 20px auto;
    border-radius: 12px;
    text-decoration: none;
    transition: .3s;
    max-width: 900px;
}

    .menu-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 0 20px #38bdf8;
    }

    .menu-card h3 {
        margin: 0;
        color: #38bdf8;
    }

    .menu-card p {
        margin: 8px 0 0;
        color: #ddd;
    }

.arrow {
    font-size: 32px;
    color: #38bdf8;
}
