@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
body{
    margin: 0;
    background-color: #F4F4F4;
    font-family: Poppins;
}
:root{
    --item1-transform: translateX(-100%) translateY(-5%) scale(1.5);
    --item1-filter: blur(30px);
    --item1-zIndex: 11;
    --item1-opacity: 0;

    --item2-transform: translateX(0);
    --item2-filter: blur(0px);
    --item2-zIndex: 10;
    --item2-opacity: 1;

    --item3-transform: translate(50%,10%) scale(0.8);
    --item3-filter: blur(10px);
    --item3-zIndex: 9;
    --item3-opacity: 1;

    --item4-transform: translate(90%,20%) scale(0.5);
    --item4-filter: blur(30px);
    --item4-zIndex: 8;
    --item4-opacity: 1;
    
    --item5-transform: translate(120%,30%) scale(0.3);
    --item5-filter: blur(40px);
    --item5-zIndex: 7;
    --item5-opacity: 0;
}
header{
    width: 1140px;
    max-width: 90%;
    display: flex;
    justify-content: space-between;
    margin: auto;
    height: 50px;
    align-items: center;
    
}
header .logo{
    font-weight: bold;
}
header nav a{
    margin-left: 30px;
    text-decoration: none;
    color: #555;
    font-weight: 500;
}

header {
    position: relative;
    z-index: 10; /* make sure it's above the carousel */
}

/* carousel */
.carousel{
    position: relative;
    height: 800px;
    overflow: hidden;
    margin-top: -50px;
}
.carousel .list{
    position: absolute;
    width: 1140px;
    max-width: 90%;
    height: 80%;
    left: 50%;
    transform: translateX(-50%);
}
.carousel .list .item{
    position: absolute;
    left: 0%;
    width: 70%;
    height: 100%;
    font-size: 15px;
    transition: left 0.5s, opacity 0.5s, width 0.5s;
}
.carousel .list .item:nth-child(n + 6){
    
    opacity: 0;
}
.carousel .list .item:nth-child(2){
    z-index: 10;
    transform: translateX(0);
}
.carousel .list .item img{
    
    width: 50%;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: right 1.5s;
}

