:root{
    --font-resizable: clamp(2rem, 3vw, 3rem);
    --animate-pulse: fadeInOut 2s infinite;
    --animation-background-color: rgba(175, 175, 175, 0.966);
}
*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-size: clamp(1rem, 2vw, 1.1rem );
}
html,body{
    height: 100%;
    scroll-behavior: smooth;
}
ul{
    list-style: none;
}
a{
    text-decoration: none;
    height: fit-content;
    color: #808080;
}
a:hover{
    color: #80808083;
    transform: translateY(-20%);
    transition: transform 0.3s ease-in-out;
}
.container{
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.logo img{
    height: 50px;
    object-fit: contain;
    object-position: right;
}
.header{
    width: 100%;
    background-color: rgba(0, 0, 0, 0.732);
    color: white;
    text-align: center;
}
.boom-section-card{
    display: flex;
    flex-direction: row;
    background-color: black;
    color: #FAFAFA;
    padding: 30px 40px;
    justify-content: space-between;
    width: 70%;
    margin-inline: auto;
    flex-wrap: wrap;
}
.boom-section-content{
    width: 100%;
}
.boom-section-card button{
    padding: 15px 50px;
    background-color: #00FF66;
    color: white;
    border-radius: 10px;
    border: none;
    margin-left: auto;
    width: fit-content;
}
.boom-section-card div:nth-child(1){
    display: flex;
    flex-direction: column;
}
.boom-section-card h1{
    font-size: var(--font-resizable);
}
.boom-section-card img{
    background: linear-gradient(to right, transparent,rgba(255,255,255,0.2), rgba(255,255,255,0.05), transparent);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    color: #fff;
}
.navbar-nav{
    display: flex;
    width: 90vw;
    margin-left: auto;
    margin-right: auto;
    justify-content: space-between;
    > h1> a{
        font-size: 2rem;
        color: inherit;
    }
}
h1{
    font-family: monospace;
    font-size: 1.5rem;
}
.navbar{
    width: 100%;
    padding: min(10px, 10%) 0;
    transform: perspective(1px) translateZ(0);
    box-shadow: 0 2px 6px #000000e1;
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: white;
}
.nav-links{
    display: flex;

}
.MainLinks-default{
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    width: 30vw;
    justify-content: space-between;
}
#menubtn{
    display: none;
}
.nav-icons{
    display: flex;
    align-items: center;
    gap: 10px;
    /* border: 1px solid red; */
}
.img-icons{
    width: 20px;
}
#search-box {
  padding: 8px;
  display: flex;
  align-items: center;
  position: relative;
}
#search-btn{
    border-right: 1px solid gray;
    padding-right: 10px;
}
#search-input {
  outline: none;
  border: none;
  background-color: transparent;
  padding: 4px 8px;

  /* Start hidden */
  width: 0px;
  opacity: 0;
  transition: width 0.5s ease, opacity 0.5s ease;
}
/* When active, expand smoothly from right to left */
#search-input.show {
  width: 180px;   /* adjust size as needed */
  opacity: 1;
  border-bottom: 1px solid grey;
}

