/* ================================
   GLOBAL STYLES & RESET
   ================================ */

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

:root {
    --gold: #e63946;
    --black: #000000;
    --white: #fefefe;
    --red: #e63946;
    --accent-gold: #f9c600;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--white);
    background: var(--black) url('Red background.png') center top / cover repeat scroll;
    overflow-x: hidden;
    line-height: 1.6;
    min-height: 100vh;
    animation: driftStars 60s ease-in-out infinite;
}

@keyframes driftStars {
    0% {
        background-position: 0% 0%;
    }
    25% {
        background-position: 20% 20%;
    }
    50% {
        background-position: 0% 40%;
    }
    75% {
        background-position: -20% 20%;
    }
    100% {
        background-position: 0% 0%;
    }
}

/* ================================
   CONTAINER & LAYOUT
   ================================ */

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

section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 0;
    position: relative;
}

/* ================================
   HERO SECTION
   ================================ */

.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero-content {
    z-index: 2;
}

/* ================================
   INTRODUCTION ANIMATION - LOTUS BLOOMING
   ================================ */

.rock-container {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
    animation: lotusBlooming 1.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    opacity: 0;
}

@keyframes lotusBlooming {
    0% {
        opacity: 0;
        transform: scale(0.3) rotate(-180deg);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.hero-title {
    animation: titleRise 1s ease-out 0.8s forwards;
    opacity: 0;
}

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

.hero-buttons {
    animation: buttonsAppear 0.8s ease-out 1.3s forwards;
    opacity: 0;
}

@keyframes buttonsAppear {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }
    60% {
        transform: translateY(-5px) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.scroll-indicator {
    animation: scrollFadeIn 1s ease-out 2s forwards, bounce 2s infinite 3s;
    opacity: 0;
}

@keyframes scrollFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.rock-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140%;
    height: 140%;
    background: radial-gradient(circle, rgba(230, 57, 70, 0.8) 0%, rgba(230, 57, 70, 0.4) 40%, transparent 70%);
    border-radius: 50%;
    animation: steadyGlow 3s ease-in-out infinite;
    z-index: -1;
}

@keyframes steadyGlow {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.7; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.9; }
}

.rock-image {
    max-width: 280px;
    width: 100%;
    height: auto;
    display: block;
    animation: floatRock 6s ease-in-out infinite;
    filter: drop-shadow(0 0 40px rgba(230, 57, 70, 0.7));
    cursor: pointer;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.rock-image:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 50px rgba(230, 57, 70, 0.9));
}

@keyframes floatRock {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* ================================
   HERO TEXT
   ================================ */

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 1.5rem;
    text-shadow: 0 0 20px rgba(230, 57, 70, 0.5);
    letter-spacing: 1px;
}

.hero-subtext {
    font-size: 1.25rem;
    color: var(--white);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
    opacity: 0.9;
}

/* ================================
   BUTTONS
   ================================ */

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--red) 0%, #c62828 100%);
    color: var(--white);
    box-shadow: 0 4px 25px rgba(230, 57, 70, 0.6);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 40px rgba(230, 57, 70, 0.8);
}

.btn-secondary {
    background: transparent;
    color: var(--gold);
    border: 2px solid var(--gold);
    box-shadow: 0 0 20px rgba(230, 57, 70, 0.3);
}

.btn-secondary:hover {
    background: var(--gold);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(230, 57, 70, 0.6);
}

.btn-community {
    background: transparent;
    color: var(--gold);
    border: 2px solid var(--gold);
    padding: 0.9rem 2rem;
    font-size: 1rem;
}

.btn-community:hover {
    background: var(--gold);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(230, 57, 70, 0.5);
}

/* ================================
   SCROLL INDICATOR
   ================================ */

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border-left: 3px solid var(--gold);
    border-bottom: 3px solid var(--gold);
    transform: rotate(-45deg);
}

/* ================================
   SCROLL-TRIGGERED ANIMATIONS
   ================================ */

