/* ===== CSS RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --primary-purple: #8b2fb5;
    --dark-purple: #1a0a2e;
    --magenta: #e91e63;
    --cyan: #00d9ff;
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --dark-gray: #333333;
    --card-bg: rgba(139, 47, 181, 0.15);
    --card-border: rgba(255, 255, 255, 0.1);

    /* Gradients */
    --gradient-bg: linear-gradient(135deg, #1a0a2e 0%, #3d1a5f 50%, #5c2a7d 100%);
    --gradient-text: linear-gradient(90deg, #e91e63 0%, #00d9ff 100%);
    --gradient-button: linear-gradient(90deg, #e91e63 0%, #9c27b0 100%);

    /* Spacing */
    --container-max-width: 1400px;
    --section-padding: 80px 20px;

    /* Typography */
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

body {
    font-family: var(--font-primary);
    background: var(--gradient-bg);
    color: var(--white);
    overflow-x: hidden;
    min-height: 100vh;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HEADER ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-content {
    background: var(--border-color);
    border-radius: 15px;
    color: white;
    padding: 30px 40px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    max-width: 400px;
}

.modal-content h2 {
    margin-bottom: 20px;
    font-size: 20px;
}

.buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.modal-content button {
    padding: 10px 25px;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

#yesBtn {
    background: #6b2df0;
    color: #fff;
}

#yesBtn:hover {
    background: #3e8e41;
}

#noBtn {
    background: #9d3bf6;
    color: #fff;
}

#noBtn:hover {
    background: #d32f2f;
}

/* Warning section */
.warn {
    font-size: 16px;
    background-color: #000;
    color: white;
    width: 100%;
    text-align: center;
    padding: 10px 0;
    font-weight: bold;
}

.warn.active {
    display: none;
}

.header {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(26, 10, 46, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--card-border);
    padding: 20px 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
}

.logo img {
    width: 50px;
    height: 50px;
}

.logo-mega {
    color: var(--white);
}

.logo-merrymi {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-desktop {
    display: flex;
    gap: 40px;
}

.nav-desktop a {
    color: var(--white);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-desktop a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-button);
    transition: width 0.3s ease;
}

.nav-desktop a:hover::after {
    width: 100%;
}

.btn-connect {
    padding: 12px 30px;
    background: var(--gradient-button);
    border: none;
    border-radius: 50px;
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
}

.btn-connect:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233, 30, 99, 0.5);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--white);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
    position: fixed;
    top: 80px;
    right: -100%;
    width: 300px;
    display: none;
    height: calc(100vh - 80px);
    background: rgba(26, 10, 46, 0.98);
    backdrop-filter: blur(20px);
    z-index: 999;
    transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-left: 1px solid var(--card-border);
}

.mobile-menu.active {
    right: 0;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    padding: 40px 30px;
    gap: 30px;
}

.mobile-nav a {
    color: var(--white);
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 10px 0;
    border-bottom: 1px solid var(--card-border);
}

.mobile-nav a:hover {
    color: var(--magenta);
    padding-left: 10px;
}

.btn-connect-mobile {
    padding: 15px 30px;
    background: var(--gradient-button);
    border: none;
    border-radius: 50px;
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
}

/* ===== HERO SECTION ===== */
.hero {
    padding: 150px 20px 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.btn-explore {
    padding: 15px 40px;
    background: var(--gradient-button);
    border: none;
    border-radius: 50px;
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
}

.btn-explore:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233, 30, 99, 0.5);
}

.btn-create {
    padding: 15px 40px;
    background: transparent;
    border: 2px solid var(--white);
    border-radius: 50px;
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-create:hover {
    background: var(--white);
    color: var(--dark-purple);
}

.trading-info {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 15px;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.trading-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
}

.trading-value {
    display: flex;
    align-items: center;
    gap: 10px;
}

.eth-icon {
    font-size: 24px;
}

.eth-amount {
    font-size: 18px;
    font-weight: 600;
}

/* Hero Right */
.hero-right {
    position: relative;
}

.hero-image-container {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(233, 30, 99, 0.3);
}

.hero-image-container img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 30px;
}

