/* Electronics Digital Shop */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
  background-attachment: fixed;
  color: #e4e4e7;
  /* overflow-x: hidden; */
  font-family: 'quicksand';
  padding-top: 5rem;
}



/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100dvw;
    padding: 1rem 2rem;
    background: rgb(15, 15, 35);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 99;
    transition: all 0.3s ease;
    height: 5rem;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;

}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(45deg, #8b5cf6, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-left: 0rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: #e4e4e7;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: #8b5cf6;
    transform: translateY(-2px);
}

.nav-links a.active {
    color: #8b5cf6;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(45deg, #8b5cf6, #06b6d4);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.sidebar {
    display: none;

}

.cart-sidebar {
    display: none;
}


.cart {
    color: white;
    background-color: transparent;
    border: none;
    outline: none;
    font-size: 1rem;
    position: relative;

    i {
        margin-left: 0.5rem;
    }

    .cart-count {
        background-color: white;
        height: 1rem;
        width: 1rem;
        border-radius: 50%;
        position: absolute;
        top: -40%;
        right: -30%;
        color: black;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 0.8rem;
        font-weight: 700;
    }
}

.mobile-menu-btn {
    display: none;
}

.search-cont {
    position: fixed;
    z-index: 99;
    top: 5rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    width: 100%;
    justify-content: center;
    align-items: center;
    background: rgb(15, 15, 35);

    

    

}

.suggestion {
    width: 70%;
    position: absolute;
    z-index: 9999;
    top: 4rem;
    background-color: gray;
    border-radius: 0.4rem;

}

.highlight {
    background-color: rgb(144, 238, 255);
    color: black;
    border-radius: 0.4rem;
}


.search {
    height: 2rem;
    width: 70%;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-right: 0.5rem;
    border: none;
    outline: none;
    background-color: rgb(223, 223, 223);
    color: black;
    font-weight: 500;
    font-size: 1rem;
    font-family: quicksand;
    
}

.search:hover, .search:active {
    background-color: rgb(255, 255, 255);
}



/* Page Container */
.page {
    display: block;
    min-height: 100vh;
    /* padding-top */
}

.page.active {
    display: block;
}

/* Home Page */
.hero {
    display: flex;
    align-items: center;
    min-height: 90vh;
    padding: 0 2rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, #ffffff, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #a1a1aa;
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(45deg, #8b5cf6, #06b6d4);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.5);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.product-showcase {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(6, 182, 212, 0.2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: float 6s ease-in-out infinite;

    img {
        animation: rotate 20s linear infinite;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

.product-showcase::before {
    content: '';
    font-size: 8rem;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Features Section */
.features {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    background: linear-gradient(45deg, #ffffff, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.2);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: #8b5cf6;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* Products Page */
.products-header {
    text-align: center;
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.products-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #ffffff, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.3);
}

.product-image {
    height: 200px;
    background: linear-gradient(135deg, #8b5cf6, #06b6d4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    position: relative;
    overflow: hidden;
}

.product-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s;
}

.product-card:hover .product-image::before {
    opacity: 0;
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    color: #ffffff;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.product-price {
    color: #8b5cf6;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.product-description {
    color: #a1a1aa;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.buy-button {
    width: 100%;
    padding: 0.8rem;
    background: linear-gradient(45deg, #8b5cf6, #06b6d4);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.buy-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(139, 92, 246, 0.4);
}

/* Contact Page */
.contact-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.contact-container h1 {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 2rem;
    background: linear-gradient(45deg, #ffffff, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-form {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #8b5cf6;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

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

.submit-button {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(45deg, #8b5cf6, #06b6d4);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
}

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

.contact-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(139, 92, 246, 0.2);
}

.contact-card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.contact-card h3 {
    color: #8b5cf6;
    margin-bottom: 1rem;
}

.showCart {
    display: flex;
    position: fixed;
    flex-direction: column;
    top: 9rem;
    right: 0%;
    background-color: rgb(255, 255, 255);
    width: 20rem;
    height: calc(100dvh - 9rem);
    padding: 2rem;
    color: black;
    z-index: 99999;
    overflow-y: auto;
    scroll-behavior: smooth;
    padding-bottom: 2rem;
    pointer-events: auto; 
    /* scroll-padding-bottom: calc(100vh - 8%); */
    animation: slideCart 0.5s ease-in-out;
    li {
        list-style-type: none;
        margin-bottom: 1rem;

        a {
            text-decoration: none;
            font-size: 1rem;
        }
    }
}
@keyframes slideCart{
    from{
        transform: translateX(100%);
    }
    to{
        transform: translateX(0);
    }
}
.ckclr-btn {
    color: white;
    background-color: #00185bd4;
    width: 80%;
    margin-top: 1.2rem;
    height: 1.7rem;
    border: none;
    outline: none;
    border-radius: 0.3rem;
    font-weight: 549;

}

.ckclr-btn:hover {
    background-color: #001c68;
}

.img {
    max-width: 100%;
    height: auto;
}


/* Responsive Design */
@media (max-width: 930px) {

    .search-cont {
        display: flex;
        flex-direction: column;
    }

    .suggestion {
        position: absolute;
        z-index: 9999;
        /* top: 88%; */

    }
    .search-cont{
        margin-bottom: 1rem;
    }
    .search {
        font-size: 1rem;
    }

    .search:hover {
        background-color: rgb(255, 255, 255);
    }

    .show {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 10.6%;
        right: 0%;
        background-color: rgb(255, 255, 255);
        width: 20rem;
        height: 100vh;
        padding: 2rem;
        padding-top: 1.2rem;
        padding-right: 0rem;
        color: black;

        li {
            list-style-type: none;
            margin-bottom: 3rem;

            a {
                text-decoration: none;
                font-size: 1rem;
                font-weight: 600;
                color: #a9ffff;
            }

            a:active {
                color: #00959a;
            }
        }
    }

    .action {
        display: flex;
        gap: 20px;

    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        margin-left: 2rem;
        display: flex;
        background-color: transparent;
        color: white;
        font-size: 1.5rem;
        outline: none;
        border: none;
    }

    /* .search{
                display: none;
            } */

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

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

    .product-showcase {
        width: 300px;
        height: 300px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 500px) {
    .search{
        width: 90% !important;
        font-size: 0.7rem !important;
        
    }
}

@media (max-width: 600px) {
    .logo {
        font-size: 1.2rem;
    }
    .search-cont{
        margin-bottom: 1rem;
    }
   

    .action {
        gap: 0px;
    }

    nav {
        padding: 1rem;
    }
    .show{
        top: 9.5%;
    }
    .hero {
        padding: 0 1rem;
    }

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

    .features {
        padding: 3rem 1rem;
    }

    .products-grid {
        padding: 1rem;
    }

    .contact-container {
        padding: 2rem 1rem;
    }
}

@media (max-width: 426px) {
    .nav1{
        padding-bottom: 0px !important;
        height: 3.7rem;
    }
    .search-cont{
        top: 3.7rem;
        
    }
    .search{
        width: 90%;
    }
    .suggestion{
        top: 4rem;
        width: 90%;
    }
    .showCart{
        top: 7.7rem;
    }
    .logo {
        font-size: 0.9rem;
    }

    .cart {
        font-size: 0.7rem;
    }
    .show{
        top: 9%;
    
    }
    

    .mobile-menu-btn {
        margin-left: 0;
        font-size: 1rem;
    }

    .action {
        gap: 20px;
    }
    .products-header{
        h1{
            font-size: 2rem;
        }
    }
    
    .regb:hover{
    
        background-color: #06b6d4;


    }
    
    
   
}