* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: Helvetica, sans-serif;
}

nav {
    background-color: #111;
    width: 100%;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}

nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    gap: 26px;
}

nav ul li {
    padding: 4px 10px;
    border-radius: 9px;
    cursor: pointer;
    white-space: nowrap;
    font-weight: 500;
    font-size: 0.8rem;
    color: white;
    transition: all 0.2s ease-in-out;
}

nav ul li:hover {
    background-color: #2b2a2a;
}

#applelogo {
    width: 22px;
    padding-right: 5px;
    color: white;
    vertical-align: middle;
}

.navimg {
    display: flex;
    gap: 12px;
    margin-left: 22px;
}

#cart {
    width: 15px;
    cursor: pointer;
}

#search {
    width: 15px;
    cursor: pointer;
}

#menu {
    width: 15px;
    cursor: pointer;
    display: none;
}

@media screen and (max-width: 1120px) {
    nav ul {
        gap: 10px;
    }
}

@media screen and (max-width: 915px) {
    nav ul {
        gap: 6px;
    }

    nav ul li {
        font-size: 0.7rem;
    }
}

@media screen and (max-width: 815px) {
    nav ul li {
        display: none;
    }

    #menu {
        display: initial;
    }
}

/* SECTION 1 */
.section1 {
    display: flex;
    justify-content: space-between;
}

.left {
    background-image: url(section1.jpg);
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 80px 50px;
    justify-content: flex-start;
    align-items: center;
    max-width: 50vw;
    height: 550px;
    gap: 4px;
}

#s1h1 {
    font-size: 4vw;
    font-weight: 600;
    color: whitesmoke;
}

#s1h3 {
    font-size: 1.8rem;
    font-weight: 300;
    color: lightgray;
}

.s1btnbox {
    margin-top: 10px;
    display: flex;
    gap: 22px;
}

#s1b1 {
    padding: 12px 33px;
    border: none;
    white-space: nowrap;
    color: white;
    font-weight: 600;
    background-color: rgb(57, 106, 212);
    border-radius: 60px;
    cursor: pointer;
}

#s1b1:hover {
    background-color: rgb(56, 104, 207);
}

#s1b2 {
    padding: 12px 33px;
    border: none;
    color: #111;
    font-weight: 600;
    background-color: whitesmoke;
    border-radius: 60px;
    cursor: pointer;
    white-space: nowrap;
}

#s1b2:hover {
    background-color: rgb(221, 219, 219);
}

@media screen and (max-width: 1025px) {
    .left {
        justify-content: center;
    }
}

.right {
    background-image: url(macos.jpg);
    background-size: cover;
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 80px 50px;
    justify-content: flex-start;
    align-items: center;
    max-width: 50vw;
    height: 550px;
    gap: 4px;
}

.rcard {
    border: 3px solid #111;
    background-color: #111;
    padding: 30px 50px;
    height: 550px;
    width: 40vw;
    border-radius: 18px;
}

.rh1 {
    color: whitesmoke;
}

.rp {
    color: rgb(175, 171, 171);
    padding-top: 35px;
    font-size: 1.4rem;
}

.rcardbtnbox {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-top: 25px;
}

.rcardbtnbox button {
    width: 150px;
    padding: 15px 30px;
    border: none;
    white-space: nowrap;
    font-weight: 600;
    border-radius: 60px;
    cursor: pointer;
}

#rcardbtn1 {
    color: white;
    font-weight: 600;
    background-color: rgb(57, 106, 212);
}

#rcardbtn1:hover {
    background-color: rgb(58, 113, 233);
}

#rcardbtn2 {
    color: #111;
    font-weight: 600;
    background-color: whitesmoke;
}

#rcardbtn2:hover {
    background-color: rgb(221, 219, 219);
}

@media screen and (max-width: 1245px) {
    .right {
        padding: 40px;
    }

    .rcard {
        width: 45vw;
    }
}

@media screen and (max-width: 925px) {
    .section1 {
        flex-direction: column;
    }

    .left {
        max-width: 100%;
    }

    .right {
        max-width: 100%;
    }

    .rcard {
        width: 70vw;
    }

    #s1h1 {
        font-size: 10vw;
    }
}

@media screen and (max-width: 610px) {
    .rcard {
        width: 90vw;
    }
}

@media screen and (max-width: 480px) {
    .rcard {
        width: 105vw;
    }
}

@media screen and (max-width: 401px) {
    .rcard {
        width: 120vw;
    }

    .right {
        height: 610px;
    }
}