.hero-tag {
    position: absolute;
    background: rgba(26, 10, 46, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
}

.tag-top-right {
    top: 20px;
    right: 20px;
}

.tag-middle {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.tag-bottom {
    bottom: 100px;
    right: 20px;
}

.countdown-grid {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    width: calc(100% - 40px);
}

.countdown-item {
    background: rgba(26, 10, 46, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 15px 10px;
    text-align: center;
}

.countdown-number {
    font-size: 24px;
    font-weight: 700;
    color: var(--magenta);
}

.countdown-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 5px;
}

/* ===== HIGHEST BID SECTION ===== */
.highest-bid {
    padding: var(--section-padding);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
}

.see-all {
    color: var(--white);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 10px 25px;
    border: 1px solid var(--card-border);
    border-radius: 50px;
    transition: all 0.3s ease;
}

.see-all:hover {
    background: var(--gradient-button);
    border-color: transparent;
}

.bid-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.bid-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 20px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.bid-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(233, 30, 99, 0.3);
}

.bid-image {
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 20px;
}

.bid-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.bid-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.bid-name {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    text-align: center;
}

.bid-price {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.eth-icon {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.price-amount {
    font-size: 18px;
    font-weight: 700;
    color: var(--cyan);
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.3);
}

.btn-bid {
    width: 100%;
    padding: 15px;
    background: var(--gradient-button);
    border: none;
    border-radius: 50px;
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-bid:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233, 30, 99, 0.5);
}

/* ===== EXPLORE ARTWORK SECTION ===== */
.explore-artwork {
    padding: var(--section-padding);
}

.artwork-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.artwork-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 20px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.artwork-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(233, 30, 99, 0.3);
}

.artwork-image {
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 15px;
}

.artwork-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.artwork-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.artwork-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    text-align: center;
}

.artwork-price {
    flex-direction: column;
    display: flex;
    align-items: center;
    gap: 6px;
}

