* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-purple: #8b4789;
    --secondary-purple: #6b3567;
    --accent-green: #4ade80;
    --dark-purple: #2d1b3d;
    --light-purple: #b47eb3;
    --space-black: #0a0a0f;
    --star-white: #ffffff;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--space-black);
    color: var(--star-white);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Animated Starfield Background */
.stars, .twinkling {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: -1;
}

.stars {
    background: #000 url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAEklEQVQIW2P4//+/AxAzgDADABdiBP8QZVl4AAAAAElFTkSuQmCC') repeat top center;
}

.twinkling {
    background: transparent url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAEklEQVQIW2P4//+/AxAzgDADABdiBP8QZVl4AAAAAElFTkSuQmCC') repeat top center;
    animation: move-twink-back 200s linear infinite;
}

@keyframes move-twink-back {
    from {background-position: 0 0;}
    to {background-position: -10000px 5000px;}
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--primary-purple);
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, var(--primary-purple), var(--accent-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--star-white);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--accent-green);
    transform: translateY(-2px);
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(139, 71, 137, 0.2);
    border-radius: 20px;
    border: 1px solid var(--primary-purple);
}

.social-link:hover {
    background: rgba(139, 71, 137, 0.4);
    border-color: var(--accent-green);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8rem 2rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
    gap: 4rem;
}

.hero-content {
    flex: 1;
    z-index: 10;
}

.glitch {
    font-size: 4rem;
    font-weight: bold;
    text-transform: uppercase;
    position: relative;
    text-shadow: 0.05em 0 0 var(--accent-green), -0.025em -0.05em 0 var(--primary-purple),
                 0.025em 0.05em 0 var(--accent-green);
    animation: glitch 500ms infinite;
    margin-bottom: 1rem;
}

@keyframes glitch {
    0% { text-shadow: 0.05em 0 0 var(--accent-green), -0.025em -0.05em 0 var(--primary-purple), 0.025em 0.05em 0 var(--accent-green); }
    14% { text-shadow: 0.05em 0 0 var(--accent-green), -0.025em -0.05em 0 var(--primary-purple), 0.025em 0.05em 0 var(--accent-green); }
    15% { text-shadow: -0.05em -0.025em 0 var(--accent-green), 0.025em 0.025em 0 var(--primary-purple), -0.05em -0.05em 0 var(--accent-green); }
    49% { text-shadow: -0.05em -0.025em 0 var(--accent-green), 0.025em 0.025em 0 var(--primary-purple), -0.05em -0.05em 0 var(--accent-green); }
    50% { text-shadow: 0.025em 0.05em 0 var(--accent-green), 0.05em 0 0 var(--primary-purple), 0 -0.05em 0 var(--accent-green); }
    99% { text-shadow: 0.025em 0.05em 0 var(--accent-green), 0.05em 0 0 var(--primary-purple), 0 -0.05em 0 var(--accent-green); }
    100% { text-shadow: -0.025em 0 0 var(--accent-green), -0.025em -0.025em 0 var(--primary-purple), -0.025em -0.05em 0 var(--accent-green); }
}

.ticker {
    font-size: 2.5rem;
    color: var(--accent-green);
    font-weight: bold;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 20px var(--accent-green);
}

.tagline {
    font-size: 1.2rem;
    color: var(--light-purple);
    margin-bottom: 2rem;
    font-style: italic;
    line-height: 1.8;
    min-height: 3.6rem; /* Prevents layout shift during typing */
}

/* NEW: Contract Address Copy Styling */
.contract-container {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--primary-purple);
    border-radius: 8px;
    padding: 12px 20px;
    margin: 0 0 2rem 0; /* Adjusted margin */
    display: inline-flex;
    gap: 15px;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    max-width: 100%;
}

.contract-container:hover {
    background: rgba(139, 71, 137, 0.3);
    border-color: var(--accent-green);
    transform: scale(1.02);
    box-shadow: 0 0 15px rgba(74, 222, 128, 0.2);
}

.contract-label {
    color: var(--accent-green);
    font-weight: bold;
}

.contract-address {
    font-family: 'Courier New', monospace;
    color: var(--star-white);
    word-break: break-all;
    font-size: 0.9rem;
}

/* Buttons */
.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-flex; /* Changed to inline-flex for icon alignment */
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-purple), var(--accent-green));
    color: var(--star-white);
    border: none;
    box-shadow: 0 0 30px rgba(74, 222, 128, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 40px rgba(74, 222, 128, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--star-white);
    border: 2px solid var(--primary-purple);
}

.btn-secondary:hover {
    background: var(--primary-purple);
    transform: translateY(-3px);
}

.btn-large {
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
}

/* NEW: Ripple Animation for Buttons */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Planet Container */
.planet-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px;
}

#planetCanvas {
    width: 100%;
    display: flex;
    justify-content: center;
}