@media screen and (max-width: 303px) {
    .rcard {
        width: 140vw;
    }

    .right {
        height: 630px;
    }
}

/* SECTION 2 */
.section2 {
    background-image: url(iphoneair.jpeg);
    width: 100%;
    height: 650px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    padding: 260px 50px;
    background-size: cover;
}

#s2h1 {
    font-size: 4vw;
    font-weight: 600;
    color: #111;
}

#s2h3 {
    font-size: 1.8rem;
    font-weight: 300;
    color: rgb(31, 30, 30);
    width: 367px;
    text-align: center;
}

.s2btnbox {
    margin-top: 10px;
    display: flex;
    gap: 22px;
}

#s2b1 {
    padding: 12px 33px;
    border: none;
    white-space: nowrap;
    color: white;
    font-weight: 600;
    background-color: rgb(57, 106, 212);
    border-radius: 60px;
    cursor: pointer;
}

#s2b1:hover {
    background-color: rgb(56, 104, 207);
}

#s2b2 {
    padding: 12px 33px;
    border: 1px solid #111;
    color: #111;
    font-weight: 600;
    background-color: whitesmoke;
    border-radius: 60px;
    cursor: pointer;
    white-space: nowrap;
}

#s2b2:hover {
    background-color: rgb(221, 219, 219);
}

@media screen and (max-width: 860px) {
    .section2 {
        background-size: cover;
    }
}

@media screen and (max-width: 800px) {
    #s2h3 {
        width: 400px;
    }

    #s2h1 {
        font-size: 10vw;
    }
}

/* SECTION 3 */
.section3 {
    width: 100%;
    height: 550px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    padding: 110px 50px;
    background-size: cover;
    background-image: url(mac14pro.jpg);
    object-fit: cover;
}

#s3h1 {
    font-size: 4vw;
    font-weight: 600;
    color: whitesmoke;
}

#s3h3 {
    font-size: 1.8rem;
    font-weight: 300;
    color: lightgray;
    width: 367px;
    text-align: center;
}

.s3btnbox {
    margin-top: 10px;
    display: flex;
    gap: 22px;
}

#s3b1 {
    padding: 12px 33px;
    border: none;
    white-space: nowrap;
    color: white;
    font-weight: 600;
    background-color: rgb(57, 106, 212);
    border-radius: 60px;
    cursor: pointer;
}

#s3b1:hover {
    background-color: rgb(56, 104, 207);
}

#s3b2 {
    padding: 12px 33px;
    border: none;
    color: #111;
    font-weight: 600;
    background-color: whitesmoke;
    border-radius: 60px;
    cursor: pointer;
    white-space: nowrap;
}

#s3b2:hover {
    background-color: rgb(221, 219, 219);
}

@media screen and (max-width: 750px) {
    #s3h1 {
        font-size: 8vw;
    }
}

@media screen and (max-width: 500px) {
    #s3h1 {
        font-size: 9vw;
    }
}

/* SECTION 4 */
.section4 {
    width: 100%;
    height: 1600px;
    display: grid;
    grid-template-columns: repeat(2, 2fr);
    background-size: cover;
    border: 15px solid whitesmoke;
}

.s4card1 {
    background-image: url(watchseries11.jpg);
    background-size: cover;
    height: 520px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 20px;
}

#s4c1h1 {
    font-size: 1.2rem;
    font-weight: 600;
    color: rgb(22, 22, 22);
}

#s4c1h3 {
    font-size: 1.1rem;
    font-weight: 300;
    color: rgb(29, 28, 28);
    text-align: center;
}

.s4c1btnbox {
    margin-top: 10px;
    display: flex;
    gap: 22px;
}

#s4c1b1 {
    padding: 10px 25px;
    border: none;
    white-space: nowrap;
    color: white;
    font-weight: 600;
    background-color: rgb(57, 106, 212);
    border-radius: 60px;
    cursor: pointer;
}

#s4c1b1:hover {
    background-color: rgb(56, 104, 207);
}

#s4c1b2 {
    padding: 10px 25px;
    border: 1px solid #111;
    color: #111;
    font-weight: 600;
    background-color: whitesmoke;
    border-radius: 60px;
    cursor: pointer;
    white-space: nowrap;
}

#s4c1b2:hover {
    background-color: rgb(221, 219, 219);
}

.s4card2 {
    background-image: url(ipadpro.png);
    background-size: cover;
    height: 520px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 3px;
    padding: 20px;
}

#s4c2h1 {
    font-size: 1.2rem;
    font-weight: 600;
    color: whitesmoke;
}