.price-eth {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-favorite {
    background: rgba(233, 30, 99, 0.1);
    border: 1px solid var(--magenta);
    border-radius: 50px;
    padding: 6px 15px;
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    cursor: default;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px rgba(233, 30, 99, 0.5);
}

.btn-favorite:hover {
    background: var(--magenta);
    box-shadow: 0 0 15px rgba(233, 30, 99, 0.4);
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet */
@media (max-width: 1024px) {

    .nav-desktop,
    .btn-connect {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .mobile-menu {
        display: block;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-title {
        font-size: 42px;
    }

    .bid-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .artwork-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .hero-tag{
        display: none;
    }
    .hamburger {
        display: flex;
    }

    .hero {
        padding: 120px 20px 60px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-description {
        font-size: 14px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn-explore,
    .btn-create {
        width: 100%;
    }

    .section-title {
        font-size: 28px;
    }

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

    .artwork-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .countdown-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 5px;
    }

    .countdown-item {
        padding: 10px 5px;
    }

    .countdown-number {
        font-size: 18px;
    }

    .countdown-label {
        font-size: 10px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }

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

    .section-header {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
}

/* Extra Small Mobile (320px+) */
@media (max-width: 360px) {
    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 24px;
    }

    .hero-buttons {
        gap: 15px;
    }

    .btn-explore,
    .btn-create {
        padding: 12px 30px;
        font-size: 14px;
    }
}

/* ===== REVIEWS SECTION ===== */
.reviews {
    padding: var(--section-padding);

}

.slider-controls {
    display: flex;
    gap: 15px;
}

.slider-btn {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--white);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
}

.slider-btn:hover {
    background: var(--gradient-button);
    border-color: transparent;
    transform: scale(1.1);
}

.reviews-slider {
    position: relative;
    overflow: hidden;
    padding: 20px 0;
}

.reviews-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 30px;
}

.review-card {
    min-width: calc((100% - 60px) / 3);
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(139, 47, 181, 0.2);
}

.review-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    text-align: center;
}

.review-header img {
    width: 100%;
    height: 300px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid var(--card-border);
    margin-bottom: 10px;
}

.review-user h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.stars {
    color: #ff9800;
    font-size: 14px;
}

.review-text {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
}

.review-text strong {
    color: var(--cyan);
}

/* Tablet Review Responsiveness */
@media (max-width: 1024px) {
    .review-card {
        min-width: calc((100% - 30px) / 2);
    }
}

/* Mobile Review Responsiveness */
@media (max-width: 768px) {
    .review-card {
        min-width: 100%;
    }

    .reviews-track {
        gap: 0;
    }

    .review-card {
        padding: 20px;
    }

    .reviews .section-header {
        flex-direction: column !important;
        justify-content: space-between;
        align-items: center;
    }
}


/* ===== DESCRIPTIONS SECTION ===== */
.descriptions {
    padding: var(--section-padding);
}

.desc-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.desc-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.desc-item:hover {
    transform: translateY(-5px);
    border-color: var(--magenta);
}

.desc-item a {
    text-decoration: none;
    color: var(--white);
    display: block;
    margin-bottom: 15px;
}

.desc-item h3 {
    font-size: 24px;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.desc-item p {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 768px) {
    .desc-grid {
        grid-template-columns: 1fr;
    }
}

/* footer */
footer {
    position: relative;
    width: 100%;
    background-color: transparent;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 35px;
    padding: 40px 100px;
}

footer a {
    text-decoration: none;
    color: inherit;
}

.footer-logo {
    padding: 35px 20px;
    padding-top: 30px;
    margin-right: 40px;
}

.footer-logo img {
    width: 70px;
    height: auto;
}

.footer-cont {
    width: 100%;
    display: flex;
    color: white;
    font-size: 26px;
    gap: 80px;
    padding-bottom: 35px;
    border-bottom: 2px solid gray;
    position: relative;
}

.foot-cont-one {
    display: flex;
    gap: 80px;
}

.copyright {
    width: 100%;
    text-align: center;
    padding-top: 35px;
    border-top: 2px solid gray;

    color: rgb(168, 167, 167);
}

footer svg {
    fill: rgba(255, 255, 255, 0.842);
    stroke-miterlimit: 10;
    stroke-width: 1px;
    width: 40px;
}

.city {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 26px;
}

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

.cont-col:first-child {
    color: rgb(168, 167, 167);
}

.cont-col:first-child a:first-child {
    color: white;
}

.foot-cont-two {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.foot-cont-two div {
    align-items: center;
    display: flex;
    gap: 20px;
}

.foot-cont-three {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: white;
    font-size: 20px;
}

.foot-cont-three p:hover {
    cursor: pointer;
    transform: scale(1.1);
}

.foot-cont-three p {
    position: relative;
    padding-right: 16px;
}

.foot-cont-three p::after {
    content: "▼";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
}

.foot-cont-three p.active::after {
    transform: translateY(-50%) rotate(180deg);
}

.foot-cont-three a {
    display: none;
}

.social {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 10px;
    border-bottom: 2px solid gray;
}

@media (max-width: 768px) and (min-width: 320px) {
    footer {
        align-items: center;
        padding: 40px 40px;
    }

    .warn {
        font-size: 10px !important;
    }

    .footer-logo {
        margin-right: 0;
    }

    .social {
        gap: 0;
    }

    .footer-logo img {
        object-fit: cover;
        width: 90px;
    }

    .footer-cont {
        font-size: 18px;
        flex-direction: column;
    }

    .foot-cont-two {
        padding-top: 35px;
        border-top: 2px solid gray;
    }

    .foot-cont-three {
        flex-direction: column;
    }

    .featured-title {
        font-size: 1.25rem;
    }

    .featured-desc {
        font-size: 0.9rem;
    }

    .featured-btns {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }

    .featured-btns a {
        width: 100%;
        text-align: center;
        padding: 10px 20px;
    }
}