/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 80px 0 120px;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(51, 224, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.logo-container {
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.logo {
    max-width: 400px;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(51, 224, 255, 0.3));
    animation: logoGlow 3s ease-in-out infinite alternate;
}

@keyframes logoGlow {
    0% { filter: drop-shadow(0 0 20px rgba(51, 224, 255, 0.3)); }
    100% { filter: drop-shadow(0 0 30px rgba(51, 224, 255, 0.6)); }
}

.title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    margin-bottom: 20px;
    color: transparent;
    -webkit-text-stroke: 3px #33e0ff;
    text-stroke: 3px #33e0ff;
    text-shadow: 
        0 0 10px rgba(51, 224, 255, 0.8),
        0 0 20px rgba(51, 224, 255, 0.6),
        0 0 30px rgba(51, 224, 255, 0.4),
        0 0 40px rgba(51, 224, 255, 0.2);
    position: relative;
    z-index: 2;
    animation: titleGlow 2s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0% {
        text-shadow: 
            0 0 10px rgba(51, 224, 255, 0.8),
            0 0 20px rgba(51, 224, 255, 0.6),
            0 0 30px rgba(51, 224, 255, 0.4),
            0 0 40px rgba(51, 224, 255, 0.2);
    }
    100% {
        text-shadow: 
            0 0 15px rgba(51, 224, 255, 1),
            0 0 25px rgba(51, 224, 255, 0.8),
            0 0 35px rgba(51, 224, 255, 0.6),
            0 0 45px rgba(51, 224, 255, 0.4);
    }
}

.tagline {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #33e0ff;
    margin-bottom: 30px;
    text-shadow: 0 0 20px rgba(51, 224, 255, 0.4);
    position: relative;
    z-index: 2;
}

.description {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: #cccccc;
    max-width: 600px;
    margin: 0 auto 40px;
    position: relative;
    z-index: 2;
}

/* Hero Links */
.hero-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    position: relative;
    z-index: 2;
    flex-wrap: wrap;
}

.hero-link {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(51, 224, 255, 0.1);
    border: 1px solid rgba(51, 224, 255, 0.3);
    border-radius: 50px;
    padding: 15px 25px;
    color: #33e0ff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(51, 224, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.hero-link:hover {
    background: rgba(51, 224, 255, 0.2);
    border-color: rgba(51, 224, 255, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(51, 224, 255, 0.3);
    color: #33e0ff;
    text-decoration: none;
}

.hero-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.hero-link:hover::before {
    left: 100%;
}

.hero-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(67%) sepia(100%) saturate(2000%) hue-rotate(180deg) brightness(1.2);
    transition: all 0.3s ease;
}

.hero-link:hover .hero-logo {
    transform: scale(1.1);
    filter: brightness(0) saturate(100%) invert(67%) sepia(100%) saturate(2000%) hue-rotate(180deg) brightness(1.5);
}

/* Specific styling for X logo */
.hero-link[aria-label="Join X Community"] .hero-logo {
    filter: brightness(0) saturate(100%) invert(67%) sepia(100%) saturate(2000%) hue-rotate(180deg) brightness(1.2);
}

.hero-link[aria-label="Join X Community"]:hover .hero-logo {
    filter: brightness(0) saturate(100%) invert(67%) sepia(100%) saturate(2000%) hue-rotate(180deg) brightness(1.5);
}

/* Contract Section */
.contract-section {
    text-align: center;
    padding: 80px 0;
    border-top: 1px solid rgba(51, 224, 255, 0.2);
    border-bottom: 1px solid rgba(51, 224, 255, 0.2);
}

.contract-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: #33e0ff;
}

.contract-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    max-width: 800px;
    margin: 0 auto;
}

.contract-address {
    background: rgba(51, 224, 255, 0.1);
    border: 1px solid rgba(51, 224, 255, 0.3);
    border-radius: 8px;
    padding: 15px 20px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #33e0ff;
    word-break: break-all;
    flex: 1;
    min-width: 300px;
    text-shadow: 0 0 10px rgba(51, 224, 255, 0.3);
}

.copy-btn {
    background: linear-gradient(135deg, #33e0ff 0%, #1a9bb8 100%);
    border: none;
    border-radius: 8px;
    padding: 15px 30px;
    color: #000;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(51, 224, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(51, 224, 255, 0.4);
}

.copy-btn:active {
    transform: translateY(0);
}

.copy-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.copy-btn:hover::before {
    left: 100%;
}

/* News Section */
.news-section {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.8)), url('assets/trump-vs-xi.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    border-top: 1px solid rgba(51, 224, 255, 0.1);
    border-bottom: 1px solid rgba(51, 224, 255, 0.1);
    position: relative;
}

.news-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(51, 224, 255, 0.1) 0%, rgba(0, 0, 0, 0.6) 50%, rgba(51, 224, 255, 0.1) 100%);
    pointer-events: none;
    z-index: 1;
}

.news-section > * {
    position: relative;
    z-index: 2;
}

.news-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #33e0ff;
    text-shadow: 0 0 20px rgba(51, 224, 255, 0.5), 0 2px 4px rgba(0, 0, 0, 0.8);
}

