/* ===== CSS Reset & Global Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-gold: #FFD700;
    --secondary-gold: #FFA500;
    --accent-blue: #4A90E2;
    --dark-bg: rgba(0, 0, 0, 0.8);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --text-muted: rgba(255, 255, 255, 0.6);
    --success-green: #4CAF50;
    --error-red: #FF6B6B;
    
    --shadow-primary: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 20px rgba(255, 215, 0, 0.3);
    --blur-glass: blur(20px);
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

html {
    font-size: 16px;
    overflow: hidden;
    height: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    background: #000;
    color: var(--text-primary);
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    position: relative;
}

/* ===== Background Video ===== */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    filter: brightness(0.7) contrast(1.1);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.1) 50%,
        rgba(0, 0, 0, 0.4) 100%
    );
}

/* ===== Simplified Particles Effect ===== */
.video-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(1px 1px at 20px 30px, rgba(255, 215, 0, 0.2), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255, 215, 0, 0.3), transparent),
        radial-gradient(1px 1px at 160px 30px, rgba(255, 215, 0, 0.1), transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: sparkle 25s linear infinite;
    pointer-events: none;
    z-index: 1;
    opacity: 0.7;
}

@keyframes sparkle {
    from { transform: translateY(0); }
    to { transform: translateY(-100px); }
}


/* ===== Main Content ===== */
.main-content {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
}

.content-container {
    max-width: 1400px;
    width: 100%;
    padding: 0 2rem;
}

.hero-section {
    text-align: center;
    animation: heroFadeIn 1.5s ease-out;
}

@keyframes heroFadeIn {
    0% { 
        opacity: 0; 
        transform: translateY(50px);
    }
    100% { 
        opacity: 1; 
        transform: translateY(0);
    }
}

.hero-content {
    background: transparent;
    padding: 4rem 3rem;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    text-align: center;
}


@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.hero-title {
    margin-bottom: 2rem;
}

.title-main {
    display: block;
    font-family: 'Orbitron', monospace;
    font-weight: 900;
    font-size: clamp(4rem, 10vw, 8rem);
    letter-spacing: 0.1em;
    color: var(--primary-gold);
    text-shadow: 
        0 0 30px rgba(255, 215, 0, 0.8),
        0 0 60px rgba(255, 215, 0, 0.4),
        0 0 90px rgba(255, 215, 0, 0.2);
    animation: titlePulse 4s ease-in-out infinite;
}

@keyframes titlePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.title-sub {
    display: block;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: clamp(1.2rem, 3vw, 2rem);
    letter-spacing: 0.3em;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    text-transform: uppercase;
}

.hero-slogan {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-weight: 300;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-bottom: 3rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
}

.stat-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 
        var(--shadow-glow),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-color: var(--primary-gold);
}


