/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes panelSlideIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
        filter: hue-rotate(0deg);
    }
    50% {
        background-position: 100% 50%;
        filter: hue-rotate(20deg);
    }
    100% {
        background-position: 0% 50%;
        filter: hue-rotate(0deg);
    }
}

@keyframes pulseEffect {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.1); }
    70% { transform: scale(1.02); box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

@keyframes textGlow {
    0% { text-shadow: 0 0 5px rgba(255, 255, 255, 0.1); }
    50% { text-shadow: 0 0 15px rgba(255, 255, 255, 0.3); }
    100% { text-shadow: 0 0 5px rgba(255, 255, 255, 0.1); }
}

@keyframes orbFloat {
    0% { transform: translate(0, 0); }
    50% { transform: translate(10px, -15px); }
    100% { transform: translate(0, 0); }
}

.logo-container {
    display: flex;
    align-items: center;
  }
  
  .logo-image {
    height: 30px; /* atau coba 20px–30px, sesuaikan agar tidak terlalu besar/kecil */
    margin-right: 15px; /* jarak antara logo dan teks */
  }
  
  .logo-text {
    font-size: 20px;
    font-weight: bold;
    color: white; /* atau sesuaikan dengan tema */
  }
  


body {
    font-family: 'Inter', sans-serif;
    background-color: #000000;
    color: #eaeaea;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body.loaded .animate-text {
    animation: fadeIn 1s ease-out forwards, textGlow 4s ease-in-out infinite;
}

body.loaded .animate-panel {
    animation: panelSlideIn 0.7s ease-out forwards;
}

body.loaded .animate-panel-delayed {
    animation: panelSlideIn 0.7s ease-out 0.2s forwards;
    opacity: 0;
}

.container {
    min-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}
.container1 {
    margin-left: 100px;
    margin-right: 100px;
}

/* Gradient background */
.gradient-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    opacity: 0.3;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    transition: all 3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none; /* Ensure orbs don't interfere with clicking */
}

.orb1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(76, 0, 255, 0.5) 0%, rgba(30, 0, 70, 0.2) 70%);
    top: 20%;
    left: 30%;
    animation: orbFloat 20s ease-in-out infinite;
}

.orb2 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(0, 200, 255, 0.5) 0%, rgba(0, 70, 70, 0.2) 70%);
    top: 60%;
    left: 10%;
    animation: orbFloat 16s ease-in-out infinite reverse;
}

.orb3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(134, 88, 255, 0.5) 0%, rgba(70, 0, 70, 0.2) 70%);
    top: 30%;
    left: 60%;
    animation: orbFloat 25s ease-in-out infinite;
}

/* Header styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(5px);
    position: relative;
    z-index: 3;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.5px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 28px;
}

nav ul li a {
    color: #848484;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
    font-size: 15px;
    position: relative;
}

nav ul li a:hover,
nav ul li a.active {
    color: #ffffff;
}

nav ul li a.active:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: #ffffff;
    bottom: -6px;
    left: 0;
    border-radius: 1px;
}

/* Main content */
main {
    padding: 25px 0;
    min-height: calc(100vh - 180px);
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 3; /* Ensure main content is above background gradients */
}

.hero {
    text-align: center;
    margin-bottom: 25px;
}

.hero h1 {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.3;
    color: #ffffff;
}

/* DEX interface */
.dex-interface {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    position: relative;
    z-index: 4; /* Ensure interface is above all background elements */
}

.panel {
    flex: 1;
    min-width: 300px;
    background-color: #111111;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid #1a1a1a;
    max-height: 410px;
    position: relative;
    z-index: 5; /* Ensure panels are stacked properly */
}

.panel-header {
    padding: 12px 16px;
    background-color: #1a1a1a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.panel-header h3 {
    font-size: 16px;
    font-weight: 500;
    color: #eaeaea;
}

.panel-content {
    padding: 16px;
    position: relative; /* Establish stacking context */
}

