/* mobile */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap');

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

:root {
    --bg-primary: #fdfdfd;
    --bg-secondary: rgb(249, 249, 249);
    --text-primary: #1d1d1f;
    --text-link: #0472e0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Poppins", Arial, Helvetica, sans-serif;
}

a {
    text-decoration: none;
}

header {
    width: 100%;
    background: var(--bg-secondary);
    position: fixed;
    z-index: 100;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    position: relative;
    z-index: 10;
}

.nav-top {
    padding: 10px 15px 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    position: relative;
}

.nav-logo a {
    color: var(--text-primary);
    font-size: 20px;
}

.nav-icon {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.search-icon a {
    color: var(--text-primary);
    font-size: 15px;
}

.menu-icon a {
    color: var(--text-primary);
    font-size: 19px;
}

.menu-icon,
.close-menu {
    cursor: pointer;
}

.close-menu {
    padding: 10px 15px 10px 15px;
    align-self: flex-end;
}

.nav-link {
    width: 100%;
    display: flex;
    flex-direction: column;
    background: var(--bg-secondary);
    height: 100dvh;
    position: fixed;
    padding-bottom: 10px;
    padding-top: 10px;
    top: 0;
    right: -100%;
    transition: 0.5s ease-in-out;
    z-index: 999;
}

.nav-link.active {
    right: 0;
}

.nav-link a {
    padding-left: 40px;
    color: var(--text-primary);
    padding-top: 10px;
    font-weight: 600;
    font-size: 25px;
    transition: 0.3 ease;
}

.nav-link a:hover {
    color: #4f4e4e;
}

/* Carousel Iphone */
.iphone-section {
    padding-top: 80px;
    background: var(--bg-primary);
}

.iphone-hero {
    width: 90%;
    padding-left: 40px;
    padding-bottom: 30px;
}

.iphone-title {
    font-size: 45px;
    font-weight: 600;
    margin-bottom: 30px;
    color: var(--text-primary);
}

.iphone-wrapper {
    position: relative;
}

.iphone-grid {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 10px;
}

.iphone-grid::-webkit-scrollbar {
    display: none;
}

.iphone-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 90px;
}

.iphone-img {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.iphone-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.iphone-name {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-primary);
    margin-top: 10px;
    text-align: center;
}

.iphone-badge {
    font-size: 10px;
    font-weight: 600;
    color: #da5a04;
    margin-top: 2px;
}

.scroll-btn {
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgb(255, 255, 255);
    border: none;
    width: 30px;
    height: 100%;
    font-size: 16px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.scroll-btn.visible {
    display: flex;
}

.scroll-btn-right {
    right: -10px;
}

.scroll-btn-left {
    left: -10px;
}

/* explore */
.explore-section {
    background: var(--bg-secondary);
    padding-top: 50px;
    padding-bottom: 50px;
}

.explore-header {
    padding-bottom: 10px;
}

.explore-title {
    font-size: 25px;
    font-weight: 700;
    color: var(--text-primary);
    padding-bottom: 10px;
    padding-left: 40px;
}

.explore-compare {
    padding-left: 40px;
    font-size: 12px;
    color: var(--text-link);
}

.explore-compare:hover {
    text-decoration: underline;
}

.explore-wrapper {
    width: 100%;
}

.explore-grid {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-left: 40px;
    padding-right: 30px;
    padding-bottom: 20px;
}

.explore-grid::-webkit-scrollbar {
    display: none;
}

.explore-item {
    background: #fff;
    border-radius: 30px;
    display: flex;
    flex-direction: column;
}

.explore-img-wrapper img {
    width: 250px;
    height: 250px;
    border-radius: 30px;
}

.explore-dots {
    display: flex;
    gap: 6px;
    margin-left: 10px;
    padding: 10px 0;
}

.explore-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

.explore-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.explore-info h3 {
    font-size: 20px;
    font-weight: 500;
    color: var(--text-primary);
}

.explore-info p {
    font-size: 10px;
    color: #4a4a4a;
    line-height: 1.5;
}

.explore-actions {
    padding-top: 20px;
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: center;
    margin-top: auto;
}

.btn-selengkapnya {
    background: var(--text-link);
    color: #fff;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.btn-selengkapnya:hover {
    background: #066dd4;
}

.btn-beli {
    color: var(--text-link);
    font-size: 13px;
    font-weight: 500;
}

.btn-beli:hover {
    text-decoration: underline;
}

.btn-hero {
    position: absolute;
    right: 20px;
    display: flex;
    gap: 10px;
}

.explore-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.1);
    color: #242424;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.explore-btn:hover {
    background-color: #c2c0c0;
}