.carousel .list .item .introduce{
    opacity: 0;
    pointer-events: none;
}
.carousel .list .item:nth-child(2) .introduce{
    opacity: 1;
    pointer-events: auto;
    width: 400px;
    position: absolute;
    top: 50%;
    transform:  translateY(-50%);
    transition: opacity 0.5s;
}
.carousel .list .item .introduce .title{
    font-size: 2em;
    font-weight: 500;
    line-height: 1em;
}
.carousel .list .item .introduce .topic{
    font-size: 4em;
    font-weight: 500;
}
.carousel .list .item .introduce .des{
    font-size: small;
    color: #5559;
}
.carousel .list .item .introduce .seeMore{
    font-family: Poppins;
    margin-top: 1.2em;
    padding: 5px 0;
    border: none;
    border-bottom: 1px solid #555;
    background-color: transparent;
    font-weight: bold;
    letter-spacing: 3px;
    transition: background 0.5s;
}
.carousel .list .item .introduce .seeMore:hover{
    background: #eee;
}
.carousel .list .item:nth-child(1){
    transform: var(--item1-transform);
    filter: var(--item1-filter);
    z-index: var(--item1-zIndex);
    opacity: var(--item1-opacity);
    pointer-events: none;
}
.carousel .list .item:nth-child(3){
    transform: var(--item3-transform);
    filter: var(--item3-filter);
    z-index: var(--item3-zIndex);
}
.carousel .list .item:nth-child(4){
    transform: var(--item4-transform);
    filter: var(--item4-filter);
    z-index: var(--item4-zIndex);
}
.carousel .list .item:nth-child(5){
    transform: var(--item5-transform);
    filter: var(--item5-filter);
    opacity: var(--item5-opacity);
    pointer-events: none;
}
/* animation text in item2 */
.carousel .list .item:nth-child(2) .introduce .title,
.carousel .list .item:nth-child(2) .introduce .topic,
.carousel .list .item:nth-child(2) .introduce .des,
.carousel .list .item:nth-child(2) .introduce .seeMore{
    opacity: 0;
    animation: showContent 0.5s 1s ease-in-out 1 forwards;
}
@keyframes showContent{
    from{
        transform: translateY(-30px);
        filter: blur(10px);
    }to{
        transform: translateY(0);
        opacity: 1;
        filter: blur(0px);
    }
}
.carousel .list .item:nth-child(2) .introduce .topic{
    animation-delay: 1.2s;
}
.carousel .list .item:nth-child(2) .introduce .des{
    animation-delay: 1.4s;
}
.carousel .list .item:nth-child(2) .introduce .seeMore{
    animation-delay: 1.6s;
}
/* next click */
.carousel.next .item:nth-child(1){
    animation: transformFromPosition2 0.5s ease-in-out 1 forwards;
}
@keyframes transformFromPosition2{
    from{
        transform: var(--item2-transform);
        filter: var(--item2-filter);
        opacity: var(--item2-opacity);
    }
}
.carousel.next .item:nth-child(2){
    animation: transformFromPosition3 0.7s ease-in-out 1 forwards;
}
@keyframes transformFromPosition3{
    from{
        transform: var(--item3-transform);
        filter: var(--item3-filter);
        opacity: var(--item3-opacity);
    }
}
.carousel.next .item:nth-child(3){
    animation: transformFromPosition4 0.9s ease-in-out 1 forwards;
}
@keyframes transformFromPosition4{
    from{
        transform: var(--item4-transform);
        filter: var(--item4-filter);
        opacity: var(--item4-opacity);
    }
}
.carousel.next .item:nth-child(4){
    animation: transformFromPosition5 1.1s ease-in-out 1 forwards;
}
@keyframes transformFromPosition5{
    from{
        transform: var(--item5-transform);
        filter: var(--item5-filter);
        opacity: var(--item5-opacity);
    }
}
/* previous */
.carousel.prev .list .item:nth-child(5){
    animation: transformFromPosition4 0.5s ease-in-out 1 forwards;
}
.carousel.prev .list .item:nth-child(4){
    animation: transformFromPosition3 0.7s ease-in-out 1 forwards;
}
.carousel.prev .list .item:nth-child(3){
    animation: transformFromPosition2 0.9s ease-in-out 1 forwards;
}
.carousel.prev .list .item:nth-child(2){
    animation: transformFromPosition1 1.1s ease-in-out 1 forwards;
}
@keyframes transformFromPosition1{
    from{
        transform: var(--item1-transform);
        filter: var(--item1-filter);
        opacity: var(--item1-opacity);        
    }
}

/* detail  */
.carousel .list .item .detail{
    opacity: 0;
    pointer-events: none;
}
/* showDetail */
.carousel.showDetail .list .item:nth-child(3),
.carousel.showDetail .list .item:nth-child(4){
    left: 100%;
    opacity: 0;
    pointer-events: none;
}
.carousel.showDetail .list .item:nth-child(2){
    width: 100%;
}
.carousel.showDetail .list .item:nth-child(2) .introduce{
    opacity: 0;
    pointer-events: none;
}
.carousel.showDetail .list .item:nth-child(2) img{
    right: 50%;
}
.carousel.showDetail .list .item:nth-child(2) .detail{
    opacity: 1;
    width: 50%;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    text-align: right;
    pointer-events: auto;
}
.carousel.showDetail .list .item:nth-child(2) .detail .title{
    font-size: 4em;
}
.carousel.showDetail .list .item:nth-child(2) .detail .specifications{
    display: flex;
    gap: 10px;
    width: 100%;
    border-top: 1px solid #5553;
    margin-top: 20px;
}
.carousel.showDetail .list .item:nth-child(2) .detail .specifications div{
    width: 110px;
    text-align: center;
    flex-shrink: 0;
}
.carousel.showDetail .list .item:nth-child(2) .detail .specifications div p:nth-child(1){
    font-weight: bold;
}

