body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family:
        "SF Pro Text",
        "SF Pro Icons",
        "Helvetica Neue",
        Helvetica,
        Arial,
        sans-serif;
}

nav {
    width: 100%;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    position: fixed;
    margin-top: -60px;
    z-index: 9999;
    opacity: 0.85;
    cursor: pointer;
}

nav>ul {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

nav>ul>li>a {
    text-decoration: none;
    color: black;
    font-size: 14px;
    font-size: 12px;
}

.navAppleLogo {
    margin-top: 10px;
}

.nav-under-bar {
    margin-top: 60px;
}

.nav-under-bar>ul {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.nav-under-bar>ul>li {
    text-align: center;
    font-size: 12px;
    cursor: pointer;

}

.nav-under-bar>ul>li>p {
    margin-top: 5px;
    color: gray;
}

.navunder2 {
    text-align: center;
    width: 100%;
    background-color: #F5F5F7;
}

.navunder2>p {
    padding: 15px;
    font-size: 14px;
    color: rgb(0, 0, 0, 0.8);
}

.mac {
    margin-top: 20px;
    width: 100%;
    margin-right: 30px;
}

.mac>p {
    margin-left: 100px;
    font-size: 80px;
    font-weight: 580;
}





/* General Styling & Variables */
:root {
    --apple-blue: #0071e3;
    --background-color: #f5f5f7;
    --card-background: #fff;
    --text-primary: #000;
    --text-secondary: #6e6e73;
    --border-color: #d2d2d7;
}


/* Main Showcase Container */
.product-showcase {
    max-width: 100vw;
    margin: 0 auto;
    margin-left: 30px;
    margin-bottom: 100px;

}

/* Filter Navigation */
.product-filters {
    background-color: #E8E8ED;
    padding: 10px;
    width: fit-content;
    position: relative;
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    border-radius: 34px;
    margin-left: 60px;
    margin-top: 50px;
}

.filter-btn {
    background-color: #e8e8ed;
    border: none;
    border-radius: 999px;
    padding: 1rem 1.3rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s linear;
}

.filter-btn:hover {
    background-color: #dcdce1;
}

.filter-btn.active {
    background-color: var(--text-primary);
    color: #fff;
}

/* Product Grid Layout */
.product-grid {
    display: flex;
    padding-bottom: 20px;
    overflow: auto;
    scrollbar-width: none;
}

/* Individual Product Card */
.product-card {
    background-color: var(--card-background);
    border-radius: 18px;
    padding: 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: 15px;
    margin-right: -50px;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.product-image img {
    height: 280px;
    object-fit: contain;
    margin-bottom: 1rem;
    cursor: pointer;
}

.product-info h3 {
    font-size: 1.5rem;
    margin: 0.5rem 0;
}

.chip-info,
.description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
    width: 500px;
    margin: 0.5rem auto;
}

.chip-info {
    color: var(--text-primary);
    font-weight: 545;
}


.color-swatches {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 1rem 0;
    height: 10px;
    /* Reserve space */
}

.color-swatches span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
}


.pricing {
    margin: 1rem 0;
}

.pricing p {
    margin: 0.25rem 0;
    font-size: 0.9rem;
    font-weight: 500;
}

.pricing .monthly {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.card-actions {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}

/* Buttons */
.btn {
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 999px;
    transition: background-color 0.2s ease;
}

.btn-primary {
    background-color: var(--apple-blue);
    color: #fff;
    padding: 0.6rem 1.2rem;
}

.btn-primary:hover {
    background-color: #0077ed;
}

.btn-link {
    color: var(--apple-blue);
    position: relative;
    padding-right: 12px;
}

.btn-link::after {
    content: '>';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-weight: bold;
}

/* Utility Class for JS */
.hide {
    display: none;
}

.scroll-btn {
    width: fit-content;
    display: flex;
    height: fit-content;
    margin-left: 93%;
    margin-top: 20px;
    gap: 10px;
}

.scroll-btn img {
    cursor: pointer;
    background-color: #ECECF0;
    border-radius: 50%;
}

.shop-mac {
    width: 100%;
    height: fit-content;
    padding-bottom: 150px;
    background-color: #F5F5F7;

}

.shop-mac>p {
    padding: 20px;
    font-size: 56px;
    font-weight: 600;
    margin-left: 100px;
    padding-top: 100px;
    font-style: normal;
    font-optical-sizing: auto;
    width: fit-content;
}

.shop-mac>a {
    width: fit-content;
    text-decoration: none;
    position: absolute;
    left: 90%;
    bottom: 0%;
    top: 150%;
    color: #009dff;
}

.shop-mac>a:hover {
    text-decoration: underline;
}

product-card {
    margin-left: -50px;
}

.scroll-btn1 {
    width: fit-content;
    display: flex;
    z-index: 999;
    height: fit-content;
    margin-left: 93%;
    margin-top: 17px;
    gap: 10px;

}

.scroll-btn1 img {
    cursor: pointer;
    background-color: #fff;
    border-radius: 50%;
}

.scroll-btn1>img:hover {
    opacity: 0.6;
}

.get_to_know {
    width: 100%;
    height: 120vh;

    background-color: #fff;
}

.get_to_know>p {
    padding: 20px;
    font-size: 55px;
    font-weight: 550;
    margin-left: 90px;
    padding-top: 70px;
    font-style: normal;
    font-optical-sizing: auto;
    width: fit-content;
}



.carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* --- The Scrolling Track --- */
.carousel-track {
    display: flex;
    gap: 24px;
    padding-right: 110px;
    overflow-x: hidden;
    scroll-behavior: smooth;
    /* Smooth scrolling for anchor links/manual scroll */
    scroll-snap-type: x mandatory;
    /* Makes cards snap into place */
    padding-bottom: 20px;
    /* Hide scrollbar for Chrome/Safari/Opera */
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

/* Hide scrollbar logic */
.carousel-track::-webkit-scrollbar {
    display: none;
}

/* --- The Cards --- */
.card {
    flex: 0 0 400px;
    /* Fixed width for cards */
    height: 750px;
    margin-top: 10px;
    border-radius: 28px;
    position: relative;
    overflow: hidden;
    /* Snaps to the start of the container */
    transition: transform 0.3s ease;
    cursor: pointer;
    /* box-shadow: 0 10px 30px rgba(0,0,0,0.1); */
}

.card:hover {
    transform: translateY(-5px);
}

/* --- Card Visuals (Mimicking the Image) --- */
.card-content {
    padding: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 2;
    position: relative;
}

/* Card Themes */

/* Typography */
.eyebrow {
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    opacity: 0.8;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.headline {
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
}

.card.light .eyebrow,
.card.light .headline {
    color: #000;
}

/* The Plus Button inside card */
.plus-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(128, 128, 128, 0.5);
    backdrop-filter: blur(10px);
    border: none;
    color: white;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.card.light .plus-btn {
    background: #1d1d1f;
}

.scroll-btn2 {
    width: fit-content;
    display: flex;
    z-index: 999;
    height: fit-content;
    margin-left: 93%;
    margin-top: 30px;
    gap: 10px;

}

.scroll-btn2 img {
    cursor: pointer;
    background-color: #ECECF0;
    border-radius: 50%;
}

.scroll-btn2>img:hover {
    opacity: 0.6;
}


.help-me {
    width: 100%;
    height: 100vh;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    padding-bottom: 60px;
}

.help-me>p {
    padding: 20px;
    font-size: 52px;
    font-weight: 550;
    margin-left: 90px;
    padding-top: 80px;
    font-style: normal;
    font-optical-sizing: auto;
    width: fit-content;
}

.question {
    width: 88%;
    height: 580px;
    display: flex;
    flex-direction: row;
    background-color: #F5F5F7;
    border-radius: 35px;
    margin-left: 100px;
    cursor: pointer;
    transform: translateY(0);

    /* THE IMPORTANT PART: Smoothly animate ANY changes to CSS properties */
    /* 'all' means animate transform AND box-shadow simultaneously */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.question:hover {
    transform: translateY(-12px);
    /* Make shadow deeper and softer to create illusion of height */
}

.question>div {
    display: flex;
    flex-direction: column;
    width: 500px;
    z-index: 2;
    margin-left: 200px;
    margin-top: 80px;
}

.question>div>p {
    font-size: 28px;
    font-weight: 600;
    margin-top: 150px;
    margin-bottom: 20px;
    text-align: center;
}

.question>img {
    margin-left: 00px;
}

.question>div>button {
    margin-left: 170px;
    width: fit-content;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    border-radius: 999px;
    transition: background-color 0.2s ease;
    background-color: var(--apple-blue);
    color: #fff;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
}

.question>div>button:hover {
    background-color: #0077ed;
}

.essentials {
    width: 100%;
    height: 120vh;
    background-color: #F5F5F7;
    display: flex;
    flex-direction: column;
}

.essentials>p {
    padding: 20px;
    font-size: 55px;
    font-weight: 550;
    margin-left: 90px;
    padding-top: 50px;
    font-style: normal;
    font-optical-sizing: auto;
    width: fit-content;
}

.essentials>div {
    display: flex;
    flex-direction: row;
    width: 88%;
    height: 700px;
    margin-left: 100px;
    margin-top: 30px;
    gap: 30px;
}

.accessories {
    width: 840px;
    height: 630px;
    background-color: #fff;
    border-radius: 30px;
    text-align: center;
    cursor: pointer;
    transform: translateY(0);

    /* THE IMPORTANT PART: Smoothly animate ANY changes to CSS properties */
    /* 'all' means animate transform AND box-shadow simultaneously */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.accessories:hover {
    transform: translateY(-5px);
}

/* Make shadow deeper and softer to create illusion of height */
.accessories :first-child {
    font-size: 32px;
    font-weight: 600;
    padding-top: 10px;
    font-style: normal;
    font-optical-sizing: auto;
}

.keyboard {
    margin-top: -20px;
    font-size: smaller;
}

.accessories>img {
    margin-top: 50px;
}

.unlock {
    width: 100%;
    height: 110vh;
    background-color: #ffffff;
}

.unlock>div {
    display: flex;
}

.unlock>div>p {
    font-size: 55px;
    font-weight: 550;
    margin-left: 90px;
    padding-top: 30px;
    font-style: normal;
    font-optical-sizing: auto;
    width: fit-content;
}

.unlock>div>a {
    width: fit-content;
    padding-top: 90px;
    margin-left: 580px;
}





.feature-container {
    width: 80%;
    height: 650px;
    margin-left: 100px;
    background-color: #f5f5f7;
    /* Apple Light Gray Background */
    border-radius: 30px;
    padding: 60px;
    display: flex;
    align-items: center;
    /* Vertically center items */
    gap: 60px;
}

/* --- Left Side: Text Accordion --- */
.accordion-wrapper {
    margin-left: 100px;
    margin-right: 100px;
    width: 350px;
    /* Takes up 50% space */
    display: flex;
    flex-direction: column;
}

.accordion-item {
    border-bottom: 1px solid #d2d2d7;
    overflow: hidden;
}

/* Remove border from the last item */
.accordion-item:last-child {
    border-bottom: none;
}

/* Header (The clickable part) */
.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    cursor: pointer;
    transition: color 0.3s ease;
}

.accordion-title {
    font-size: 29px;
    font-weight: 600;
    color: #1d1d1f;
}

/* The Arrow Icon */
.icon {
    width: 18px;
    height: 18px;
    transition: transform 0.4s ease;
    fill: #86868b;
    /* Gray arrow */
}

/* --- The Content (Hidden by default) --- */
.accordion-content {
    max-height: 0;
    /* Hidden initially */
    opacity: 0;
    transition: all 0.5s cubic-bezier(0, 1, 0, 1);
    margin-top: -30px;
    /* Smooth slide effect */
    color: #424245;
    font-size: 17px;
    line-height: 1.5;
    padding-right: 20px;
    /* Prevent text hitting the edge */
}

.accordion-content p {
    padding-bottom: 24px;
}

/* --- Active State (When clicked) --- */

/* Rotate arrow 180deg when active */
.accordion-item.active .icon {
    transform: rotate(180deg);
    fill: #1d1d1f;
    /* Darker arrow when active */
}

/* Reveal content when active */
.accordion-item.active .accordion-content {
    max-height: 300px;
    /* Enough height to fit the text */
    opacity: 1;
}

/* --- Right Side: Image --- */
.image-wrapper {
    flex: 1.2;
    /* Takes up slightly more space than text */
    display: flex;
    justify-content: center;
    align-items: center;
}

.device-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    /* Drop shadow for the device */
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.2));
}

/* --- Responsive Mobile --- */
@media (max-width: 768px) {
    .feature-container {
        flex-direction: column-reverse;
        /* Image on top for mobile */
        padding: 30px;
        gap: 40px;
    }

    .accordion-title {
        font-size: 20px;
    }
}

.image-column {
    flex: 3.0;
    position: relative;
    height: 800px;
    /* Set fixed height for the image area */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Stack images on top of each other */
.feature-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    /* Hidden by default */
    transform: scale(0.98);
    /* Slightly shrunk */
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* The Visible Image */
.feature-image.active {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}

.link-list {
    width: 100%;
    height: 90vh;
    background-color: #FAFAFC;
}

.link-list>p {
    padding: 20px;
    font-size: 55px;
    font-weight: 550;
    margin-left: 90px;
    padding-top: 140px;
    font-style: normal;
    font-optical-sizing: auto;
    width: fit-content;
}

.list {
    display: flex;
    flex-direction: row;
    gap: 30px;
    margin-left: 100px;
    margin-top: 50px;
}

.list>div>ul>li {
    list-style: none;
    margin-bottom: 0px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
}

footer {
    display: flex;
    flex-direction: column;
}

footer :first-child {
    width: 80%;
    font-size: 12px;
    color: #6e6e73;
    margin-left: -520px;
    margin-top: 20px;
}

hr {
    width: 65%;
    border: none;
    border-top: 1px solid #d2d2d7;
    margin-top: 10px;
}

footer :last-child {
    font-size: 12px;
    color: #6e6e73;
    margin-left: 860px;
    margin-top: 10px;
}




.slide-up {
    opacity: 0;
    /* Move the element 50px down */
    transform: translateY(50px);
    /* Add a smooth transition */
    transition: opacity 0.3s ease-out, transform 0.8s ease-out;
}

/* 2. Final (visible) state */
.slide-up.active {
    opacity: 1;
    /* Move the element back to its original position */
    transform: translateY(0);
}