/* banner person */
.hero-person {
    background-color: var(--bg-primary);
    padding-top: 80px;
}

.person-header {
    padding-bottom: 10px;
}

.person-title {
    padding-bottom: 10px;
    font-size: 25px;
    padding-left: 40px;
    color: var(--text-primary);
}

.hero-wrapper img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    object-position: center;
    border-radius: 50px;
}

.hero-wrapper {
    width: 300px;
    margin: auto;
    position: relative;
    padding-bottom: 30px;
}

.content-person {
    width: 70%;
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--text-primary);
}

.content-person h2 {
    font-size: 15px;
    font-weight: 600;
    padding-bottom: 15px;
}

.btn {
    margin-top: 10px;
    font-size: 12px;
    padding: 10px 20px;
    background: #242424;
    border: none;
    border-radius: 20px;
    color: white;
    cursor: pointer;
}

.btn:hover {
    background-color: #2e2e2e;
}

/* galery */
.galery-section {
    background: var(--bg-secondary);
    padding-top: 60px;
    padding-bottom: 50px;
}

.galery-header {
    align-items: center;
    margin-bottom: 15px;
}

.galery-title {
    font-size: 25px;
    font-weight: 700;
    color: var(--text-primary);
    padding-bottom: 10px;
    padding-left: 40px;
}

.galery-hero a {
    padding-left: 40px;
    font-size: 12px;
    color: var(--text-link);
}

.galery-hero p:hover {
    text-decoration: underline;
}

.galery-wrapper {
    width: 100%;
}

.galery-grid {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-left: 40px;
    padding-right: 30px;
    padding-bottom: 10px;
}

.galery-grid::-webkit-scrollbar {
    display: none;
}

.galery-item {
    border-radius: 30px;
    display: flex;
    flex-direction: column;
}

.galery-item img {
    width: 300px;
    height: 480px;
    border-radius: 30px;
    object-fit: cover;
}

/* accesories */
.accesories {
    background-color: var(--bg-primary);
    padding-top: 60px;
    padding-bottom: 30px;
}

.accesories h2 {
    font-size: 25px;
    padding-bottom: 30px;
    padding-left: 40px;
    color: var(--text-primary);
}

.img-accesories {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.accessories-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.card {
    background: rgb(245, 245, 247);
    border-radius: 20px;
    width: 90%;
    margin: auto;
    padding: 30px;
    text-align: center;
    position: relative;
}

.card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.card p {
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;
}

.card .link {
    color: var(--text-link);
    font-size: 14px;
    text-decoration: none;
}

.badge {
    color: orange;
    font-size: 12px;
    margin-bottom: 5px;
}

.card-image img {
    width: 100%;
}

/* pairing */
.pairing {
    background: var(--bg-secondary);
    padding-top: 60px;
    padding-bottom: 30px;
}

.pairing h2 {
    font-size: 24px;
    margin-bottom: 20px;
    padding-left: 40px;
}

.pairing-container {
    background: #f2f2f2;
    width: 90%;
    margin: auto;
    border-radius: 20px;
    padding: 20px;
}

.accordion .item {
    border-bottom: 1px solid #ddd;
}

.accordion-header {
    width: 100%;
    background: none;
    border: none;
    font-size: 16px;
    text-align: left;
    padding: 15px 0;
    display: flex;
    justify-content: space-between;
    cursor: pointer;
}

.accordion-header h2 {
    padding: 0;
    margin: 0;
    font-size: 20px;
    font-weight: 800;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: 0.3s ease;
}

.accordion-content p {
    font-size: 14px;
    color: #555;
    padding-bottom: 15px;
}

.item.active .accordion-content {
    max-height: 200px;
}

.item.active .icon {
    transform: rotate(180deg);
}

.image {
    margin-top: 20px;

}

.image img {
    width: 100%;
    border-radius: 15px;
}

/* menu info */
.iphone-menu {
    background: var(--bg-primary);
    padding-top: 60px;
    padding-bottom: 30px;
}

.container-menu {
    padding-left: 40px;
}

.container-menu h1 {
    font-size: 30px;
    color: var(--text-primary);
}

.menu-title {
    font-size: 14px;
    color: #777;
    margin-bottom: 10px;
}

.menu-col .bold {
    font-weight: 600;
    padding-bottom: 10px;
    color: var(--text-primary);
}

.menu-col ul {
    list-style: none;
    margin-bottom: 20px;
}

.menu-col ul li {
    margin-bottom: 8px;
    font-size: 15px;
    cursor: pointer;
    color: var(--text-primary);
}

.menu-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}