.carousel.showDetail .list .item:nth-child(2) .detail  .title,
.carousel.showDetail .list .item:nth-child(2) .detail  .des,
.carousel.showDetail .list .item:nth-child(2) .detail .specifications,
.carousel.showDetail .list .item:nth-child(2) .detail .checkout{
    opacity: 0;
    animation: showContent 0.5s 1s ease-in-out 1 forwards;
}
.carousel.showDetail .list .item:nth-child(2) .detail  .des{
    animation-delay: 1.2s;
}
.carousel.showDetail .list .item:nth-child(2) .detail .specifications{
    animation-delay: 1.4s;
}
.carousel.showDetail .list .item:nth-child(2) .detail .checkout{
    animation-delay: 1.6s;
}
.arrows{
    position: fixed;
    bottom: 10px;
    width: 1140px;
    max-width: 90%;
    display: flex;
    justify-content: space-between;
    left: 50%;
    transform: translateX(-50%);
}
#prev,
#next{
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-family: monospace;
    border: 1px solid #5555;
    font-size: large;
    bottom: 20%;
    left: 10%;
}
#next{
    left: unset;
    right: 10%;
}
#back{
    position: absolute;
    z-index: 100;
    bottom: 0%;
    left: 50%;
    transform: translateX(-50%);
    border: none;
    border-bottom: 1px solid #555;
    font-family: Poppins;
    font-weight: bold;
    letter-spacing: 3px;
    background-color: transparent;
    padding: 10px;
    /* opacity: 0; */
    transition: opacity 0.5s;
}
.carousel.showDetail #back{
    opacity: 1;
}
.carousel.showDetail #prev,
.carousel.showDetail #next{
    opacity: 0;
    pointer-events: none;
}
.carousel::before{
    width: 500px;
    height: 300px;
    content: '';
     background-image: linear-gradient(70deg, #DC422A, blue);
    position: absolute;
    z-index: -1;
    border-radius: 20% 30% 80% 10%;
    filter: blur(150px);
    top: 50%;
    left: 50%;
    transform: translate(-10%, -50%);
    transition: 1s;
}
.carousel.showDetail::before{
    transform: translate(-100%, -50%) rotate(90deg);
    filter: blur(130px);
}
@media screen and (max-width: 991px){
    /* ipad, tablets */
    .carousel .list .item{
        width: 90%;
    }
    .carousel.showDetail .list .item:nth-child(2) .detail .specifications{
        overflow: auto;
    }
    .carousel.showDetail .list .item:nth-child(2) .detail .title{
        font-size: 2em;
    }
}


html, body {
    overflow: hidden; /* This prevents scrolling */
    height: 100%; /* Ensure the body takes full viewport height */
    margin: 0; /* Remove default margin */
    padding: 0; /* Remove default padding */
}

@media screen and (max-width: 767px) {
    /* Mobile styles */
    
    .carousel .list .item {
        display: flex;
        flex-direction: column;
        height: 100%;
    }
    
    .carousel .list .item img {
        position: relative;
        width: 80% !important;
        margin: 20px auto 0;
        top: 0;
        right: 0;
        transform: none;
    }
    
    .carousel .list .item .introduce {
        width: 90% !important;
        margin: 0 auto;
        position: static;
        transform: none;
        padding: 20px;
    }
    
    .carousel .list .item .introduce .topic {
        font-size: 2.5em;
    }
    
    /* For detail view */
    .carousel.showDetail .list .item:nth-child(2) img {
        position: relative;
        width: 80% !important;
        margin: 20px auto 0;
        right: 0;
    }
    
    .carousel.showDetail .list .item:nth-child(2) .detail {
        width: 90% !important;
        position: static;
        transform: none;
        text-align: center;
        padding: 20px;
        margin: 0 auto;
    }
    
    .carousel.showDetail .list .item:nth-child(2) .detail .specifications {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .carousel.showDetail .list .item:nth-child(2) .detail .checkout {
        justify-content: center;
    }

    .carousel.showDetail .list .item:nth-child(2) .detail .des {
    max-height: 300px; /* Adjust height as needed */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}

.carousel.showDetail .list .item:nth-child(2) .detail .des::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}

}



/* Dark/Light Mode */
body.dark-mode {
    background-color: #121212;
    color: #ffffff;
}

body.dark-mode .carousel .list .item .introduce,
body.dark-mode .carousel .list .item .detail {
    color: #ffffff;
}

body.dark-mode header nav a {
    color: #bbbbbb;
}

body.dark-mode .carousel .list .item .introduce .des,
body.dark-mode .carousel .list .item .detail .des {
    color: #ffffff99;
}

body.dark-mode .carousel::before {
    background-image: linear-gradient(70deg, #ff6b6b, #4ecdc4);
}

body.dark-mode .seeMore  {
    color: white;
}
body.dark-mode #back {
    color: #ffffff;
    border-bottom: 1px solid #ffffff;
}



/* Mobile view updates */
@media screen and (max-width: 767px) {
    .carousel .list .item {
        flex-direction: column;
    }
    
    .carousel .list .item img {
        width: 70% !important;
        margin: 50px auto 0;
    }
    
    .carousel .list .item .introduce {
        width: 90% !important;
        margin-top: 60%;
        padding-bottom: 100px;
    }
    
        .carousel.showDetail .list .item:nth-child(2) .detail {
                max-height:40vh;
    overflow-y:scroll; 
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
        transform: none;
        z-index: 100;
    }
    
    #prev, #next {
        bottom: 20px;
        top: auto;
        transform: none;
    }
    
    #prev {
        left: 10%;
    }
    
    #next {
        right: 10%;
    }
}



