*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: sans-serif;
}

body{
    --bg-color: #ffffff;
    --text-color: #000000;
    --text-color-2: #fafafa;
    --text-secondary-color: #79797a;
    --footer-bg: #fafafa;
}

@media (prefers-color-scheme: dark) {
    body{
        --bg-color: #121212;
        --text-color: #ffffff;
        --text-color-2: #ffffff;
        --text-secondary-color: #d7d6d6;
        --footer-bg:#121212;
    }
}

body{
    background-color: var(--bg-color);
    color: var(--text-color);
}
html, body{
    scroll-behavior: smooth;
}

nav{
    max-width: 1100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 15px;
    margin: auto;
    background-color: rgb(3,3,33);
    /* z-index: 9; */
    position: relative;
}

.nav-logo{
    font-size: 1.5rem;
    color: var(--text-color-2);
    font-weight: 600;
}

.nav-menu{
    display: flex;
    align-items: center;
    justify-content: end;
    width: 100%;
    gap: 10px;
    list-style: none;
    transition: 0.5s ease;
    position: absolute;
    left: 0;
    z-index: 1;
    padding: 1rem;
}

.menu-list-toggle-container{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3px;
}

.menu-icon{
    font-size: 1.75rem;
    cursor: pointer;
    color: #fff;
}



.menu-icon, #menu-toggle{
    display: none;
}

.nav-menu li a{
    position: relative;
    color: var(--text-color-2);
    text-decoration: none;
    font-size: large;
    transition: color 0.3s ease;
}

.nav-menu li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--text-secondary-color);
    transition: width 0.3s ease;
  }

.nav-menu li a:hover{
    color: var(--text-secondary-color);
}
.nav-menu li a:hover::after{
    color: var(--text-secondary-color);
    width: 100%;
}

/* Hero Section */

.hero-section{
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1100px;
    height: 400px;
    background-image: url(../images/tech.jpg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    margin: auto;
}

.hero-text-container{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    width: 450px;
    height: 280px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    background-color: rgba(255, 255, 255, 0.103);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-text-container h1{
    font-size: 2.7rem;
    color: var(--text-color-2);
}

/* Products Section */
.products{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px auto 0;
}

/* Products Section */
.products2{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    /* margin-top: 10px; */
    margin: 20px auto 0;
}
/* Card */

.product-card-1{
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 3px;
    align-items: center;
    border-radius: 10px;
    width: 200px;
    height: 320px;
    padding: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.prod-image{
    width: 180px;
    border-radius: 10px;
}

.prod-details{
    width: 100%;
    margin-top: 10px;
    padding: 0 5px;
}

.add-to-cart{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.remove{
    width: 30px;
    font-size: 1.25rem;
    outline: none;
    border: none;
    border-radius: 4px;
}

.add{
    width: 30px;
    font-size: 1.25rem;
    outline: none;
    border: none;
    border-radius: 4px;
}

.add-to-cart input{
    outline: none;
    width: 100px;
    text-align: center;
    border: none;
}


/* Card 2 */

.product-card-2{
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 3px;
    align-items: center;
    border-radius: 10px;
    width: 200px;
    height: 320px;
    padding: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
}


/* Footer */

footer{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    background-color: rgb(3,3,33);
    padding: 0 20px;
    max-width: 1100px;
    margin: 20px auto 0;
}

footer h2, .copy-write{
    color: var(--text-color-2);
}

.brand-site-map{
    width: 100%;
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.site-menu ul{
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.site-menu h4{
    font-weight: 500;
    color: var(--text-color-2);
}

.menu-item{
    text-decoration: none; 
    color: var(--text-secondary-color);
    font-size: medium;
}

.copy-write{
    margin-top: 10px;
    margin-bottom: 5px;
    text-align: center;
    font-weight: 200;
    font-size: 0.75rem;
}


.pages{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: 20px auto;
}

.page-card{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 150px;
    height: 80px;
    padding: 4px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-card a{
    text-decoration: none;
    color: var(--text-color);
}


@media (max-width : 468px){
    .nav-menu{
        display: none;
        flex-direction: column;
        align-items: center;
        width: 100%;
        position: absolute;
        top: 60px;
        transition: 0.5s ease;
        background-color: rgba(0, 0, 0, 0.2);
    }
    .menu-icon{
        display: block;
    }

    #menu-toggle:checked ~ .nav-menu{
        display: flex;
    }
    .hero-text-container{
        width: 330px;
        height: 280px;
    }

    .hero-text-container h1{
        font-size: 2.2rem;
    }

    .product-card-2{
        flex-direction: row;
        width: 320px;
        height: 180px;
    }


    .product-card-2 img{
        width: 130px;
    }

    .product-card-2 .add-to-cart{
        width: 80%;
    }


    .product-card-2 .remove{
        width: 30px;
        font-size: 1.25rem;
        padding: 0 5px;
    }
    
    .product-card-2 .add{
        width: 30px;
        font-size: 1.25rem;
        padding: 0 5px;
        
    }
    
    .product-card-2 .add-to-cart input{
        width: 60px;
    }
}