input{
    outline: none;
    border: none;
    width: 180px;
    background-color: transparent;
}
footer{
    background-color: black;
    color: white;
    display: flex;
    margin-top: auto;
    flex-direction: column;
    padding-top: 50px;
}
.footer-cards{
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
}
.footer-card{
    display: flex;
    flex-direction: column;
    p{
        font-size: 0.8rem;
    }
}
.main-footer{
    border-top: 1px solid #d8cece;
    text-align: center;
}
.email-container{
    border: 1px solid #d8cece;
    border-radius: 20px;
    display: flex;
    padding: 10px;
    color: white;
}
.arrow-up{
    position: fixed;
    bottom: 30px;
    right: 10px;
    background-color: white;
    z-index: 1000;
}
.wrapper{
    margin-top: 20px;
}
.header-list{
    display: flex;
    margin-right: auto;
    margin-left: auto;
    width: 90vw;
    /* animation: showheader-list both;
    animation-timeline: view();
    animation-range: entry 80vh cover 60vh; */
    >ul{
        border-right: 1px solid #ff0000c6;
        display: flex;
        padding-right: 20px;
        /* word-spacing: 0.3em; */
        flex-direction: column;
        justify-content: space-between
    }
    margin-bottom: 50px;
}
.card-iphone{
    width: 70%;
    margin-left: auto;
    overflow-x: hidden;
    display: flex;
    color: white;
    background-color: black;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
}
.card-iphone div{
    /* width: 30%; */
    padding: 20px;
}
.card-iphone div h1{
    font-size: var(--font-resizable);
    /* font-size: 3rem; */
}
.card-iphone a{
    text-decoration: underline;
    text-underline-offset: 8px;
    font-size: 1.8rem;
}
img{
    object-fit: cover;
    object-position: center;
    max-height: 100%;
    max-width: 100%;
}
section{
    display: flex;
    flex-direction: column;
    width: 90vw;
    margin: 20px auto 80px;
}
#latest-product{
    margin-right: 0;
    width: 94vw;
}
.today, .flash, .time{
    display: flex;  
    gap: 10px;
    align-items: center;
}
.time{
    gap: 30px;
    margin-left: auto;
}
.duration p{
    font-size: 11px;
    font-weight: 600;
    color: red;
}
.flash{
    gap: 50px;
    margin-right: auto;
    width: 90vw;
}
.today{
    color: red;
}
.today-red{
    width: 25px;
    height: 30px;
    border-radius: 4px;
    background-color: #ff0000c6;
}
.arrows{
    display: flex;
    width: 95%;
    height: 70px;
    left: 3%;
    position: sticky;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
    top: 50%;
    z-index: 500;
}
.product-image-slider::-webkit-scrollbar{
    display:none;
}
.products-card{
    display: flex;
    gap: 25px;
    margin-top: 20px;
    padding: 10px;
    transition: transform 0.5s ease-in-out;
}
/* Style for the image slider */
.product-image-slider {
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    scroll-behavior: smooth;
    position: relative;
}

.card {
    position: relative; /* needed for overlay */
    min-width: 200px;
    max-width: 250px;
    border-radius: 10px;
    height: 200px;
    overflow: hidden;
    text-wrap: wrap;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    border: 1px solid #00000031;
}
.card:hover{
    cursor: pointer;
    transform: perspective(1px) translateZ(0);
    box-shadow: 0 4px 6px #000000e1;
}

/* image container already has these; ensure position relative */
.products-img-card{
    width: 100%;
    height: 200px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px 10px 0 0;
    position: relative;
}

/* overlay that shows full description - constrained to image area */
.overlay-text{
    position: absolute;
    inset: 0; /* top:0; right:0; bottom:0; left:0 */
    display: none;
    background: rgba(0,0,0,0.65); /* semi-transparent so image visible behind */
    color: #fff;
    padding: 12px;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 50;
    overflow: auto; /* scroll if text is long */
    font-size: 0.85rem; /* smaller to fit */
    line-height: 1.2;
}

/* content wrapper inside overlay */
.overlay-content{
    max-height: 100%;
    overflow: auto;
    word-break: break-word;
    width: 100%;
}

/* close button in overlay */
.overlay-close{
    position: absolute;
    top: 6px;
    right: 6px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
}

/* keep preview small and not pushing layout */
.products-card-content{
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    padding: 8px;
    text-align: center;
    min-height: 3.2rem;
    width: 100%;
    box-sizing: border-box;
}

.products-card-content .preview-text{
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
    display: inline-block;
}

.products-card-content .full-text{
    word-break: break-word;
    max-width: 220px;
    text-align: center;
}

.expand-btn{
    background: transparent;
    border: none;
    color: #d32f2f;
    cursor: pointer;
    font-weight: 700;
    padding: 0 6px;
    font-size: 0.95rem;
}
.products-img-card{
    width: 100%;
    height: 200px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px 10px 0 0;
}
.products-img-card img{
    height: fit-content;
    display: flex;
    border-radius: 10px 10px 0 0;
}
.products-card-animate{
    display: flex;
    gap: 20px;
    overflow: hidden;
    animation: var(--animate-pulse);
}
#products-animation{
    min-width: 200px;
    max-width: 250px;
    background-color: var(--animation-background-color);
    border-radius: 10px 10px 0 0;
}