/* footer */
.footer {
    padding-top: 60px;
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.footer-logo {
    font-size: 20px;
    margin-bottom: 30px;
    padding-left: 40px;
    display: flex;
    align-items: center;
}

.footer-logo i {
    font-size: 15px;
    gap: 2px;
}

.footer-logo span {
    font-size: 15px;
    padding-left: 5px;
}

.footer-grid {
    padding-left: 40px;
    padding-right: 40px;
    display: grid;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer h4 {
    font-size: 14px;
    margin-bottom: 10px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer h4 i {
    font-size: 12px;
    transition: 0.3s;
}

.footer ul {
    list-style: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.footer ul li {
    font-size: 12px;
    margin-bottom: 10px;
    font-weight: 400;
    color: #6e6e73;
    cursor: pointer;
}

.footer .active ul {
    max-height: 300px;
}

.footer .active h4 i {
    transform: rotate(180deg);
}

.footer-bottom {
    margin-top: 40px;
    border-top: 1px solid #d2d2d7;
    padding-top: 20px;
    padding-left: 40px;
    padding-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 12px;
    color: #6e6e73;
}

.footer-social-media {
    padding-top: 10px;
}

.footer-social-media a {
    font-size: 25px;
    color: #6e6e73;
}

.footer-links a {
    text-decoration: none;
    color: #6e6e73;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* tablet */
@media (min-width: 600px) {
    .explore-header {
        display: flex;
        justify-content: space-between;
        padding-right: 30px;
        padding-bottom: 20px;
        align-items: center;
    }

    .galery-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-right: 30px;
    }

    /* person banner */
    .content-person h2 {
        padding-top: 20px;
    }

    .hero-wrapper {
        padding-top: 10px;
        width: 550px;
    }
}

@media (min-width: 750px) {
    .iphone-wrapper .scroll-btn {
        display: none;
    }

    .footer-social-media {
        position: absolute;
        display: flex;
        flex-direction: column;
        right: 0;
        padding-right: 40px;
    }
}

@media (min-width: 900px) {
    .hero-person {
        padding-bottom: 30px;
    }

    .hero-wrapper {
        width: 800px;
        margin: auto;
        overflow: hidden;
        border-radius: 50px;
    }

    .hero-wrapper img {
        width: 100%;
        height: 400px;
        object-fit: cover;
        transform: scale(1.3);
        object-position: 70px 90%;
    }

    .content-person {
        left: 200px;
        top: 80px;
    }

    .accessories-container {
        width: 90%;
        margin: auto;
        flex-direction: row;
        gap: 20px;
    }

    .pairing-container {
        display: flex;
        align-items: center;
        height: 400px;
        justify-content: center;
        gap: 20px;
    }

    .accordion-header h2 {
        font-weight: 600;
    }

    .accordion {
        width: 400px;
    }

    .card {
        flex: 1;
        margin: 0;
    }

    .menu-grid {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        width: 80%;
    }

    .footer-logo {
        padding-left: 80px;
    }

    .footer-grid {
        justify-content: center;
        padding-left: 80px;
        grid-template-columns: repeat(4, 1fr);
        align-items: start;
        gap: 0;
    }

    .footer-grid h4 {
        font-weight: 600;
        font-size: 12px;
        padding-top: 20px;
    }

    .footer-grid ul li {
        font-size: 12px;
        font-weight: 300;
        color: #212121;
    }

    .footer h4 {
        cursor: default;
    }

    .footer h4 i {
        display: none;
    }

    .footer ul {
        max-height: none;
        overflow: visible;
    }
}

/* desktop */
@media (min-width: 1000px) {
    .nav {
        width: 80%;
        margin: auto;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .nav-link {
        display: flex;
        flex-direction: row;
        height: auto;
        width: auto;
        position: static;
        background: none;
        transform: none;
        transition: none;
        gap: 30px;
    }

    .nav-link a {
        padding: 0;
        font-size: 12px;
        font-weight: 300;
    }

    .search-icon a {
        font-size: 13px;
    }

    .menu-icon {
        font-size: 10px;
    }

    .menu-icon,
    .close-menu {
        display: none;
    }

    .iphone-hero {
        padding-top: 20px;
        padding-bottom: 30px;
        padding-left: 70px;
    }

    .iphone-grid {
        gap: 50px;
    }

    .iphone-title {
        font-size: 70px;
        font-weight: 600;
    }

    .iphone-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        min-width: 90px;
    }

    .iphone-img {
        height: 85px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .iphone-img img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

    .iphone-name {
        font-size: 13px;
        font-weight: 500;
        color: #1d1d1f;
        margin-top: 10px;
        text-align: center;
    }

    .iphone-badge {
        font-size: 12px;
        font-weight: 600;
        color: #da5a04;
        margin-top: 2px;
    }

    /* explore */
    .explore-section {
        padding-top: 100px;
    }

    .explore-header {
        display: flex;
        justify-content: space-between;
        padding-bottom: 30px;
        padding-left: 40px;
    }

    .explore-title {
        font-size: 50px;
    }

    .explore-compare {
        font-size: 15px;
        padding-right: 30px;
    }

    .explore-grid {
        padding-left: 80px;
    }

    .explore-img-wrapper img {
        width: 375px;
        height: 375px;
        border-radius: 30px;
    }

    .explore-dots {
        justify-content: center;
    }

    .explore-info {
        justify-content: center;
        text-align: center;
    }

    .explore-info h3 {
        font-size: 30px;
        font-weight: 600;
    }

    .explore-info p {
        font-size: 15px;
    }

    /* banner person */
    .hero-person {
        padding-left: 40px;
    }

    .person-title {
        font-size: 40px;
    }

    /* pairing */
    .pairing-container {
        display: flex;
        gap: 20px;
        align-items: center;
    }

    /* gallery */
    .galery-header {
        padding-left: 40px;
    }

    .galery-title {
        font-size: 50px;
    }

    .galery-grid {
        padding-left: 80px;
    }

    /* accesories */
    .accesories h2 {
        padding-left: 80px;
        font-size: 40px;
    }

    /* pairing */
    .pairing {
        min-height: 100vh;
    }

    .pairing h2 {
        padding-left: 80px;
    }

    .accordion-header h2 {
        padding-left: 0;
    }

    .accordion {
        flex: 1;
    }

    .image {
        flex: 1;
        margin-top: 0;
    }

    /* menu-iphone */
    .iphone-menu {
        min-height: 100vh;
        padding-left: 80px;
    }

    .container-menu h1 {
        padding-top: 30px;
    }

    .menu-grid {
        flex-direction: row;
        gap: 100px;
    }

    .menu-col {
        flex: 1;
    }

    /* footer */
    .footer-logo {
        padding-left: 80px;
    }

    .footer-grid {
        justify-content: center;
        padding-left: 80px;
        grid-template-columns: repeat(4, 1fr);
        align-items: start;
        gap: 0;
    }

    .footer-col {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .footer-grid h4 {
        font-weight: 600;
        font-size: 12px;
        padding-top: 20px;
    }

    .footer-grid ul li {
        font-size: 12px;
        font-weight: 300;
        color: #212121;
    }

    .footer h4 {
        cursor: default;
    }

    .footer h4 i {
        display: none;
    }

    .footer ul {
        max-height: none;
        overflow: visible;
    }

    .footer-bottom {
        padding-left: 40px;
    }
}