/* Google fonts */

@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');


*{
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
    scroll-behavior: smooth;
    scroll-padding-top: 2rem;
}

/* some variables */
:root{
    --main-color:#fda702;
    --second-color: #ebeff2;
    --text-color: #02171d;
    --bg-color: #fff;

    /* Box Shadow */
    --box-shadow: 2px 2px 10px 4px rgb(14 55 54 / 15%)
}
.btn{
    padding: 0.7rem 1.2rem;
    background: var(--main-color);
    color: var(--bg-color);
    font-weight: 500;
    display: inline-block;
    text-transform: uppercase;
    clip-path: polygon(100% 0, 93% 50%, 86% 99%, 0% 100%, 8% 47%, 13% 0%);
}

.btn:hover{
    background: var(--text-color) ;
    letter-spacing: 2px;
    transition: 0.2s;
}
img{
    width: 100%;
}

section{
    padding: 50px 100px;
}

header{
    position: fixed;
    width: 100%;
    top: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 100px;
    transition: 0.5s linear;
}

.logo{
    display: flex;
    align-items: center;
    font-size: 1rem;
    font-weight: 600;
    column-gap: 0.2rem;
    color: var(--text-color);
}

.logo .bx{
    font-size: 24px;
    color: var(--main-color);
}

.navbar {
    display: flex;
    column-gap: 2.4rem;
}

.navbar a{
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-color);
}

.navbar a:hover{
    color: var(--main-color);
}

.header-icons{
    font-size: 22px;
    cursor: pointer;
    z-index: 100000;
}

#menu-icon{
    display: none;
}

.search-box{
    position: absolute;
    top: 110%;
    right: -100%;

}

.search-box input{
    padding: 10px;
    border: none;
    outline: none;
    border-radius: 0.5rem;
    width: 280px;
    box-shadow: var(--box-shadow);
}

.search-box.active{
    right: 1rem;
    transition: 0.2s;
}

.cart {
    position: absolute;
    top: 110%;
    right: -100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 0.5rem;
    background: var(--bg-color);
    padding: 20px;
    border-radius: 0.5rem;
    box-shadow: var(--box-shadow);
}

.cart img{
    width: 100px;
}

.cart .box{
    display: flex;
    align-items: center;
    column-gap: 2rem;
}

.cart .box .text h3{
    font-size: 1rem;
}

.cart .box .bx{
    font-size: 24px;
}
.cart .box .bx:hover{
    color: var(--main-color);
}

.cart h2{
    font-size: 1.1rem;
    font-weight: 600;
}

.cart.active{
    right: 1rem;
    transition: 0.2s;
}

.user {
  position: absolute;
  top: 110%;
  right: -100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: 0.5rem;
  background: var(--bg-color);
  padding: 20px;
  border-radius: 0.5rem;
  box-shadow: var(--box-shadow);
  transition: 0.2s; /* add smooth animation */
}

.user h2 {
  font-size: 1.2rem;
  color: var(--text-color);   
}

.user input {
  border: none;
  outline: none;
  background: var(--second-color);
  padding: 10px;
  border-radius: 0.5rem;
  width: 100%;
}

.user .Login-btn {
  background: var(--main-color);
  color: var(--bg-color);
  font-size: 1rem;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  width: 100%;
}

.user .Login-btn:hover {
  background: var(--text-color);
}

.user p {
  font-size: 0.938rem;
}

.user a {
  text-decoration: underline;
  color: var(--main-color);
}

.user.active {
  right: 1rem;
  transition: 0.2s;
}


.home{
    width: 100%;
    min-height: 100vh;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
    align-items: center;
    gap: 1.5rem;
    background: var(--second-color);
}

.home-text span{
    font-weight: 600;
    text-transform: uppercase;
}

.home-text h1{
    font-size: 3.4rem;
    margin-bottom: 1rem;
}
.heading{
    text-align: center;
}

.heading h1{
    font-size: 1.7rem;
    font-weight: 600;
    text-transform: capitalize;
    color: var(--text-color);
}

