* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    background: #000; /* Black background for particles to stand out */
    min-height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Content wrapper to ensure it's above particles */
.content-wrapper {
    position: relative;
    z-index: 10; /* Above background particles */
    width: 100%;
    max-width: 1000px; /* Even wider for text to fit */
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader-container {
    width: 100%;
    max-width: 900px; /* Wider container */
    margin: 0 auto;
}

.loader-wrapper {
    background: transparent; /* Transparent background */
    border-radius: 24px;
    padding: 20px 30px; /* Reduced top/bottom padding */
    text-align: center;
    border: none; /* No border */
    box-shadow: none; /* No shadow */
    position: relative;
    overflow: hidden;
    width: 100%;
    margin: 0 auto;
}

.logo-container {
    margin-bottom: -50px; /* Much more negative margin */
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    width: 600px; /* Even larger logo */
    height: 600px;
    object-fit: contain;
    filter: drop-shadow(0 0 40px rgba(0, 255, 0, 0.7));
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-10px) scale(1.05); }
}

.text-container {
    margin: 0; /* Remove margin to bring closer to logo */
    margin-top: -40px; /* More negative margin to move text higher */
    position: relative;
    z-index: 15; /* Ensure text appears above logo */
}

.brand-text {
    font-family: 'Bebas Neue', cursive;
    font-size: 3.5rem; /* Larger font */
    font-weight: 900;
    background: linear-gradient(45deg, #00ff00, #ffd700, #00ff00);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 
        0 0 40px rgba(0, 255, 0, 0.7),
        0 0 70px rgba(255, 215, 0, 0.5);
    letter-spacing: 4px;
    margin-bottom: 15px;
    animation: textGlow 3s ease-in-out infinite, gradientShift 4s ease-in-out infinite;
}

@keyframes textGlow {
    0%, 100% { filter: brightness(1) drop-shadow(0 0 30px rgba(0, 255, 0, 0.7)); }
    50% { filter: brightness(1.3) drop-shadow(0 0 50px rgba(255, 215, 0, 0.9)); }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.loading-text {
    font-size: 1.8rem; /* Larger for COMING UP */
    color: #ffffff;
    font-weight: 700; /* Bolder */
    opacity: 0.9;
    animation: pulse 1.5s ease-in-out infinite;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.subtitle {
    font-size: 1.4rem; /* Bigger font size */
    font-weight: 700; /* Bold */
    opacity: 0.9;
    font-style: italic;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.4;
    background: linear-gradient(45deg, #FFD700, #F0E68C, #DAA520, #FFD700);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

.token-info {
    margin-top: 30px;
    padding: 20px;
    background: transparent;
    border: none;
    border-radius: 12px;
}

.dex-info {
    font-size: 0.9rem;
    color: #ffffff;
    opacity: 0.7;
    text-align: center;
    line-height: 1.4;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .content-wrapper {
        max-width: 90%;
    }
}

@media (max-width: 768px) {
    .logo {
        width: 400px; /* Larger on mobile */
        height: 400px;
    }

    .loader-wrapper {
        padding: 40px 20px;
        margin: 20px;
        max-width: 95%;
    }
    
    .dex-info {
        padding: 0 10px;
    }
}

@media (max-width: 600px) {
    .logo {
        width: 320px; /* Larger on smaller screens */
        height: 320px;
    }

    .loader-wrapper {
        padding: 30px 15px;
        margin: 15px;
    }
    
    .brand-text {
        font-size: 2.5rem;
    }
    
    .loading-text {
        font-size: 1.5rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .logo {
        width: 280px; /* Keep it substantial on mobile */
        height: 280px;
    }

    .brand-text {
        font-size: 2rem;
    }
    
    .loader-wrapper {
        padding: 25px 12px;
        margin: 12px;
    }
}

@media (max-width: 400px) {
    .logo {
        width: 180px;
        height: 180px;
    }

    .loader-wrapper {
        padding: 20px 10px;
        margin: 10px;
    }
    
    .brand-text {
        font-size: 1.8rem;
    }
    
    .loading-text {
        font-size: 1.2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
}

.version-text {
  font-family: 'Arial', sans-serif;
  font-size: 0.4em; /* Adjust size as needed */
  font-weight: bold;
  background: linear-gradient(45deg, #ffd700, #ffb300, #ffd700);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: gradient-animation 3s ease infinite;
}

@keyframes gradient-animation {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
/* Hero Typewriter Effect Styles */
.hero-content {
    margin: 0; /* Remove margin to keep text close to logo */
}

.hero-title-dex {
    position: relative;
    display: inline-block;
    width: 100%;
}

.typewriter-text {
    font-family: 'Silkscreen', monospace;
    font-size: clamp(1.1rem, 3.2vw, 1.8rem); /* Slightly larger text */
    color: #39ff14;
    line-height: 1.2; /* Reduced line height for tighter spacing */
    display: block;
    white-space: normal; /* Allow line breaks */
    text-align: center;
    max-width: 900px; /* Wider container */
    margin: 0 auto;
    text-shadow: 
        0 0 8px #39ff14,
        0 0 16px #39ff14;
}

.typewriter-cursor {
    display: inline;
    width: 0.8ch;
    height: 1em;
    background-color: #39ff14; /* Solid fill like vintage terminals */
    margin-left: 0;
    animation: vintage-blink 1s infinite;
    vertical-align: baseline;
    position: relative;
    border: none;
    box-shadow: 
        0 0 6px #39ff14,
        0 0 12px #39ff14,
        0 0 18px rgba(57, 255, 20, 0.6);
}

/* Vintage terminal ghost trail effect */
.typewriter-cursor::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: radial-gradient(ellipse, rgba(57, 255, 20, 0.4) 0%, rgba(57, 255, 20, 0.2) 40%, transparent 70%);
    z-index: -1;
    animation: vintage-ghost-trail 1.5s ease-in-out infinite;
}

/* Phosphor persistence effect */
.typewriter-cursor::after {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: rgba(57, 255, 20, 0.15);
    animation: phosphor-persistence 2s ease-in-out infinite;
    z-index: -2;
}

@keyframes scanline {
    0% { transform: translateY(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(1.1em); opacity: 0; }
}

/* Vintage terminal cursor blink - solid on/off like old CRT monitors */
@keyframes vintage-blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Vintage ghost trail effect - simulates phosphor persistence */
@keyframes vintage-ghost-trail {
    0% { 
        opacity: 0.4; 
        transform: scale(1);
        filter: blur(0px);
    }
    50% { 
        opacity: 0.2; 
        transform: scale(1.2);
        filter: blur(1px);
    }
    100% { 
        opacity: 0.4; 
        transform: scale(1);
        filter: blur(0px);
    }
}

/* Phosphor persistence effect - mimics CRT screen glow */
@keyframes phosphor-persistence {
    0% { 
        opacity: 0.15;
        transform: scale(1);
    }
    25% { 
        opacity: 0.25;
        transform: scale(1.1);
    }
    75% { 
        opacity: 0.1;
        transform: scale(1.3);
    }
    100% { 
        opacity: 0.15;
        transform: scale(1);
    }
}

/* Inline cursor that follows the text */
.typewriter-text .typewriter-cursor {
    display: inline;
    width: 0.8ch;
    height: 1em;
    background-color: #39ff14;
    margin-left: 0;
    animation: vintage-blink 0.8s infinite;
    vertical-align: baseline;
    position: relative;
    border: none;
    box-shadow: 
        0 0 6px #39ff14,
        0 0 12px #39ff14,
        0 0 18px rgba(57, 255, 20, 0.6);
}

.typewriter-text .typewriter-cursor::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: radial-gradient(ellipse, rgba(57, 255, 20, 0.4) 0%, rgba(57, 255, 20, 0.2) 40%, transparent 70%);
    z-index: -1;
    animation: vintage-ghost-trail 1.5s ease-in-out infinite;
}

.typewriter-text .typewriter-cursor::after {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: rgba(57, 255, 20, 0.15);
    animation: phosphor-persistence 2s ease-in-out infinite;
    z-index: -2;
}

/* Golden highlight for specific words */
.highlight-word {
    color: #ffd700;
    text-shadow: 
        0 0 3px #ffd700,
        0 0 6px #ffd700,
        0 0 12px #ffa500;
    animation: goldenGlow 3s ease-in-out infinite alternate;
}

@keyframes goldenGlow {
    from {
        text-shadow: 
            0 0 3px #ffd700,
            0 0 6px #ffd700,
            0 0 12px #ffa500;
    }
    to {
        text-shadow: 
            0 0 6px #ffd700,
            0 0 12px #ffd700,
            0 0 18px #ffa500,
            0 0 24px #ff8c00;
    }
}

/* Responsive adjustments for typewriter */
@media (max-width: 768px) {
    .typewriter-text {
        font-size: clamp(1rem, 2.8vw, 1.5rem); /* Slightly larger on mobile */
        max-width: 95%; /* Use more screen width */
    }
}

@media (max-width: 480px) {
    .typewriter-text {
        font-size: clamp(0.9rem, 2.5vw, 1.3rem); /* Maintain readability on small screens */
        max-width: 98%; /* Use almost full width */
    }
}