* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    color: #333;
}


/* Search-bar dropdown */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: flex-start;
    padding-top: 80px;
    z-index: 2000;
}

.search-overlay.active {
    display: flex;
}

.search-container {
    background: white;
    width: 100%;
    max-width: 600px;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.search-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.search-header h2 {
    font-size: 24px;
    font-weight: 500;
    color: #111827;
}

.close-search {
    background: none;
    border: none;
    font-size: 20px;
    color: #6B7280;
    cursor: pointer;
    padding: 4px;
}

.search-form {
    position: relative;
    margin-bottom: 20px;
}

.search-form input {
    width: 100%;
    padding: 12px 16px;
    padding-right: 48px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s;
}

.search-form input:focus {
    border-color: #6c5ce7;
}

.search-submit {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6B7280;
    cursor: pointer;
    padding: 4px;
}



/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background-color: #fff;
    border-bottom: 1px solid rgb(192, 192, 192);
}

.logo {
    display: flex;
    align-items: center;
    width: 20%;
}

.logo img {
    width: 60%;
    margin-left: 0.5rem;
}

.navbar .nav2 {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.search-button {
    border-radius: 8px;
    border: none;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    font-size: 20px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.navbar.scrolled .search-button {
    background-color: white;
    color: #000;
    border: 1px solid rgb(192, 192, 192);
}

.navbar a {
    text-decoration: none;
    color: black;
    font-weight: bold;
}

.user-info {
    display: flex;
    align-items: center;
    border-radius: 10px;
    font-size: 13px;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 0.6rem 0.75rem;
}

.navbar.scrolled .user-info {
    border: 1px solid gray;
}

.user-info .user-name {
    font-size: 15px;
    font-weight: 400;
    color: white;
    margin-left: 0.5rem;
    transition: color 0.3s ease;
}

.navbar.scrolled .user-name {
    color: #000;
}

.user-info img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    /* margin-right: 0.5rem; */
}



.hero{
    background-size: contain;
    background-size: 40%;
    background-position: top;
    background-image: linear-gradient(to top, 
    rgb(255, 255, 255), 
    rgba(255, 255, 255, 0.1), 
    rgba(255, 255, 255, 0)),
    url(../img/Hero-img.png);
    margin-bottom: 3%;
}

.hero .list {
    display: flex;
    padding: 100px 20px 10px;
}

.hero .list a {
    text-decoration: none;
    color: white;
    padding: 10px 13px;
    margin: 10px;
    font-weight: bold;
    font-size: 16px;
    border-radius: 5px;
    transition: 0.4s;
}

.hero .list a:hover {
    background-color: #8080804f;
}

.hero .list .active {
    background-color: #8080804f;
}



.swiper {
    width: 100%;
    height: 100%;
    position: relative;
    /* border: 1px solid red; */
}
.swiper-wrapper{
    position: relative;
}

.hero .swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.hero .swiper-slide {
    position: relative;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
    border-radius: 18px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.hero .swiper-slide .nft-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero .swiper-slide .nft-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
    color: #fff;
}

.hero .swiper-slide .creator-name {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 4px;
}

.hero .swiper-slide .floor-price {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: white;
}

.art{
    padding: 50px;
}

.art .text{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.art h1{
    font-size: 32px;
    font-weight: 500;
}
.art .text a{
    text-decoration: none;
    color: black;
    font-size: 12px;
    background-color: lightgray;
    padding: 8px 12px;
    border-radius: 5px;
    transition: 0.3s;
}
.art .text a:hover{
    background-color: rgb(159, 159, 159);
}

.art .swiper a {
    text-decoration: none;
    color: #333;
}

.art .swiper .swiper-slide {
    width: 30%;
    max-width: 400px;
    /* height: 150px; */
    object-fit: cover;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: -7;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    margin: 1% 0%;
    transition: transform 0.3s ease;
    /* position: relative;
    width: 40%;
    max-width: 400px;
    aspect-ratio: 1;
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    margin: 2% 0%;
    transition: transform 0.3s ease;
    border: 2px solid blue; */
    /* background-color: #000; */
}

.art .swiper .swiper-slide:hover{
    transform: translateY(-4px);
}

.art .swiper .swiper-slide .card-image {
    width: 100%;
    height: 220px;
    image-orientation: center;
    object-fit: cover;
}

.art .swiper-wrapper{
    margin-right: 10%;
}

.nft-info {
    padding: 16px;
}

.nft-title {
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 17px;
}

.nft-creator {
    color: #666;
    font-size: 14px;
}

.nft-price {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
}
.nft-price img{
    width: 10%;
}
.nft-price .first {
    font-weight: bold;
    font-size: 16px;
}
.nft-price .last {
    font-size: 11px;
}




.footer {
    background-color: #000;
    color: #fff;
    padding: 40px 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-logo img {
    width: 150px;
    margin-bottom: 20px;
}

.footer-description {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 20px;
    max-width: 500px;
}

.email-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.email-input {
    padding: 12px;
    border-radius: 8px;
    border: none;
    font-size: 16px;
    width: 100%;
    max-width: 400px;
}

.submit-btn {
    background-color: #333;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    width: fit-content;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #444;
}

.footer-section h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #fff;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    color: #6c5ce7;
}

.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0;
    padding-top: 20px;
    border-top: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
}
.footer-bottom-links a:hover {
    color: #6c5ce7;
}








@media (max-width: 768px) {
    .search-container {
        margin: 0 16px;
    }

    .search-header h2 {
        font-size: 20px;
    }

    .hero .list {
        display: flex;
        overflow-x: auto;
    }

    .logo img{
        width: 10rem;
    }

    .user-info span{
        display: none;
    }

    .art{
        padding: 30px;
    }

    .hero{
        background-size: contain;
        background-size: 80%;
        background-position: top;
        margin-bottom: 3%;
        border: none;
    }

    .swiper-wrapper{
        border: none;
    }

    .hero .swiper-slide, .art .swiper .swiper-slide {
                width: calc(50% - 15px) !important;
            }
    
    .swiper-button-next, .swiper-button-prev{
        display: none;
    }

    .art .text{
        margin-bottom: 2%;
    }

    .art .text h1{
        font-size: 18px;
        font-weight: 600;
    }

    /* .hero .swiper-slide {
        position: relative;
        width: 100%;
        max-width: 700rem;
    } */

    /* .swiper-wrapper{
        display: grid;
        grid-template-columns: repeat(2, 2fr);
    } */


    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-logo img {
        width: 120px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-bottom-links {
        justify-content: center;
    }

    .email-input {
        max-width: 100%;
    }
}