.heading span{
    padding: 0.2rem 1.2rem;
    background: var(--main-color);
    color: var(--bg-color);
    font-weight: 500;
    display: inline-block;
    text-transform: uppercase;
    clip-path: polygon(100% 0, 93% 50%, 86% 99%, 0% 100%, 8% 47%, 13% 0%);

}
.new-arrival{
    margin-top: 2rem;
}

.new-arrival .box{
    position:relative;
    overflow: hidden;
    background-color: var(--second-color);
    height: 300px;
    border-radius: 0.5rem;
}

.new-arrival .box img{
    background: var(--second-color);
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.new-arrival .box .content{
    position: absolute;
    top: -100%;
    right: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: hsla(0, 0%, 91%, 0.5);
    overflow: hidden;
}


.new-arrival .box:hover .content{
    top: 0;
    transition: 0.2s;
}

.product-container{
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(240px, auto));
    gap: 1rem;
    margin-top: 2rem;
}

.product-container .box{
    position: relative;
    padding: 10px;
    box-shadow: var(--box-shadow)
}

.product-container .box .content .h2{
    font-size:1.2rem ;
    font-weight: 600;
}

.product-container .box .content .stars .bx{
    color: var(--main-color);
}

.product-container .box .bx-cart-alt{
   position: absolute;
   bottom: 0;
   right: 0;
   padding: 10px;
   background-color: var(--main-color);
   color: var(--bg-color);
}

.product-container .box .bx-cart-alt:hover{
    background-color: var(--text-color);

}

.product-container .box:hover img{
    -webkit-transform: scaleX(-1);
    transform: scaleX(-1);
    transition: 0.5s;
    
}

.review-container{
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(240px, auto));
    gap: 1rem;
    margin-top: 2rem;
}

.review-container .box{
    padding: 10px;
    border: 2px solid var(--text-color);
    border-radius: 0.5rem;
    text-align: center;
    box-sizing: var(--box-shadow);

}

.review-container .box img{
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 50%;
}

.review-container .box p{
    font-size: 0.938rem;
    font-style: italic;
    margin: 0.5rem 0.5rem;
}
.review-container .box h2{
   font-size: 1.2rem;
   font-weight: 600;
}

.review-container .box:hover{
    background-color: var(--text-color);
    color: var(--main-color);
}
/* Footer Styles */
.footer {
    background: var(--text-color);
    color: var(--bg-color);
    padding: 50px 100px 20px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-box h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--main-color);
}

.footer-box h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--bg-color);
}

.footer-box p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: #ccc;
}

.footer-box ul {
    list-style: none;
}

.footer-box ul li {
    margin-bottom: 0.5rem;
}

.footer-box ul li a {
    color: #ccc;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-box ul li a:hover {
    color: var(--main-color);
}

.social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--main-color);
    color: var(--bg-color);
    border-radius: 50%;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.social a:hover {
    background: var(--bg-color);
    color: var(--main-color);
    transform: translateY(-3px);
}

.payment-methods {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.payment-methods img {
    width: 50px;
    height: 30px;
    object-fit: contain;
    background: var(--bg-color);
    padding: 5px;
    border-radius: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #444;
    color: #ccc;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    section {
        padding: 50px 50px;
    }
    
    header {
        padding: 20px 50px;
    }
    
    .footer {
        padding: 50px 50px 20px;
    }
}