section {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

section.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.hero-section {
    opacity: 1;
    transform: translateY(0);
}

/* ================================
   ABOUT SECTION
   ================================ */

.about-section {
    position: relative;
    min-height: auto;
    padding: 6rem 0;
}

.floating-stars {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 2.5rem;
    color: var(--gold);
    text-align: center;
    margin-bottom: 3rem;
    text-shadow: 0 0 20px rgba(230, 57, 70, 0.5);
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

section.fade-in .section-title {
    opacity: 1;
    transform: scale(1);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    line-height: 1.9;
    color: rgba(254, 254, 254, 0.9);
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

section.fade-in .about-content p {
    opacity: 1;
    transform: translateX(0);
}

section.fade-in .about-content p:nth-child(1) { transition-delay: 0.2s; }
section.fade-in .about-content p:nth-child(2) { transition-delay: 0.3s; }
section.fade-in .about-content p:nth-child(3) { transition-delay: 0.4s; }
section.fade-in .about-content p:nth-child(4) { transition-delay: 0.5s; }

.about-content .highlight {
    font-size: 1.4rem;
    color: var(--gold);
    font-weight: 600;
    margin-top: 2rem;
    text-shadow: 0 0 15px rgba(230, 57, 70, 0.4);
}

/* ================================
   TOKENOMICS SECTION
   ================================ */

.tokenomics-section {
    padding: 6rem 0;
    min-height: auto;
}

.token-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.token-card {
    background: rgba(230, 57, 70, 0.05);
    border: 2px solid rgba(230, 57, 70, 0.3);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px) scale(0.95);
}

section.fade-in .token-card {
    animation: cardAppear 0.6s ease forwards;
}

section.fade-in .token-card:nth-child(1) { animation-delay: 0.1s; }
section.fade-in .token-card:nth-child(2) { animation-delay: 0.2s; }
section.fade-in .token-card:nth-child(3) { animation-delay: 0.3s; }
section.fade-in .token-card:nth-child(4) { animation-delay: 0.4s; }
section.fade-in .token-card:nth-child(5) { animation-delay: 0.5s; }

@keyframes cardAppear {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.token-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(230, 57, 70, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
}

.token-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
    box-shadow: 0 0 30px rgba(230, 57, 70, 0.4);
}

.token-card:hover::before {
    left: 100%;
}

.token-card.full-width {
    grid-column: 1 / -1;
}

.token-label {
    font-size: 0.9rem;
    color: rgba(254, 254, 254, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.token-value {
    font-size: 1.5rem;
    color: var(--gold);
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
}

.token-value.contract {
    font-size: 1.2rem;
    word-break: break-all;
}

.token-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ================================
   COMMUNITY SECTION
   ================================ */

.community-section {
    padding: 6rem 0;
    min-height: auto;
}

.community-text {
    text-align: center;
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.9;
    color: rgba(254, 254, 254, 0.9);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease 0.2s, transform 0.6s ease 0.2s;
}

section.fade-in .community-text {
    opacity: 1;
    transform: translateY(0);
}

.community-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.community-buttons .btn {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

section.fade-in .community-buttons .btn:nth-child(1) {
    opacity: 1;
    transform: scale(1);
    transition-delay: 0.4s;
}

section.fade-in .community-buttons .btn:nth-child(2) {
    opacity: 1;
    transform: scale(1);
    transition-delay: 0.5s;
}

/* ================================
   FOOTER
   ================================ */

.footer {
    padding: 3rem 0 2rem;
    border-top: 1px solid rgba(230, 57, 70, 0.2);
    margin-top: 4rem;
}

.footer-content {
    text-align: center;
}

.footer-social {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.social-icon {
    color: var(--gold);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--gold);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--gold);
    color: var(--white);
    transform: translateY(-3px) rotate(360deg);
    box-shadow: 0 0 20px rgba(230, 57, 70, 0.6);
}

.footer-text p {
    margin: 0.5rem 0;
    color: rgba(254, 254, 254, 0.8);
}

.footer-subtext {
    color: var(--gold);
    font-size: 0.9rem;
}

/* ================================
   PARALLAX EFFECT
   ================================ */

.parallax-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

/* ================================
   RESPONSIVE DESIGN
   ================================ */

@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtext {
        font-size: 1.1rem;
    }
    
    .rock-image {
        max-width: 350px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtext {
        font-size: 1rem;
    }
    
    .rock-image {
        max-width: 280px;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .btn {
        width: 100%;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .about-content p {
        font-size: 1rem;
    }
    
    .about-content .highlight {
        font-size: 1.2rem;
    }
    
    .token-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .community-text {
        font-size: 1rem;
    }
    
    .community-buttons {
        flex-direction: column;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .footer-social {
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .rock-image {
        max-width: 220px;
    }
    
    .btn {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .token-value {
        font-size: 1.2rem;
    }
}

/* ================================
   ACCESSIBILITY
   ================================ */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ================================
   JOIN X BUTTON (TOP RIGHT)
   ================================ */

.join-x-btn {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 999;
    padding: 1rem 2rem;
    background: var(--gold);
    color: var(--white);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 0 30px rgba(230, 57, 70, 0.6), 0 0 50px rgba(230, 57, 70, 0.4);
    animation: joinButtonGlow 2s ease-in-out infinite;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes joinButtonGlow {
    0%, 100% { 
        box-shadow: 0 0 30px rgba(230, 57, 70, 0.6), 0 0 50px rgba(230, 57, 70, 0.4);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 40px rgba(230, 57, 70, 0.8), 0 0 70px rgba(230, 57, 70, 0.5);
        transform: scale(1.05);
    }
}

.join-x-btn:hover {
    background: #ffffff;
    color: var(--red);
    box-shadow: 0 0 50px rgba(230, 57, 70, 0.9), 0 0 90px rgba(230, 57, 70, 0.6);
    transform: scale(1.1) translateY(-2px);
}

/* ================================
   UTILITY CLASSES
   ================================ */

.text-center {
    text-align: center;
}

.fade-in {
    animation: fadeIn 1s ease-out;
}
