@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Reset and Base Styles */
* {
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

/* Mobile-first responsive font sizes */
@media (max-width: 320px) {
    html {
        font-size: 14px;
    }
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

@media (min-width: 1024px) {
    html {
        font-size: 17px;
    }
}

@media (min-width: 1440px) {
    html {
        font-size: 18px;
    }
}

body {
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 25%, #16213e 50%, #2d1b69 75%, #8b5cf6 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    color: white;
    line-height: 1.6;
}

/* Enhanced background with better mobile performance */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 80%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(168, 85, 247, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
    will-change: transform;
}

/* Mobile-first container with fluid spacing */
.container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: clamp(1rem, 4vw, 2.5rem);
}

/* Responsive breakpoints */
@media (min-width: 640px) {
    .container {
        max-width: 640px;
        padding: clamp(1.5rem, 4vw, 2.5rem);
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 768px;
        padding: clamp(2rem, 4vw, 3rem);
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 1024px;
        padding: clamp(2.5rem, 4vw, 3.5rem);
    }
}

@media (min-width: 1280px) {
    .container {
        max-width: 1280px;
        padding: clamp(3rem, 4vw, 4rem);
    }
}

@media (min-width: 1536px) {
    .container {
        max-width: 1400px;
        padding: clamp(3.5rem, 4vw, 5rem);
    }
}

/* Enhanced Glass Card with better mobile performance */
.glass-card {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(clamp(10px, 2vw, 25px));
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-radius: clamp(0.75rem, 2vw, 1.5rem);
    padding: clamp(1rem, 4vw, 2.5rem);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    opacity: 0.5;
}

.glass-card:hover {
    transform: translateY(-2px);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(139, 92, 246, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Responsive gradient text */
.gradient-text {
    background: linear-gradient(135deg, #ffffff 0%, #e879f9 30%, #8b5cf6 60%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: clamp(1.25rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

/* Enhanced responsive button */
.glow-button {
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 50%, #c084fc 100%);
    border: none;
    border-radius: clamp(0.5rem, 2vw, 1rem);
    padding: clamp(0.75rem, 3vw, 1.25rem) clamp(1.5rem, 4vw, 2.5rem);
    color: white;
    font-weight: 600;
    font-size: clamp(0.875rem, 2.5vw, 1.1rem);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 4px 15px rgba(139, 92, 246, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

@media (min-width: 640px) {
    .glow-button {
        width: auto;
        min-width: 120px;
    }
}

.glow-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.glow-button:hover::before {
    left: 100%;
}

.glow-button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow:
        0 8px 25px rgba(139, 92, 246, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.glow-button:active {
    transform: translateY(0) scale(0.98);
}

/* Enhanced form inputs */
.form-input {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: clamp(0.5rem, 2vw, 0.75rem);
    padding: clamp(0.75rem, 3vw, 1.25rem);
    width: 100%;
    font-size: clamp(0.875rem, 2.5vw, 1.1rem);
    color: white;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: #8b5cf6;
    box-shadow:
        0 0 0 3px rgba(139, 92, 246, 0.2),
        0 0 20px rgba(139, 92, 246, 0.1);
    outline: none;
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Responsive header */
header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: clamp(2rem, 6vw, 4rem);
    align-items: flex-start;
}

@media (min-width: 768px) {
    header {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        gap: 2rem;
    }
}

.header-info h1 {
    font-size: clamp(1.5rem, 6vw, 3.5rem);
    margin-bottom: 0.5rem;
}

.header-info p {
    font-size: clamp(0.875rem, 3vw, 1.25rem);
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
}

.header-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

@media (min-width: 640px) {
    .header-controls {
        flex-direction: row;
        align-items: center;
        width: auto;
    }
}

/* Wallet status */
.wallet-status {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2rem;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: clamp(0.75rem, 2vw, 0.875rem);
    white-space: nowrap;
}

/* Analytics grid */
.analytics-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1rem, 3vw, 1.5rem);
    margin-bottom: clamp(2rem, 6vw, 4rem);
}

@media (min-width: 640px) {
    .analytics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .analytics-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.analytics-card {
    text-align: center;
    padding: clamp(1.5rem, 4vw, 2rem);
}

.analytics-card .value {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: block;
}

.analytics-card .label {
    font-size: clamp(0.75rem, 2vw, 0.875rem);
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Minting form */
.mint-form {
    margin-bottom: clamp(2rem, 6vw, 4rem);
}

.mint-form h2 {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    margin-bottom: clamp(1.5rem, 4vw, 2rem);
    text-align: center;
}

.form-group {
    margin-bottom: clamp(1rem, 3vw, 1.5rem);
}

.form-label {
    display: block;
    font-size: clamp(0.875rem, 2vw, 1rem);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

/* Enhanced file input */
.file-input-wrapper {
    position: relative;
    width: 100%;
}

.file-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.file-input-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: clamp(120px, 20vw, 200px);
    padding: clamp(1.5rem, 4vw, 2.5rem);
    background: rgba(255, 255, 255, 0.04);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: clamp(0.75rem, 2vw, 1rem);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    gap: 0.5rem;
}

.file-input-label:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: #8b5cf6;
    transform: translateY(-2px);
}

.file-input-label .icon {
    font-size: clamp(2rem, 6vw, 3rem);
    margin-bottom: 0.5rem;
}

.file-input-label .main-text {
    font-size: clamp(1rem, 3vw, 1.25rem);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.file-input-label .sub-text {
    font-size: clamp(0.75rem, 2vw, 0.875rem);
    color: rgba(255, 255, 255, 0.6);
}

/* NFT Gallery */
.gallery-section {
    margin-bottom: clamp(2rem, 6vw, 4rem);
}

.gallery-title {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    text-align: center;
    margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.nft-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1rem, 3vw, 2rem);
}

@media (min-width: 640px) {
    .nft-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .nft-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1280px) {
    .nft-gallery {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Enhanced NFT Cards */
.nft-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: clamp(0.75rem, 2vw, 1.25rem);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    aspect-ratio: 1;
}

.nft-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(168, 85, 247, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.nft-card:hover::before {
    opacity: 1;
}

.nft-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(139, 92, 246, 0.3);
    border-color: rgba(139, 92, 246, 0.4);
}

.nft-image {
    width: 100%;
    height: 70%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.nft-card:hover .nft-image {
    transform: scale(1.05);
}

.nft-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: clamp(0.75rem, 3vw, 1.25rem);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 2;
}

.nft-card:hover .nft-info {
    transform: translateY(0);
}

/* Always show info on touch devices */
@media (hover: none) and (pointer: coarse) {
    .nft-info {
        position: relative;
        transform: translateY(0);
        background: rgba(0, 0, 0, 0.6);
        height: 30%;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

.nft-title {
    font-size: clamp(0.875rem, 2.5vw, 1rem);
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: white;
}

.nft-description {
    font-size: clamp(0.75rem, 2vw, 0.875rem);
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
}

/* Transaction History */
.transaction-section {
    margin-bottom: clamp(2rem, 6vw, 4rem);
}

.transaction-title {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    text-align: center;
    margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.transaction-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 400px;
    overflow-y: auto;
    padding: 1rem 0;
}

.transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: clamp(0.75rem, 3vw, 1rem);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.transaction-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(139, 92, 246, 0.2);
}

/* Modal Enhancements */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: clamp(1rem, 4vw, 2rem);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: scale(1) translateY(0);
}

/* Notification System */
.notification {
    position: fixed;
    top: clamp(1rem, 4vw, 2rem);
    right: clamp(1rem, 4vw, 2rem);
    z-index: 1100;
    max-width: clamp(280px, 80vw, 400px);
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.notification.show {
    transform: translateX(0);
}

.notification-content {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0.75rem;
}

/* Animations */
.floating-animation {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

.slide-in {
    animation: slideIn 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sparkle Animation */
.sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    animation: sparkle 3s linear infinite;
    pointer-events: none;
}

@keyframes sparkle {

    0%,
    100% {
        opacity: 0;
        transform: scale(0);
    }

    50% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Premium Badge */
.verification-badge {
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
    border-radius: 50%;
    width: clamp(1.5rem, 4vw, 2rem);
    height: clamp(1.5rem, 4vw, 2rem);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: badge-glow 3s ease-in-out infinite alternate;
}

@keyframes badge-glow {
    0% {
        box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
    }

    100% {
        box-shadow: 0 0 20px rgba(139, 92, 246, 0.8);
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.hidden {
    display: none;
}

.block {
    display: block;
}

.flex {
    display: flex;
}

.grid {
    display: grid;
}

/* Loading States */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading-pulse {
    animation: loading-pulse 1.5s infinite;
}

@keyframes loading-pulse {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles */
*:focus {
    outline: 2px solid rgba(139, 92, 246, 0.6);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .glass-card {
        background: rgba(255, 255, 255, 0.1);
        border: 2px solid rgba(255, 255, 255, 0.3);
    }

    .glow-button {
        border: 2px solid rgba(255, 255, 255, 0.5);
    }
}

/* Print styles */
@media print {

    .sparkle,
    .glow-button,
    .floating-animation {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    .glass-card {
        background: white;
        border: 1px solid #ccc;
    }
}