@media (max-width: 991px) {
    section {
        padding: 50px 20px;
    }
    
    header {
        padding: 20px 20px;
    }
    
    .footer {
        padding: 50px 20px 20px;
    }
    
    .home-text h1 {
        font-size: 2.5rem;
    }
    
    .product-container {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    #menu-icon {
        display: block;
    }
    
    .navbar {
        position: absolute;
        top: 100%;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--bg-color);
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 50px 20px;
        box-shadow: var(--box-shadow);
        transition: 0.5s;
    }
    
    .navbar.active {
        right: 0;
    }
    
    .navbar a {
        display: block;
        margin: 1rem 0;
        padding: 0.5rem;
        color: var(--text-color);
    }
    
    .home {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .home-text h1 {
        font-size: 2rem;
    }
    
    .product-container {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 0.5rem;
    }
    
    .review-container {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .payment-methods {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .home-text h1 {
        font-size: 1.8rem;
    }
    
    .heading h1 {
        font-size: 1.4rem;
    }
    
    .product-container {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .cart {
        width: 90%;
        right: 5%;
    }
    
    .user {
        width: 90%;
        right: 5%;
    }
    
    .search-box {
        width: 90%;
        right: 5%;
    }
    
    .search-box input {
        width: 100%;
    }
}

/* Header scroll effect */
header.sticky {
    background: var(--bg-color);
    box-shadow: var(--box-shadow);
}

/* Smooth animations */
* {
    transition: all 0.3s ease;
}

/* Improve mobile touch targets */
@media (max-width: 768px) {
    .header-icons i {
        padding: 10px;
        font-size: 24px;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}
/* Additional styles for full-stack features */

/* Notification styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 5px;
    color: white;
    font-weight: 500;
    z-index: 10000;
    animation: slideIn 0.3s ease;
}

.notification.success {
    background: #4CAF50;
}

.notification.error {
    background: #f44336;
}

.notification.warning {
    background: #ff9800;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Cart badge */
.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--main-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Quantity controls */
.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.quantity-controls button {
    background: var(--main-color);
    color: white;
    border: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-controls button:hover {
    background: var(--text-color);
}

/* User menu styles */
.user-menu {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.user-menu a {
    padding: 0.5rem 1rem;
    background: var(--second-color);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
}

.user-menu a:hover {
    background: var(--main-color);
    color: white;
}

/* Loading states */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--main-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Product hover effects */
.product-container .box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Enhanced button styles */
.btn-secondary {
    padding: 0.7rem 1.2rem;
    background: var(--second-color);
    color: var(--text-color);
    font-weight: 500;
    display: inline-block;
    text-transform: uppercase;
    border: 2px solid var(--main-color);
    border-radius: 5px;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: var(--main-color);
    color: white;
}

/* Form enhancements */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--main-color);
}

/* Error states */
.error {
    color: #f44336;
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: #f44336;
}

/* Success states */
.success {
    color: #4CAF50;
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: var(--bg-color);
    margin: 5% auto;
    padding: 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
}

.modal-close:hover {
    color: var(--main-color);
}

/* Responsive enhancements */
@media (max-width: 480px) {
    .notification {
        right: 10px;
        left: 10px;
        width: auto;
    }
    
    .modal-content {
        margin: 10% auto;
        padding: 1.5rem;
    }
}
/* Tech Stack Section */
.tech-stack {
    padding: 50px 100px;
    background: var(--second-color);
}

.tech-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.tech-item {
    background: var(--bg-color);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}

.tech-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border-color: var(--main-color);
}

.tech-icon {
    margin-bottom: 1rem;
}

.tech-icon i {
    font-size: 4rem;
    transition: transform 0.3s ease;
}

.tech-item:hover .tech-icon i {
    transform: scale(1.1);
}

.tech-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    font-weight: 600;
}

.tech-item p {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
}

/* Tech Stack Responsive */
@media (max-width: 768px) {
    .tech-stack {
        padding: 50px 20px;
    }
    
    .tech-container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .tech-item {
        padding: 1.5rem;
    }
    
    .tech-icon i {
        font-size: 3rem;
    }
    
    .tech-item h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .tech-container {
        grid-template-columns: 1fr;
    }
    
    .tech-item {
        padding: 1.5rem 1rem;
    }
}

/* Tech Stack Animation */
.tech-item {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.tech-item:nth-child(1) { animation-delay: 0.1s; }
.tech-item:nth-child(2) { animation-delay: 0.2s; }
.tech-item:nth-child(3) { animation-delay: 0.3s; }
.tech-item:nth-child(4) { animation-delay: 0.4s; }
.tech-item:nth-child(5) { animation-delay: 0.5s; }
.tech-item:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}