/* Fade-in animation */
.fade-in{
    opacity: 0;
    animation: var(--animate-pulse);
}
@keyframes fadeInOut{
    0%, 100% {
        opacity: -1;
      }
      50% {
        opacity: 1;
      }
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes showheader-list {
    from{
        transform: translateY(100px);
        opacity: 0;
    }
    to{
        transform: translateY(0);
        opacity: 1;
    }
}

.btn{
    border-bottom: 1px solid grey;
    width: 90vw;
    display: flex;
    /* margin-bottom: 50px; */
    >button{
        font-size: 18px;
        width: fit-content;
        margin-right: auto;
        margin-left: auto;
        padding: 15px 25px 15px 25px; /* top right bottom left*/
        background-color: #ff0000c6;
        color: white;
        margin-top: 20px;
        margin-bottom: 20px;
        border-radius: 5px;
    }
}

.arrow-btn:disabled{
    opacity: 0.5;
    cursor: not-allowed;
}
.bottom-border{
    border-bottom: 1px solid grey;
    padding-bottom: 20px;
}
.cat-img{
    border: 1px solid;
    width: 150px;
    height: 100px;
    display: flex;
    justify-content: center;
}
.category-card{
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-top: 20px;
    overflow: hidden;
}
.view-btn{
        font-size: 18px;
        width: fit-content;
        margin-right: auto;
        margin-left: auto;
        padding: 15px 25px 15px 25px; /*top right bottom left*/
        background-color: #ff0000c6;
        color: white;
        margin-top: 20px;
        margin-bottom: 20px;
        border-radius: 5px;
}
.arrow-btn{
    border-radius: 20px;
    font-size: 1.5rem;
    border: none;
    padding: 15px;
    display: flex;
    border-radius: 100%;
    transform: perspective(1px) translateZ(0);
    box-shadow: 0 2px 6px #000000e1;
}
.arrow-btn:hover{
    box-shadow: 0 4px 6px #000000e1;
    cursor: pointer;
    padding: 20px;
    transition: all 0.3s ease-in-out;

}
#products{
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 10px;
}
#products i{
    font-size: 4rem;
}
#products span{
    font-size: 1rem;
}
button:hover{
    cursor: pointer;
}
.last-section{
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: space-between;
    margin-bottom: 80px;
}
.last-section-img-icons{
    /* width: 70px;
    height: 70px; */
    border: 10px solid grey;
    padding: 10px;
    background-color: black;
    margin-left: auto;
    margin-right: auto;
    border-radius: 100px;
}
.last-section-card{
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: center;
    h3{
        font-family: serif;
    }
    >p{
        font-family: monospace;
    }
}

@media (max-width: 416px){
    .footer-cards{
        flex-direction: column;
    }
    .footer-card{
        margin: 20px 0px 20px 0px;
        align-items: center;
    }
    .email-container{
        width: fit-content;
    }
}
@media (max-width: 469px) {
    #nav-links{
        top: 75px;
    }
}
@media (max-width:535px){
    .last-section{
        justify-content: center;
    }
}
@media (max-width: 530px){
    .footer-cards{
        flex-wrap: wrap;
    }
}
@media (max-width:520px){
    .navbar-nav h1{
        display: none;
    }
    .navbar-nav .nav-links{
        margin-left: 0px;
    }
}
/* A mobile view port */
@media screen and (max-width:530px){
    *{
        /* font-size: 12px; */
    }
    .navbar-nav h1 a{
        font-size: 20px;
    }
}
@media screen and (max-width: 570px) {
    .time{
        display: none;
    }
}
@media (max-width:637px){
    .card-iphone{
        width: 100%;
    }
}
@media (max-width:790px){
    #menubtn{
        display: flex;
        background-color: transparent;
        border: none;
    }
    #menubtn:active{
        background-color: transparent;
        border: 1px solid #808080;
    }

    .MainLinks-default{
        display: none;
    }
    .MainLinks-mobile{
        display: flex;
        position: fixed;
        flex-direction: column;
        top: 80px;
        left: 0;
        padding-top: 20px;
        background-color: #db2626a9;
        font-weight: 700;
        height: 100vh;
        gap: 20px;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        z-index: 1000;
        align-items: flex-start;
        justify-content: flex-start;
        >a{
            padding-inline: 20px;
            color: white;
        }
        >a:hover{
            color: #db2626a9;
        }
        hr{
            width:100%;
        }
    }
    .nav-links{
        align-items: center;
        margin-left: auto;
        margin-right: 10px;
    }
    .active {
        transform: translateX(0);
    }
}
@media screen and (max-width:846px) {
    .last-section{
        justify-content: center;
    }
    .last-section-card{
        margin: 10px;
    }
}
@media screen and (max-width: 852px) {
    .last-section{
        gap: 3px;
    }
    .boom-section-card{
        width: 90%;
    }
}