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

body {
    font-family: 'Arial', sans-serif;
    color: white;
    overflow-x: hidden;
}

/* Video Background */
#bg-video {
    position: fixed;
    top: 0;
    left: 0;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1;
    object-fit: cover;
    filter: brightness(0.7);
}


/* Top Navigation */
.top-nav {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 15px;
    z-index: 1000;
}

.nav-link {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 12px 15px;
    border-radius: 50%;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
}

.nav-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.nav-link.twitter:hover {
    background: rgba(29, 161, 242, 0.8);
}

.nav-link.twitter:hover .nav-logo {
    filter: brightness(0) invert(1);
}

.nav-link.dex:hover {
    background: rgba(76, 175, 80, 0.8);
}

.nav-link.dex:hover .nav-logo {
    filter: brightness(0) invert(1);
}

/* Header */
header {
    text-align: center;
    padding: 60px 20px 30px;
    position: relative;
    z-index: 100;
}

header h1 {
    font-size: 4rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    background: rgba(0, 0, 0, 0.3);
    padding: 20px 40px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    display: inline-block;
}

.header-logo {
    max-height: 300px;
    max-width: 800px;
    width: auto;
    height: auto;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.8));
    margin-bottom: 20px;
}

.header-text {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    text-align: center;
    font-weight: normal;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

/* Copyable Text Section */
.copyable-container {
    position: relative;
    margin-top: 15px;
}

.copyable-box {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 12px 20px;
    color: white;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    user-select: none;
    display: inline-block;
}

.copyable-box:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.copy-success {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: #10ac84;
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.copy-success.show {
    opacity: 1;
}

.copy-text:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.copy-notification {
    position: absolute;
    top: -45px;
    left: 50%;
    transform: translateX(-50%);
    background: #10ac84;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

.copy-notification.show {
    opacity: 1;
}

/* Carousel Section */
.carousel-section {
    position: relative;
    z-index: 100;
    margin-top: 50px;
}

.carousel-container {
    width: 100%;
    height: 380px;
    overflow: hidden;
    margin-bottom: 10px;
    padding: 15px 0;
}

.carousel-track {
    display: flex;
    gap: 20px;
    animation: scroll 40s linear infinite;
    height: 100%;
    width: calc(200% + 20px);
    will-change: transform;
    backface-visibility: hidden;
    perspective: 1000px;
}

.carousel-track.reverse {
    animation: scrollReverse 35s linear infinite;
}

@keyframes scroll {
    0% { 
        transform: translate3d(0, 0, 0); 
    }
    100% { 
        transform: translate3d(calc(-50% - 10px), 0, 0); 
    }
}

@keyframes scrollReverse {
    0% { 
        transform: translate3d(calc(-50% - 10px), 0, 0); 
    }
    100% { 
        transform: translate3d(0, 0, 0); 
    }
}

.image-card {
    flex: none;
    width: 500px;
    height: 320px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backface-visibility: hidden;
    transform: translateZ(0);
}

.image-card:hover {
    transform: translateY(-1px) scale(1.03) translateZ(0);
}

.image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Video Section */
.video-section {
    position: relative;
    z-index: 100;
    margin: 50px auto;
    max-width: 800px;
    padding: 0 20px;
}

.video-container {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    transition: all 0.3s ease;
}

.video-container:hover {
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}

.video-container video {
    width: 100%;
    height: auto;
    border-radius: 15px;
    outline: none;
    background: #000;
}

/* Responsive */
@media (max-width: 1400px) {
    .image-card {
        width: 400px;
        height: 256px;
    }
    
    .carousel-container {
        height: 316px;
        padding: 15px 0;
        margin-bottom: 10px;
    }
}

@media (max-width: 1200px) {
    .image-card {
        width: 350px;
        height: 224px;
    }
    
    .carousel-container {
        height: 284px;
        padding: 15px 0;
        margin-bottom: 10px;
    }
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2.5rem;
        padding: 15px 25px;
    }
    
    .header-logo {
        max-height: 200px;
        max-width: 600px;
        margin-bottom: 15px;
    }
    
    .copyable-box {
        font-size: 12px;
        padding: 10px 16px;
    }
    
    .top-nav {
        top: 15px;
        right: 15px;
        gap: 10px;
    }
    
    .nav-link {
        padding: 10px 12px;
        width: 45px;
        height: 45px;
    }
    
    .nav-logo {
        width: 20px;
        height: 20px;
    }
    
    .image-card {
        width: 250px;
        height: 160px;
    }
    
    .carousel-container {
        height: 220px;
        padding: 15px 0;
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .image-card {
        width: 200px;
        height: 128px;
    }
    
    .carousel-container {
        height: 188px;
        padding: 15px 0;
        margin-bottom: 10px;
    }
}

/* Extra Mobile Optimizations */
@media (max-width: 480px) {
    body {
        font-size: 14px; /* Improve readability */
        line-height: 1.4;
        padding: 0 10px;
    }

    header {
        padding: 40px 10px 20px;
    }

    header h1 {
        font-size: 1.8rem;
        padding: 10px 15px;
        border-radius: 10px;
    }

    .header-text {
        font-size: 1rem;
        margin-bottom: 15px;
    }

    .top-nav {
        top: 10px;
        right: 10px;
        gap: 8px;
    }

    .nav-link {
        width: 40px;
        height: 40px;
        padding: 8px;
    }

    .nav-logo {
        width: 18px;
        height: 18px;
    }

    .copyable-box {
        width: 100%;
        font-size: 12px;
        text-align: center;
        padding: 8px 12px;
    }

    .carousel-container {
        height: auto; /* let content size naturally */
        padding: 10px 0;
    }

    .image-card {
        width: 160px;
        height: 110px;
    }

    .video-container {
        padding: 10px;
    }

    .video-container video {
        border-radius: 10px;
    }
}

/* Fix header logo on small screens */
@media (max-width: 480px) {
  .header-logo {
    max-width: 90%;
    max-height: 120px; /* keeps it neat */
    height: auto;
  }
}