#s4c2h3 {
    font-size: 1.1rem;
    font-weight: 300;
    color: lightgray;
    text-align: center;
}

.s4c2btnbox {
    margin-top: 10px;
    display: flex;
    gap: 22px;
}

#s4c2b1 {
    padding: 10px 25px;
    border: none;
    white-space: nowrap;
    color: white;
    font-weight: 600;
    background-color: rgb(57, 106, 212);
    border-radius: 60px;
    cursor: pointer;
}

#s4c2b1:hover {
    background-color: rgb(56, 104, 207);
}

#s4c2b2 {
    padding: 10px 25px;
    border: none;
    color: #111;
    font-weight: 600;
    background-color: whitesmoke;
    border-radius: 60px;
    cursor: pointer;
    white-space: nowrap;
}

#s4c2b2:hover {
    background-color: rgb(221, 219, 219);
}

.s4card3 {
    background-image: url(airpods.jpg);
    background-size: cover;
    height: 520px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 3px;
    padding: 190px;
}

#s4c3h1 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #111;
}

#s4c3h3 {
    font-size: 1.1rem;
    font-weight: 300;
    color: rgb(31, 30, 30);
    text-align: center;
}

.s4c3btnbox {
    margin-top: 10px;
    display: flex;
    gap: 22px;
}

#s4c3b1 {
    padding: 10px 25px;
    border: none;
    white-space: nowrap;
    color: white;
    font-weight: 600;
    background-color: rgb(57, 106, 212);
    border-radius: 60px;
    cursor: pointer;
}

#s4c3b1:hover {
    background-color: rgb(56, 104, 207);
}

#s4c3b2 {
    padding: 10px 25px;
    border: 1px solid #111;
    color: #111;
    font-weight: 600;
    background-color: whitesmoke;
    border-radius: 60px;
    cursor: pointer;
    white-space: nowrap;
}

#s4c3b2:hover {
    background-color: rgb(221, 219, 219);
}

.s4card4 {
    background-image: url(macair.webp);
    background-size: cover;
    height: 520px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 3px;
    padding: 40px;
}

#s4c4h1 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #111;
}

#s4c4h3 {
    font-size: 1.1rem;
    font-weight: 300;
    color: rgb(31, 30, 30);
    text-align: center;
}

.s4c4btnbox {
    margin-top: 10px;
    display: flex;
    gap: 22px;
}

#s4c4b1 {
    padding: 10px 25px;
    border: none;
    white-space: nowrap;
    color: white;
    font-weight: 600;
    background-color: rgb(57, 106, 212);
    border-radius: 60px;
    cursor: pointer;
}

#s4c4b1:hover {
    background-color: rgb(56, 104, 207);
}

#s4c4b2 {
    padding: 10px 25px;
    border: none;
    color: #111;
    font-weight: 600;
    background-color: whitesmoke;
    border-radius: 60px;
    cursor: pointer;
    white-space: nowrap;
}

#s4c4b2:hover {
    background-color: rgb(221, 219, 219);
}

.s4card5 {
    background-image: url(tradein.jpg);
    background-size: cover;
    height: 520px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 3px;
    padding: 40px;
}

#s4c5h1 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #111;
}

#s4c5h3 {
    font-size: 1.1rem;
    font-weight: 300;
    color: rgb(31, 30, 30);
    text-align: center;
}

.s4c5btnbox {
    margin-top: 10px;
    display: flex;
    gap: 22px;
}

#s4c5b1 {
    padding: 10px 25px;
    border: none;
    white-space: nowrap;
    color: white;
    font-weight: 600;
    background-color: rgb(57, 106, 212);
    border-radius: 60px;
    cursor: pointer;
}

#s4c5b1:hover {
    background-color: rgb(56, 104, 207);
}

.s4card6 {
    background-image: url(card.webp);
    background-color: white;
    background-size: cover;
    height: 520px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 3px;
    padding: 40px;
}

#s4c6h1 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #111;
}

#s4c6h3 {
    font-size: 1.1rem;
    font-weight: 300;
    color: rgb(31, 30, 30);
    text-align: center;
}

.s4c6btnbox {
    margin-top: 10px;
    display: flex;
    gap: 22px;
}

#s4c6b1 {
    padding: 10px 25px;
    border: none;
    white-space: nowrap;
    color: white;
    font-weight: 600;
    background-color: rgb(57, 106, 212);
    border-radius: 60px;
    cursor: pointer;
}

#s4c6b1:hover {
    background-color: rgb(56, 104, 207);
}

