@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Exo+2:wght@300;400;600;700;800&family=Rajdhani:wght@300;400;500;600;700&display=swap');

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

body {
    font-family: 'Exo 2', 'Orbitron', 'Rajdhani', sans-serif;
    overflow: hidden;
    height: 100vh;
    letter-spacing: 0.5px;
    /* Prevent text selection on mobile */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    /* Prevent callouts on mobile */
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

.enter-screen {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* Background zoom animation removed - using video background */

.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.3));
    animation: overlayPulse 8s ease-in-out infinite;
}

@keyframes overlayPulse {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 0.4;
    }
}

.content-container {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    animation: fadeInUp 2s ease-out;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    height: 100vh;
    box-sizing: border-box;
    padding: 2rem;
    padding-bottom: 4rem;
}

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

.logo-section {
    margin-bottom: 3rem;
}

.main-title {
    font-family: 'Orbitron', monospace;
    font-size: 4rem;
    font-weight: 900;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
    margin-bottom: 1rem;
    animation: titleGlow 3s ease-in-out infinite alternate;
    letter-spacing: 4px;
    text-transform: uppercase;
    background: linear-gradient(45deg, #00ffff, #ffffff, #0099ff, #00ffff);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-variant: small-caps;
}

@keyframes titleGlow {
    0% {
        text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 255, 255, 0.4);
        background-position: 0% 50%;
    }
    50% {
        text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 255, 255, 0.8);
        background-position: 100% 50%;
    }
    100% {
        text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 255, 255, 0.4);
        background-position: 0% 50%;
    }
}

.subtitle {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.3rem;
    font-weight: 500;
    opacity: 0.9;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7), 0 0 10px rgba(179, 229, 252, 0.3);
    animation: subtitleFade 2s ease-out 0.5s both;
    max-width: 600px;
    margin: 0 auto;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #b3e5fc;
}

@keyframes subtitleFade {
    0% {
        opacity: 0;
        transform: translateY(30px);
        letter-spacing: 8px;
    }
    100% {
        opacity: 0.9;
        transform: translateY(0);
        letter-spacing: 3px;
    }
}

/* Tap instruction styles */
.tap-instruction {
    text-align: center;
    animation: buttonAppear 1s ease-out 0.5s both;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 20px 30px;
    border-radius: 15px;
    background: rgba(0, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 255, 0.3);
    box-shadow: 0 8px 25px rgba(0, 255, 255, 0.2);
}

.tap-instruction:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 255, 255, 0.3);
    background: rgba(0, 255, 255, 0.15);
}

@keyframes buttonAppear {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.tap-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    letter-spacing: 2px;
    text-transform: uppercase;
}



.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.dot-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 8s;
}

.dot-2 {
    top: 60%;
    left: 80%;
    animation-delay: 1s;
    animation-duration: 7s;
}

.dot-3 {
    top: 30%;
    left: 70%;
    animation-delay: 2s;
    animation-duration: 9s;
}

.dot-4 {
    top: 80%;
    left: 20%;
    animation-delay: 3s;
    animation-duration: 6s;
}

.dot-5 {
    top: 10%;
    left: 50%;
    animation-delay: 4s;
    animation-duration: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.6;
    }
    25% {
        transform: translateY(-20px) rotate(90deg);
        opacity: 1;
    }
    50% {
        transform: translateY(-40px) rotate(180deg);
        opacity: 0.8;
    }
    75% {
        transform: translateY(-20px) rotate(270deg);
        opacity: 1;
    }
}

/* Particles removed per user request */