.stat-number {
    display: block;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 2.5rem;
    color: var(--primary-gold);
    margin-bottom: 0.5rem;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ===== Mint Button ===== */
.mint-button {
    position: relative;
    background: linear-gradient(135deg, var(--primary-gold), var(--secondary-gold));
    border: none;
    border-radius: 50px;
    padding: 1.2rem 3rem;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    color: #000;
    cursor: pointer;
    overflow: hidden;
    transition: var(--transition-smooth);
    text-transform: uppercase;
    box-shadow: 
        0 8px 25px rgba(255, 215, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.mint-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 15px 35px rgba(255, 215, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.mint-button:active {
    transform: translateY(-1px) scale(1.02);
}

.button-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transition: var(--transition-smooth);
}

.mint-button:hover .button-glow {
    left: 100%;
    transition: left 0.6s ease;
}

/* Wallet Status */
.wallet-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    margin: 1.5rem 0;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.wallet-indicator {
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wallet-indicator svg {
    transition: var(--transition-smooth);
}

.wallet-text {
    font-family: 'Orbitron', monospace;
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

.wallet-status.connected .wallet-indicator {
    color: #4ade80;
}

.wallet-status.connected .wallet-text {
    color: #4ade80;
}

.disconnect-button {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
}

.disconnect-button:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
    transform: scale(1.05);
}

.disconnect-button:active {
    transform: scale(0.95);
}

.disconnect-button svg {
    transition: var(--transition-smooth);
}

.disconnect-button:hover svg {
    transform: translateX(2px);
}

/* Button Group */
.button-group {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .button-group {
        flex-direction: column;
        gap: 15px;
    }
}

/* Connect Wallet Button */
.connect-wallet-button {
    background: linear-gradient(135deg, var(--primary-gold), #e6b800);
    border: none;
    color: var(--bg-primary);
    padding: 1.2rem 3rem;
    border-radius: 50px;
    font-family: 'Orbitron', monospace;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
    text-transform: uppercase;
    min-width: 200px;
    box-shadow: 
        0 8px 25px rgba(255, 215, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.connect-wallet-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 15px 35px rgba(255, 215, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    background: linear-gradient(135deg, #ffef80, var(--primary-gold));
}

.connect-wallet-button:active {
    transform: translateY(-1px) scale(1.02);
}

.connect-wallet-button .button-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

.connect-wallet-button:hover .button-glow {
    left: 100%;
}

/* My NFT Button */
.my-nft-button {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border: 2px solid var(--primary-gold);
    color: var(--primary-gold);
    padding: 1.2rem 3rem;
    border-radius: 50px;
    font-family: 'Orbitron', monospace;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
    text-transform: uppercase;
    min-width: 160px;
    box-shadow: 
        0 8px 25px rgba(255, 215, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.my-nft-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 15px 35px rgba(255, 215, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: rgba(255, 215, 0, 0.1);
}

.my-nft-button:active {
    transform: translateY(-1px) scale(1.02);
}

.my-nft-button .button-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: var(--transition-smooth);
}

.my-nft-button:hover .button-glow {
    left: 100%;
}

/* NFT Grid Styles */
.nft-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
}

.nft-card {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border: 2px solid var(--accent-color);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.nft-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
    border-color: var(--secondary-color);
}

.nft-image {
    width: 100%;
    height: 150px;
    background: linear-gradient(45deg, #2a2a3e, #3a3a4e);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    font-size: 3rem;
    color: var(--accent-color);
    overflow: hidden;
    position: relative;
}

.nft-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: var(--transition-smooth);
}

.nft-card:hover .nft-image video {
    transform: scale(1.05);
}

.nft-info h3 {
    color: var(--accent-color);
    margin: 0 0 5px 0;
    font-size: 1.1rem;
}

.nft-info p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.9rem;
}

.loading-nfts {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}

.empty-nfts {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}

.empty-nfts h3 {
    color: var(--accent-color);
    margin-bottom: 10px;
}

/* Modal Header Styles */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2rem 1rem 2rem;
    border-bottom: 1px solid var(--glass-border);
}

.modal-header h2 {
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--primary-gold);
    margin: 0;
}

.modal-body {
    padding: 2rem;
    max-height: 60vh;
    overflow-y: auto;
}

/* ===== Modal Styles ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.modal-container {
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-primary);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.25s ease-out;
    will-change: transform;
}

.modal-overlay.active .modal-container {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-smooth);
    z-index: 10;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    transform: rotate(90deg);
}

.modal-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem;
}

/* ===== NFT Preview ===== */
.nft-preview {
    position: relative;
}

.nft-video-container {
    position: relative;
    aspect-ratio: 1;
    border-radius: 16px;
    overflow: hidden;
    background: var(--dark-bg);
    border: 2px solid var(--glass-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s ease;
}

.nft-video-container:hover {
    transform: scale(1.01);
    border-color: var(--primary-gold);
}

.nft-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nft-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(
        transparent,
        rgba(0, 0, 0, 0.8)
    );
    padding: 2rem;
    transform: translateY(100%);
    transition: var(--transition-smooth);
}

.nft-video-container:hover .nft-overlay {
    transform: translateY(0);
}

.nft-title {
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--primary-gold);
    margin-bottom: 0.5rem;
}

.nft-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* ===== Mint Details ===== */
.mint-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.price-section {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
}

.price-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.price-label {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.price-value {
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--primary-gold);
}

.price-usd {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.quantity-section {
    text-align: center;
}

.quantity-label {
    display: block;
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.quantity-btn:hover {
    background: var(--primary-gold);
    color: #000;
    transform: scale(1.1);
}

.quantity-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.quantity-value {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-gold);
    min-width: 3rem;
    text-align: center;
}

.quantity-limit {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.total-section {
    padding: 1.5rem;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid var(--primary-gold);
    border-radius: 12px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.total-row span:first-child {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.total-price {
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-gold);
}

.total-usd {
    text-align: right;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ===== Mint Actions ===== */
.mint-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.wallet-btn,
.mint-final-btn {
    position: relative;
    width: 100%;
    padding: 1rem 2rem;
    border: 2px solid var(--primary-gold);
    border-radius: 12px;
    background: transparent;
    color: var(--primary-gold);
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.wallet-btn:hover,
.mint-final-btn:hover {
    background: var(--primary-gold);
    color: #000;
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.mint-final-btn {
    background: linear-gradient(135deg, var(--primary-gold), var(--secondary-gold));
    color: #000;
    border-color: transparent;
}

.mint-final-btn:hover {
    transform: translateY(-2px) scale(1.02);
}

.btn-loader {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    opacity: 0;
    transition: var(--transition-smooth);
}

.btn-loader.active {
    opacity: 1;
}

@keyframes spin {
    to { transform: translateY(-50%) rotate(360deg); }
}

.wallet-info {
    padding: 1rem;
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid var(--success-green);
    border-radius: 8px;
    font-size: 0.9rem;
}

.wallet-address,
.wallet-balance {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.wallet-address:last-child,
.wallet-balance:last-child {
    margin-bottom: 0;
}

.wallet-label,
.balance-label {
    color: var(--text-secondary);
}

.wallet-addr,
.balance-value {
    color: var(--success-green);
    font-weight: 600;
}

/* ===== Loading Screen ===== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
}

.loading-logo {
    font-family: 'Orbitron', monospace;
    font-weight: 900;
    font-size: 3rem;
    letter-spacing: 0.2em;
    color: var(--primary-gold);
    margin-bottom: 2rem;
    animation: logoGlow 2s ease-in-out infinite alternate;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 215, 0, 0.3);
    border-top: 3px solid var(--primary-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 2rem;
    position: relative;
    box-shadow: 
        0 0 20px rgba(255, 215, 0, 0.3),
        inset 0 0 20px rgba(255, 215, 0, 0.1);
}


.loading-text {
    color: var(--text-secondary);
    font-size: 1.1rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    
    .content-container {
        padding: 0 1rem;
    }
    
    .hero-content {
        padding: 2rem 1.5rem;
        border-radius: 16px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .stat-item {
        width: 100%;
        max-width: 200px;
        padding: 1rem;
    }
    
    .modal-container {
        width: 95%;
        max-height: 95vh;
        margin: 0 auto;
    }
    
    .modal-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .modal-close {
        top: 1rem;
        right: 1rem;
        width: 35px;
        height: 35px;
    }
    
    .mint-button {
        padding: 1rem 2rem;
        font-size: 1rem;
        width: 100%;
        max-width: 300px;
    }
    
    /* Mobile-specific video optimizations */
    .video-background video {
        object-position: center center;
    }
    
    /* Mobile modal optimizations */
    .nft-video-container {
        max-width: 300px;
        margin: 0 auto;
    }
    
    /* Touch-friendly controls */
    .quantity-btn {
        width: 45px;
        height: 45px;
        font-size: 1.4rem;
    }
    
    .wallet-btn,
    .mint-final-btn {
        padding: 1.2rem 2rem;
        font-size: 1rem;
        min-height: 50px;
    }
}

@media (max-width: 480px) {
    
    .hero-content {
        padding: 1.5rem 1rem;
        margin: 0 0.5rem;
    }
    
    .title-main {
        font-size: 2.5rem;
    }
    
    .title-sub {
        font-size: 1rem;
    }
    
    .hero-slogan {
        margin-bottom: 2rem;
        font-size: 0.9rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .modal-content {
        padding: 1rem;
    }
    
    .modal-close {
        width: 30px;
        height: 30px;
        top: 0.5rem;
        right: 0.5rem;
    }
    
    .price-section {
        padding: 1.5rem 1rem;
    }
    
    .quantity-controls {
        gap: 1rem;
    }
    
    .quantity-btn {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .nft-video-container {
        max-width: 250px;
    }
    
    /* Improve text readability on small screens */
    .price-value {
        font-size: 1.5rem;
    }
    
    .total-price {
        font-size: 1.3rem;
    }
}

/* ===== Landscape Phone Optimization ===== */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-content {
        padding: 1.5rem 2rem;
        max-width: 600px;
    }
    
    .hero-stats {
        flex-direction: row;
        gap: 2rem;
    }
    
    .stat-item {
        max-width: 150px;
        padding: 1rem 0.5rem;
    }
    
    .modal-content {
        grid-template-columns: 1fr 1fr;
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .modal-container {
        max-height: 90vh;
    }
}

/* ===== Touch Device Optimizations ===== */
@media (pointer: coarse) {
    .mint-button,
    .wallet-btn,
    .mint-final-btn,
    .quantity-btn {
        min-height: 44px; /* Apple's recommended touch target size */
    }
    
    /* Larger tap targets for mobile */
    .modal-close {
        min-width: 44px;
        min-height: 44px;
    }
}

/* ===== Accessibility ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== High DPI Support ===== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-title,
    .nav-logo {
        text-rendering: optimizeLegibility;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}