#s4c6b2 {
    padding: 10px 25px;
    border: 1px solid #111;
    color: #111;
    font-weight: 600;
    background-color: whitesmoke;
    border-radius: 60px;
    cursor: pointer;
    white-space: nowrap;
}

#s4c6b2:hover {
    background-color: rgb(221, 219, 219);
}

@media screen and (max-width: 1700px) {
    .section4 {
        grid-template-columns: repeat(1, 1fr);
    }
}

@media screen and (max-width: 610px) {
    #s4c2h3 {
        font-size: 3vw;
        width: 300px;
    }

    #s4c5h3 {
        font-size: 3vw;
        width: 300px;
    }

    #s4c6h3 {
        font-size: 3vw;
        width: 300px;
    }
}

@media screen and (max-width: 490px) {
    .section2 {
        background-position: center;
    }

    #s2h3 {
        font-size: 5vw;
        width: 350px;
    }

    .s4card1 {
        padding: 40px;
        padding-right: 300px;
        background-position: center;
    }

    .s4card2 {
        padding: 40px;
        padding-right: 300px;
        background-position: center;
    }

    .s4card3 {
        padding: 40px;
        padding-right: 300px;
        background-position: center;
    }

    .s4card4 {
        padding: 40px;
        padding-right: 300px;
        background-position: center;
    }

    .s4card5 {
        padding: 40px;
        padding-right: 300px;
        background-position: center;
    }

    .s4card6 {
        padding: 40px;
        padding-right: 300px;
        background-position: center;
    }

    #s4c1h3 {
        font-size: 5vw;
        width: 250px;
    }

    #s4c2h3 {
        font-size: 5vw;
        width: 300px;
    }

    #s4c3h3 {
        font-size: 5vw;
        width: 300px;
    }

    #s4c4h3 {
        font-size: 5vw;
        width: 300px;
    }

    #s4c5h3 {
        font-size: 5vw;
        width: 270px;
    }

    #s4c6h3 {
        font-size: 5vw;
        width: 270px;
    }
}

@media screen and (max-width: 350px) {
    #s2h3 {
        font-size: 5vw;
        width: 300px;
    }
}

/* SECTION 5 */
.section5 {
    width: 100%;
    height: 800px;
    max-width: 2400px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.s5card {
    width: 1650px;
    background-image: url(frontier.jpg);
    background-size: cover;
    object-fit: cover;
    height: 100%;
    padding: 20px 90px;
    display: flex;
    align-items: flex-end;
    gap: 45px;
    transition: opacity 0.6s ease-in-out;
    opacity: 1;
}

.s5cardbtn {
    padding: 20px 35px;
    font-size: 1.2rem;
    border: 1px solid #2b2a2a;
    border-radius: 30px;
    cursor: pointer;
}

.s5slogan {
    padding-bottom: 18px;
    font-size: 1.2rem;
    transition: color 0.5s ease-in-out;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

@media screen and (max-width: 1700px) {
    .section5 {
        display: none;
    }
}

/* FOOTER */

.apple-footer {
    background-color: #111;
    padding: 50px 10%;
    border-top: 1px solid #d2d2d7;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 40px;
}

.footer-column h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    color: lightgray;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 6px;
}

.footer-column ul li a {
    text-decoration: none;
    color: whitesmoke;
    font-size: 13px;
    transition: color 0.2s ease;
}

.footer-column ul li a:hover {
    color: lightgray;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .apple-footer {
        padding: 40px 5%;
    }

    .footer-column h3 {
        margin-top: 20px;
    }
}

@media screen and (max-width: 1700px) {
    .apple-footer {
        position: relative;
        top: 1600px;
    }
}

/* FOOTER 2 */

.footer-bottom {
    background-color: #111;
    color: #6e6e73;
    font-size: 12px;
    padding: 25px 10%;
}

.footer-bottom a {
    color: #0066cc;
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

.shop-info {
    margin-bottom: 15px;
    color: #6e6e73;
}

.footer-bottom hr {
    border: none;
    border-top: 1px solid #d2d2d7;
    margin: 15px 0;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.footer-legal p {
    margin: 0;
}

.legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.legal-links li {
    border-right: 1px solid #d2d2d7;
    padding-right: 10px;
}

.legal-links li:last-child {
    border-right: none;
}

.country {
    color: lightgray;
    font-weight: 400;
}

@media (max-width: 768px) {
    .footer-legal {
        flex-direction: column;
        align-items: flex-start;
    }

    .legal-links {
        flex-wrap: wrap;
    }

    .country {
        margin-top: 10px;
    }
}