/* Sections */
section {
    padding: 6rem 2rem;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

h2 {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, var(--primary-purple), var(--accent-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* NEW: Scroll Animations */
.hidden {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.visible {
    opacity: 1;
    transform: translateY(0);
}

/* About Section */
.about-section {
    background: linear-gradient(180deg, transparent, rgba(139, 71, 137, 0.1), transparent);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.about-card {
    background: rgba(45, 27, 61, 0.6);
    padding: 2rem;
    border-radius: 20px;
    border: 2px solid var(--primary-purple);
    transition: all 0.3s ease;
}

.about-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-green);
    box-shadow: 0 10px 40px rgba(74, 222, 128, 0.2);
}

.about-card h3 {
    color: var(--accent-green);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.about-card p {
    margin-bottom: 1rem;
    color: var(--light-purple);
}

/* NEW: Icon styles for About Cards */
.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--accent-green), var(--primary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

blockquote {
    border-left: 4px solid var(--accent-green);
    padding-left: 1rem;
    margin-top: 1.5rem;
    font-style: italic;
    color: var(--star-white);
}

/* Tokenomics Section */
.tokenomics-section {
    background: rgba(10, 10, 15, 0.8);
}

.tokenomics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.token-card {
    background: linear-gradient(135deg, rgba(139, 71, 137, 0.3), rgba(45, 27, 61, 0.6));
    padding: 2rem;
    border-radius: 20px;
    border: 2px solid var(--primary-purple);
    text-align: center;
    transition: all 0.3s ease;
}

.token-card:hover {
    transform: scale(1.05);
    border-color: var(--accent-green);
    box-shadow: 0 0 30px rgba(74, 222, 128, 0.3);
}

.token-icon {
    margin-bottom: 1rem;
}

/* NEW: Gradient style for Token Icons (FontAwesome) */
.token-icon i {
    font-size: 3rem;
    background: linear-gradient(135deg, var(--accent-green), var(--star-white));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.token-card h3 {
    color: var(--accent-green);
    margin-bottom: 1rem;
}

.token-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--star-white);
    margin-bottom: 0.5rem;
    word-break: break-all;
}

/* Gallery Section */
.gallery-section {
    background: linear-gradient(180deg, transparent, rgba(74, 222, 128, 0.05), transparent);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid var(--primary-purple);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
    border-color: var(--accent-green);
    box-shadow: 0 0 40px rgba(74, 222, 128, 0.4);
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(10, 10, 15, 0.9), transparent);
    padding: 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay p {
    color: var(--star-white);
    font-weight: bold;
    text-align: center;
}

/* Quotes Section */
.quotes-section {
    background: rgba(45, 27, 61, 0.3);
}

.quotes-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.quote-card {
    background: linear-gradient(135deg, rgba(139, 71, 137, 0.2), rgba(45, 27, 61, 0.4));
    padding: 2rem;
    border-radius: 20px;
    border: 2px solid var(--primary-purple);
    transition: all 0.3s ease;
    position: relative;
}

.quote-card:hover {
    border-color: var(--accent-green);
    transform: translateY(-5px);
}

.quote-icon {
    font-size: 2rem;
    color: rgba(139, 71, 137, 0.5);
    margin-bottom: 1rem;
    display: block;
}

.quote-text {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--light-purple);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.quote-author {
    color: var(--accent-green);
    font-weight: bold;
    text-align: right;
}

/* CTA Section */
.cta-section {
    text-align: center;
    background: linear-gradient(135deg, rgba(139, 71, 137, 0.2), rgba(74, 222, 128, 0.1));
    border-radius: 30px;
    padding: 4rem 2rem;
    margin: 4rem 2rem;
}

.cta-section h2 {
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.3rem;
    color: var(--light-purple);
    margin-bottom: 2rem;
}

.cta-section .cta-buttons {
    justify-content: center;
}

/* Footer */
footer {
    background: rgba(10, 10, 15, 0.95);
    border-top: 2px solid var(--primary-purple);
    padding: 3rem 2rem 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--accent-green);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--light-purple);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent-green);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--primary-purple);
    color: var(--light-purple);
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 900px) {
    .hero {
        flex-direction: column-reverse; /* Stacks text below planet on mobile if needed, or remove for top */
        text-align: center;
        padding-top: 6rem;
        gap: 2rem;
    }
    
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .contract-container {
        justify-content: center;
    }

    .cta-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .glitch {
        font-size: 2.5rem;
    }

    .ticker {
        font-size: 2rem;
    }

    .tagline {
        font-size: 1rem;
    }

    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .desktop-only {
        display: none; /* Hides the "@Planet_Rylos" text on mobile, showing only the icon */
    }

    h2 {
        font-size: 2rem;
    }

    .gallery-grid,
    .about-grid,
    .tokenomics-grid,
    .quotes-carousel {
        grid-template-columns: 1fr;
    }
    
    .cta-section {
        margin: 4rem 1rem;
        padding: 3rem 1rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection Color */
::selection {
    background: var(--accent-green);
    color: var(--space-black);
}