.news-description {
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    font-weight: 500;
}

.news-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.news-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(51, 224, 255, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), 0 0 20px rgba(51, 224, 255, 0.2);
    backdrop-filter: blur(10px);
}

.news-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(51, 224, 255, 0.4), 0 0 30px rgba(51, 224, 255, 0.3);
    border-color: rgba(51, 224, 255, 0.6);
    background: rgba(0, 0, 0, 0.8);
}

.news-image {
    width: 100%;
    height: 200px;
    object-fit: contain;
    object-position: center;
    transition: all 0.3s ease;
    filter: grayscale(20%);
    background: rgba(0, 0, 0, 0.1);
}

.news-item:hover .news-image {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.news-overlay {
    display: none;
}

.news-number {
    display: none;
}

/* Lightbox Modal */
.news-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.news-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.news-lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(51, 224, 255, 0.3);
}

.news-lightbox-image {
    width: 100%;
    height: auto;
    display: block;
}

.news-lightbox-close {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.9);
    color: #33e0ff;
    border: 2px solid rgba(51, 224, 255, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1001;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.news-lightbox-close:hover {
    background: rgba(51, 224, 255, 0.2);
    border-color: rgba(51, 224, 255, 0.8);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(51, 224, 255, 0.3);
}

/* Embed Sections */
.embed-section {
    padding: 80px 0;
    text-align: center;
}

.embed-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 40px;
    color: #33e0ff;
}

.embed-container {
    max-width: 800px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(51, 224, 255, 0.2);
}

.truthsocial-embed,
.dexscreener-embed {
    width: 100%;
    border: none;
    display: block;
}

/* Community Section */
.community-section {
    text-align: center;
    padding: 80px 0;
    background: rgba(51, 224, 255, 0.05);
    border-radius: 20px;
    margin: 40px 0;
}

.community-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #33e0ff;
}

.community-section p {
    font-size: 1.1rem;
    color: #cccccc;
    margin-bottom: 40px;
}

/* Community Links */
.community-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.community-link {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(51, 224, 255, 0.1);
    border: 1px solid rgba(51, 224, 255, 0.3);
    border-radius: 50px;
    padding: 15px 25px;
    color: #33e0ff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(51, 224, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.community-link:hover {
    background: rgba(51, 224, 255, 0.2);
    border-color: rgba(51, 224, 255, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(51, 224, 255, 0.3);
    color: #33e0ff;
    text-decoration: none;
}

.community-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.community-link:hover::before {
    left: 100%;
}

.community-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(67%) sepia(100%) saturate(2000%) hue-rotate(180deg) brightness(1.2);
    transition: all 0.3s ease;
}

.community-link:hover .community-logo {
    transform: scale(1.1);
    filter: brightness(0) saturate(100%) invert(67%) sepia(100%) saturate(2000%) hue-rotate(180deg) brightness(1.5);
}

.community-btn {
    display: inline-block;
    background: linear-gradient(135deg, #33e0ff 0%, #1a9bb8 100%);
    color: #000;
    text-decoration: none;
    padding: 18px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(51, 224, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.community-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(51, 224, 255, 0.4);
    color: #000;
    text-decoration: none;
}

.community-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.community-btn:hover::before {
    left: 100%;
}

/* Toast Notification */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #33e0ff 0%, #1a9bb8 100%);
    color: #000;
    padding: 15px 25px;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(51, 224, 255, 0.4);
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 1000;
}

.toast.show {
    transform: translateX(0);
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    border-top: 1px solid rgba(51, 224, 255, 0.1);
}

.footer p {
    font-size: 0.75rem;
    color: #666;
    margin: 0;
}

.footer-link {
    color: #33e0ff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: #1a9bb8;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 60px 0 80px;
    }
    
    .logo {
        max-width: 250px;
    }
    
    .contract-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .contract-address {
        min-width: auto;
        font-size: 0.8rem;
    }
    
    .copy-btn {
        width: 100%;
    }
    
    .embed-section,
    .contract-section,
    .community-section,
    .news-section {
        padding: 60px 0;
    }
    
    .news-gallery {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
        padding: 0 10px;
    }
    
    .news-image {
        height: 150px;
    }
    
    .news-section {
        background-attachment: scroll;
    }
    
    .toast {
        right: 10px;
        left: 10px;
        transform: translateY(-100px);
    }
    
    .toast.show {
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 2.5rem;
    }
    
    .tagline {
        font-size: 1.5rem;
    }
    
    .description {
        font-size: 1rem;
    }
    
    .hero-links {
        gap: 20px;
        margin-top: 30px;
    }
    
    .hero-link {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .hero-logo {
        width: 20px;
        height: 20px;
    }
    
    .community-links {
        gap: 20px;
    }
    
    .community-link {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .community-logo {
        width: 20px;
        height: 20px;
    }
    
    .contract-address {
        font-size: 0.7rem;
        padding: 12px 15px;
    }
    
    .copy-btn,
    .community-btn {
        padding: 15px 25px;
        font-size: 1rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #33e0ff;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1a9bb8;
}