/* Contact Form Styles */
.contact-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.contact-container.active {
    opacity: 1;
    pointer-events: all;
}

.contact-form {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    position: relative;
    transform: translateY(-50px);
    transition: transform 0.3s ease;
}

.contact-container.active .contact-form {
    transform: translateY(0);
}

.close-contact {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
}

.form-group {
    position: relative;
    margin-bottom: 25px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group label {
    position: absolute;
    top: 10px;
    left: 10px;
    color: #999;
    transition: all 0.3s ease;
    pointer-events: none;
    background-color: #fff;
    padding: 0 5px;
}

.form-group input:focus + label,
.form-group input:valid + label,
.form-group textarea:focus + label,
.form-group textarea:valid + label {
    top: -10px;
    font-size: 12px;
    color: #693EFF;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #693EFF;
    outline: none;
}

.contact-form button {
    background-color: #693EFF;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.contact-form button:hover {
    background-color: #5a34d9;
}

/* Item-specific background colors */
.carousel .list .item:nth-child(1)::before {
    background-image: linear-gradient(70deg, #DC422A, #FF6B6B);
}
.carousel .list .item:nth-child(2)::before {
    background-image: linear-gradient(70deg, #4ECDC4, #45B7D1);
}
.carousel .list .item:nth-child(3)::before {
    background-image: linear-gradient(70deg, #FFBE0B, #FF9E00);
}
.carousel .list .item:nth-child(4)::before {
    background-image: linear-gradient(70deg, #8338EC, #693EFF);
}
.carousel .list .item:nth-child(5)::before {
    background-image: linear-gradient(70deg, #3A86FF, #00B4D8);
}
.carousel .list .item:nth-child(6)::before {
    background-image: linear-gradient(70deg, #FF006E, #FF5E78);
}

/* Dark mode adjustments for contact form */
body.dark-mode .contact-form {
    background-color: #2d2d2d;
    color: #fff;
}

body.dark-mode .form-group input,
body.dark-mode .form-group textarea {
    background-color: #1e1e1e;
    border-color: #444;
    color: #fff;
}

body.dark-mode .form-group label {
    background-color: #2d2d2d;
    color: #aaa;
}

body.dark-mode .form-group input:focus + label,
body.dark-mode .form-group input:valid + label,
body.dark-mode .form-group textarea:focus + label,
body.dark-mode .form-group textarea:valid + label {
    color: #9d7aff;
}

body.dark-mode .close-contact {
    color: #fff;
}


  .logo-light {
    display: block;
  }

  .logo-dark {
    display: none;
  }

  @media (prefers-color-scheme: dark) {
    .logo-light {
      display: none;
    }

    .logo-dark {
      display: block;
    }
  }


  /* Mobile view updates */
@media screen and (max-width: 767px) {
    .carousel .list .item {
        flex-direction: column;
    }
    
    .carousel .list .item img {
        width: 70% !important;
        margin: 50px auto 0;
    }
    
    .carousel .list .item .introduce {
        width: 90% !important;
        margin-top: 60%;
        padding-bottom: 100px;
    }
    
        .carousel.showDetail .list .item:nth-child(2) .detail {
        position: fixed;
        
        overflow-y: auto;
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
        transform: none;
        z-index: 100;
    }
    
    #prev, #next {
        bottom: 20px;
        top: auto;
        transform: none;
    }
    
    #prev {
        left: 10%;
    }
    
    #next {
        right: 10%;
    }
}


/* Intro Logo Animation */
.intro-logo {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #F4F4F4;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

.intro-logo img {
    width: 200px;
    height: 200px;
    animation: popIn 1.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

body.dark-mode .intro-logo {
    background-color: #121212;
}

@keyframes popIn {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
    70% {
        transform: scale(0.95);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Hide after animation */
.intro-logo.hide {
    opacity: 0;
    pointer-events: none;
}

.checkout {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 10px;
  margin-bottom: 10px;
}

.checkout a button {
  background-color: #000000;
  color: #ffffff;
  border: 1px solid #333333;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.checkout a button:hover {
  background-color: #333333;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.checkout a button:active {
  transform: scale(0.97);
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .checkout a button {
    background-color: #222222;
    color: #ffffff;
    border-color: #444444;
  }

  .checkout a button:hover {
    background-color: #333333;
  }
}

body.dark-mode .checkout a button {
  background-color: #000000;
  color: #ffffff;
  border-color: #000000;
}

body.dark-mode .checkout a button:hover {
  background-color: #ffffff;
  color: #000000;
}


@media screen and (max-width: 767px) {
    .carousel.showDetail .list .item:nth-child(2) .detail .des {
        max-height: 40vh; /* or any scrollable height */
        overflow-y: scroll;
        padding-right: 10px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
    }

    .carousel.showDetail .list .item:nth-child(2) .detail .des::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }
}




:root {
  --modal-bg: rgba(0, 0, 0, 0.7);
  --container-bg: #ffffff;
  --container-border: #e0e0e0;
  --text-primary: #222222;
  --text-secondary: #555555;
  --close-btn: #333333;
  --profile-border: #000000;
  --link-color: #333333;
  --link-hover: #000000;
  --shadow-color: rgba(0, 0, 0, 0.15);
}

/* Base Modal Styles */
.info-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--modal-bg);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.info-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.info-container {
  background: var(--container-bg);
  padding: 30px;
  border-radius: 12px;
  width: 90%;
  max-width: 700px;
  position: relative;
  text-align: center;
  border: 1px solid var(--container-border);
  box-shadow: 0 4px 20px var(--shadow-color);
}

.close-info {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 24px;
  cursor: pointer;
  color: var(--close-btn);
  transition: color 0.2s ease;
}

.close-info:hover {
  color: var(--link-hover);
}

.info-grid {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.profile {
  flex: 1;
  min-width: 280px;
  text-align: center;
  padding: 15px;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

.profile img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--profile-border);
}

.profile h3 {
  margin-bottom: 5px;
  color: var(--text-primary);
}

.profile p {
  margin: 2px 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.profile a {
  display: inline-block;
  margin-top: 8px;
  color: var(--link-color);
  font-weight: bold;
  text-decoration: none;
  border-bottom: 1px solid var(--link-color);
  padding-bottom: 2px;
  transition: all 0.2s ease;
}

.profile a:hover {
  color: var(--link-hover);
  border-bottom-color: var(--link-hover);
}

/* Dark Mode Styles */
body.dark-mode {
  --modal-bg: rgba(0, 0, 0, 0.85);
  --container-bg: #101010;
  --container-border: #333333;
  --text-primary: #f1f1f1;
  --text-secondary: #bbbbbb;
  --close-btn: #cccccc;
  --profile-border: #444444;
  --link-color: #dddddd;
  --link-hover: #ffffff;
  --shadow-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .profile {
  background-color: #101010;
}

/* System Preference Dark Mode */
@media (prefers-color-scheme: dark) {
  :root:not(.light-mode) {
    --modal-bg: rgba(0, 0, 0, 0.85);
    --container-bg: #101010;
    --container-border: #1e1e1e;
    --text-primary: #f1f1f1;
    --text-secondary: #bbbbbb;
    --close-btn: #cccccc;
    --profile-border: #444444;
    --link-color: #dddddd;
    --link-hover: #ffffff;
    --shadow-color: rgba(255, 255, 255, 0.1);
  }
  
  :root:not(.light-mode) .profile {
    background-color: #2a2a2a;
  }
}