.panel-content h2 {
    font-size: 20px;
    margin-bottom: 16px;
    color: #ffffff;
    font-weight: 600;
}

/* Token list */
.token-list {
    display: flex;
    flex-direction: column;
}

.token-item {
    padding: 12px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 6px;
    border: 1px solid transparent;
}

.token-item:hover,
.token-item.active {
    background-color: #1a1a1a;
    border: 1px solid #2a2a2a;
}

.token-item.hover {
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.2);
}

.token-item.pulse {
    animation: pulseEffect 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.token {
    display: flex;
    align-items: center;
}

.token-icon {
    width: 22px;
    height: 22px;
    margin-right: 10px;
    border-radius: 50%;
    transition: transform 0.3s;
}

.token-name {
    font-weight: 500;
    font-size: 14px;
    color: #eaeaea;
}

.token-price {
    font-weight: 500;
    font-size: 14px;
    color: #eaeaea;
}

/* Waitlist box */
.waitlist-box {
    background-color: #1a1a1a;
    border-radius: 10px;
    padding: 18px;
    margin-top: 16px;
    position: relative;
    z-index: 5; /* Ensure waitlist box is above background elements */
}

.waitlist-box h3 {
    font-size: 15px;
    margin-bottom: 8px;
    color: #ffffff;
    font-weight: 600;
}

.waitlist-box p {
    color: #aaaaaa;
    margin-bottom: 16px;
    font-size: 13px;
    line-height: 1.4;
}

#waitlistForm {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    z-index: 10; /* Ensure form is at highest z-index */
}

#waitlistForm input {
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #2a2a2a;
    background-color: #111111;
    color: #eaeaea;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s;
    position: relative;
    z-index: 10;
    width: 100%;
    height: auto;
    min-height: 40px;
    appearance: textfield;
    -webkit-appearance: textfield;
    -moz-appearance: textfield;
}

#waitlistForm input:focus {
    outline: none;
    border-color: #3a3a3a;
}

.waitlist-btn {
    padding: 10px 0;
    border-radius: 8px;
    border: none;
    background-color: #ffffff;
    color: #000000;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Inter', sans-serif;
    position: relative;
    z-index: 10;
    width: 100%;
    min-height: 40px;
}

.waitlist-btn:hover {
    opacity: 0.9;
}

.success-message {
    color: #6d9775;
    font-size: 14px;
    margin-top: 10px;
    text-align: center;
    padding: 8px;
    background-color: rgba(109, 151, 117, 0.1);
    border-radius: 6px;
}

/* Footer */
footer {
    display: flex;
    justify-content: space-between;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    z-index: 2;
}

.footer-left {
    margin-right: 20px;
    margin-left: 150px;
}

.discord-icon {
    transition: opacity 0.3s, transform 0.3s;
    display: inline-block;
}

.discord-icon:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

.discord-icon img {
    width: 24px;
    height: 24px;
    filter: brightness(0.9);
}

.footer-right {
    display: flex;
    gap: 40px;
    margin-right: 150px;
}

.footer-section h4 {
    font-size: 14px;
    margin-bottom: 12px;
    font-weight: 600;
    color: #a7a7a7;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: #7c7c7c;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 13px;
}

.footer-section ul li a:hover {
    color: #ffffff;
}

/* Responsive styles */
@media screen and (max-width: 768px) {
    .dex-interface {
        flex-direction: column;
    }

    .panel {
        width: 100%;
    }

    .footer-right {
        flex-direction: column;
        gap: 30px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .panel-content h2 {
        font-size: 18px;
    }

    .gradient-orb {
        filter: blur(40px);
        opacity: 0.5;
    }
}


.popup-message {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 16px 20px;
    border-radius: 8px;
    color: white;
    background-color: #333;
    z-index: 1000;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.popup-message.show {
    opacity: 1;
}

.popup-message.success {
    background-color: #28a745;
}

.popup-message.error {
    background-color: #dc3545;
}