/* Mobile and tablet responsiveness */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }
    
    .video-background {
        /* Ensure video covers full screen on mobile */
        width: 100vw;
        height: 100vh;
        object-fit: cover;
        object-position: center;
    }
    
    .content-container {
        padding: 0 20px;
        padding-bottom: 15vh; /* Move button higher up */
        height: 100vh;
        width: 100%;
        justify-content: center; /* Center vertically instead of bottom */
    }
    
    .tap-instruction {
        padding: 15px 25px;
        margin: 0 10px;
        border-radius: 12px;
        /* Improve touch target size */
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .tap-text {
        font-size: 0.9rem;
        letter-spacing: 1.5px;
    }
    
    .main-title {
        font-size: 2.2rem;
        letter-spacing: 3px;
        margin-bottom: 15px;
        text-align: center;
        padding: 0 10px;
    }
    
    .subtitle {
        font-size: 0.9rem;
        padding: 0 20px;
        text-align: center;
        line-height: 1.4;
    }
    
    .contract-address {
        top: 15px;
        right: 15px;
        padding: 12px 16px;
        font-size: 0.8rem;
        max-width: 100px;
        border-radius: 10px;
        /* Improve touch target */
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        /* Better touch feedback */
        -webkit-tap-highlight-color: rgba(0, 255, 255, 0.3);
        touch-action: manipulation;
    }
    
    .contract-address:hover,
    .contract-address:active,
    .contract-address:focus {
        max-width: 280px;
        transform: translateY(-2px);
    }
    
    /* Mobile-specific touch states */
    .mobile-device .contract-address:active {
        transform: scale(0.95) translateY(-1px);
        background: rgba(0, 255, 255, 0.2);
    }
    
    .social-icons {
        bottom: 15px;
        left: 15px;
        padding: 10px 15px;
        gap: 12px;
        border-radius: 15px;
    }
    
    .social-link {
        width: 32px;
        height: 32px;
        /* Improve touch targets */
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .social-icon {
        width: 18px;
        height: 18px;
    }
    
    /* Optimize animations for mobile performance */
    .main-background {
        will-change: transform;
    }
    
    /* Reduce motion for better mobile performance */
    @media (prefers-reduced-motion: reduce) {
        * {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
        }
    }
    
    /* Mobile-specific touch improvements */
    .mobile-device .tap-instruction {
        -webkit-tap-highlight-color: rgba(0, 255, 255, 0.3);
        transition: transform 0.1s ease;
    }
    
    .mobile-device .social-link,
    .mobile-device .contract-address {
        -webkit-tap-highlight-color: rgba(0, 255, 255, 0.2);
        transition: transform 0.1s ease;
    }
    
    /* Video fallback styling */
    .enter-screen.video-fallback {
        background-size: cover !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .content-container {
        padding-bottom: 12vh; /* Slightly higher for small screens */
    }
    
    .main-title {
        font-size: 1.8rem;
        letter-spacing: 2px;
    }
    
    .subtitle {
        font-size: 0.8rem;
        padding: 0 15px;
    }
    
    .tap-instruction {
        padding: 12px 20px;
        margin: 0 15px;
    }
    
    .tap-text {
        font-size: 0.8rem;
        letter-spacing: 1px;
    }
    
    .contract-address {
        font-size: 0.7rem;
        padding: 10px 14px;
        max-width: 85px;
        /* Ensure adequate touch target on small screens */
        min-height: 40px;
        min-width: 40px;
    }
    
    .contract-address:hover,
    .contract-address:active,
    .contract-address:focus {
        max-width: 260px;
    }
    
    .social-icons {
        padding: 8px 12px;
        gap: 10px;
    }
}

.fade-out {
    animation: fadeOut 1s ease-in-out forwards;
}

@keyframes fadeOut {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(1.1);
    }
}

/* Fade out animation for enter screen */
.enter-screen.fade-out {
    opacity: 0;
    transform: scale(1.1);
    transition: all 1s ease-in-out;
}

/* Main page styles */
.main-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1000;
    cursor: pointer;
    opacity: 1;
}

.main-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    background-image: url('lizard-1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: none;
}

.main-background.flash {
    background-image: url('lizard-2.jpg');
}

/* Emoji container */
.emoji-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

/* Permanent lizard emoji */
.lizard-emoji-permanent {
    position: absolute;
    width: 50px;
    height: 50px;
    pointer-events: none;
    z-index: 1000;
}

/* Contract address */
.contract-address {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 1000;
    padding: 12px 20px;
    background: rgba(0, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: 'Exo 2', monospace;
    font-size: 0.9rem;
    color: #00ffff;
    overflow: hidden;
    white-space: nowrap;
    max-width: 120px;
}

.contract-address:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
    background: rgba(0, 255, 255, 0.15);
    max-width: 500px;
}

.contract-text {
    font-weight: bold;
    color: rgba(255, 255, 255, 0.8);
}

.contract-short {
    color: #00ffff;
    font-weight: 600;
    display: inline;
    transition: all 0.3s ease;
}

.contract-long {
    color: #00ffff;
    font-weight: 600;
    display: none;
    transition: all 0.3s ease;
}

.contract-address:hover .contract-short {
    display: none;
}

.contract-address:hover .contract-long {
    display: inline;
}

/* Tap counter animation */
.tap-counter {
    position: absolute;
    font-family: 'Orbitron', monospace;
    font-size: 3rem;
    font-weight: 900;
    color: #00ffff;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.8), 0 0 40px rgba(0, 255, 255, 0.6);
    pointer-events: none;
    z-index: 1500;
    animation: fadeUpOut 2s ease-out forwards;
}

@keyframes fadeUpOut {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translateX(-50%) translateY(-80px) scale(1.2);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(-160px) scale(0.8);
    }
}

/* Social media icons */
.social-icons {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    z-index: 1000;
    padding: 15px 25px;
    background: rgba(0, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.social-icons:hover {
    transform: translateX(-50%) translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
    background: rgba(0, 255, 255, 0.15);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background: rgba(0, 255, 255, 0.3);
    transform: scale(1.1);
}

.social-icon {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}

.social-link:hover .social-icon {
    filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(0, 255, 255, 0.8));
}