/* General Resets & Base Styles */
:root {
    --color-primary-red: #000000; /* Main Red */
    --color-darker-red: #000000; /* Darker Red for sections */
    --color-gold: #FFD700; /* Gold for accents */
    --color-charcoal: #222222; /* Dark grey for text/elements */
    --color-black: #000000;
    --color-white: #FFFFFF;
    --color-electric-blue: #00FFFF; /* For Degen accent */

    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Poppins', sans-serif;
}

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

body {
    font-family: var(--font-body);
    color: var(--color-white); /* Default text color */
    background-color: var(--color-primary-red); /* Overall background */
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll due to animations */
}

h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--color-gold);
    text-align: center;
    margin-bottom: 20px;
}

h1 { font-size: 3.5em; }
h2 { font-size: 2.5em; }
h3 { font-size: 1.8em; }

p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: var(--color-white);
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--color-gold);
    color: var(--color-charcoal);
    border: 2px solid var(--color-gold);
}

.btn-primary:hover {
    background-color: var(--color-white);
    color: var(--color-primary-red);
    border-color: var(--color-white);
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    overflow: hidden;
    min-height: 100vh; /* Changed from 60vh to 100vh */
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0f2027; /* fallback */
}

.hero-bg-animation {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 0;
    background: linear-gradient(120deg, #0f2027, #2c5364, #1c92d2, #f2fcfe);
    background-size: 400% 400%;
    animation: gradientMove 10s ease-in-out infinite;
    opacity: 0.85;
}

@keyframes gradientMove {
    0% {background-position: 0% 50%;}
    50% {background-position: 100% 50%;}
    100% {background-position: 0% 50%;}
}


.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
    padding: 3rem 1rem;
}

.hero-content h1 {
    font-family: 'Montserrat', 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 2.8rem;
    letter-spacing: 1px;
    line-height: 1.15;
    margin-bottom: 1rem;
    text-shadow: 0 4px 24px rgba(0,0,0,0.25);
    animation: fadeInDown 1.2s cubic-bezier(.77,0,.18,1) both;
}

.hero-content p {
    font-family: 'Poppins', 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 2rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.15);
    animation: fadeInUp 1.5s cubic-bezier(.77,0,.18,1) both;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-40px);}
    to { opacity: 1; transform: translateY(0);}
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px);}
    to { opacity: 1; transform: translateY(0);}
}

/* --- Our Pillars Section --- */
.our-pillars-section {
    background-color: var(--color-darker-red); /* Slightly different red for contrast */
    padding: 80px 20px;
    text-align: center;
}

.our-pillars-section h2 {
    color: var(--color-white);
    margin-bottom: 60px;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.pillar-card {
    background-color: var(--color-charcoal);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pillar-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.pillar-icon {
    width: 100px;
    height: 100px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.5)); /* Golden glow effect */
}

/* Pillar specific icons (place your images in the /images folder) */
.pillar-card.trading .pillar-icon { background-image: url('images/crypto_trading.png'); }
.pillar-card.yapping .pillar-icon { background-image: url('images/yappers_chat.png'); }
.pillar-card.airdrops .pillar-icon { background-image: url('images/airdrops_coins.png'); }
.pillar-card.nfts .pillar-icon { background-image: url('images/nfts_art.png'); }
.pillar-card.degen .pillar-icon { background-image: url('images/degen_glitch.png'); }

.pillar-card h3 {
    color: var(--color-gold);
    margin-bottom: 10px;
}

.pillar-card p {
    color: var(--color-white);
    font-size: 0.95em;
    margin-bottom: 0;
}

/* --- Join Community Section --- */
.join-community-section {
    background-color: var(--color-black); /* Dark background for button pop */
    padding: 80px 20px;
    text-align: center;
    position: relative; /* For background patterns */
    overflow: hidden;
}

.join-community-section h2 {
    color: var(--color-gold);
    margin-bottom: 20px;
}

.join-community-section p {
    color: var(--color-white);
    font-size: 1.2em;
    margin-bottom: 50px;
}

.button-container {
    display: flex;
    flex-wrap: wrap; /* Allows buttons to wrap on smaller screens */
    justify-content: center;
    gap: 30px; /* Space between buttons */
    margin-bottom: 40px;
}

.animated-btn {
    display: flex; /* For icon/text alignment if needed */
    align-items: center;
    justify-content: center;
    padding: 20px 40px;
    border-radius: 10px; /* Slightly less rounded than primary button */
    font-size: 1.3em;
    font-weight: bold;
    text-transform: uppercase;
    color: var(--color-charcoal);
    background-color: var(--color-gold);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden; /* Important for some animations */
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.animated-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.animated-btn .platform {
    font-size: 0.7em;
    margin-left: 10px;
    opacity: 0.8;
}

/* Specific Button Animations (CSS-only examples) */

/* Yappers Button: Pop/Bounce Effect */
.btn-yappers {
    animation: btnPopIn 0.8s ease-out forwards;
    animation-delay: 0.2s; /* Stagger animation */
}

@keyframes btnPopIn {
    0% { transform: scale(0); opacity: 0; }
    70% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); }
}

.btn-yappers:hover {
    animation: btnYappersHover 0.4s ease-in-out forwards;
}

@keyframes btnYappersHover {
    0% { transform: scale(1); }
    50% { transform: scale(1.05) rotate(2deg); }
    100% { transform: scale(1.02) rotate(-2deg); } /* Slight wobble */
}


/* Airdrops Button: Golden Glow Effect */
.btn-airdrops {
    animation: btnPopIn 0.8s ease-out forwards;
    animation-delay: 0.4s; /* Stagger animation */
    /* Continuous subtle glow */
    box-shadow: 0 0 15px var(--color-gold), 0 0 25px var(--color-gold) inset;
    transition: box-shadow 0.5s ease-in-out;
}

.btn-airdrops:hover {
    box-shadow: 0 0 25px var(--color-gold), 0 0 40px var(--color-gold) inset;
    animation: btnAirdropsHover 0.8s infinite alternate ease-in-out;
}

@keyframes btnAirdropsHover {
    0% { transform: scale(1); filter: brightness(1); }
    100% { transform: scale(1.02); filter: brightness(1.2); }
}

/* Initial state for elements to be animated on scroll */
.pillar-card,
.button-container {
    opacity: 0;
    transform: translateY(50px); /* Start below its final position */
    transition: opacity 1s ease-out, transform 1s ease-out; /* Smooth transition */
}

/* State when element is visible */
.pillar-card.is-visible,
.button-container.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* For staggered effect with Intersection Observer, you'd apply delays via JS */
/* Example: you'd use a loop in JS to add different delays to each card when 'is-visible' is applied */

/* Keep your existing hover animations for buttons as they are. */
/* If you want the pop-in for buttons to be scroll-triggered, remove the `animation`
   property from the .btn-yappers, .btn-airdrops, .btn-degen in the main CSS,
   and add the `is-visible` class via JS when their container is visible.
   You'd need more specific JS for staggered button animation within the container. */

/* Example of a CSS wobble/glitch triggered by JS adding a class */
.btn-yappers.wobble-active:hover { /* Note: This combines the hover with the active class */
    animation: btnYappersHover 0.4s ease-in-out forwards;
}
.btn-degen.glitch-active:hover { /* Note: This combines the hover with the active class */
    animation: btnDegenHover 0.2s infinite alternate;
}



/* Degen Button: High-Energy Flicker/Vibrate */
.btn-degen {
    background-color: var(--color-charcoal); /* Degen button darker background */
    color: var(--color-gold);
    border: 2px solid var(--color-electric-blue); /* Electric blue border */
    box-shadow: 0 0 10px var(--color-electric-blue);
    animation: btnPopIn 0.8s ease-out forwards;
    animation-delay: 0.6s; /* Stagger animation */
}

.btn-degen:hover {
    background-color: var(--color-black);
    color: var(--color-electric-blue);
    animation: btnDegenHover 0.2s infinite alternate; /* Rapid flicker */
}

@keyframes btnDegenHover {
    0% { transform: translateX(0px); box-shadow: 0 0 15px var(--color-electric-blue), 0 0 25px var(--color-electric-blue) inset; }
    25% { transform: translateX(-2px) translateY(2px); }
    50% { transform: translateX(2px) translateY(-2px); }
    75% { transform: translateX(-2px); }
    100% { transform: translateX(0px); box-shadow: 0 0 20px var(--color-electric-blue), 0 0 35px var(--color-electric-blue) inset; }
}


.trust-message {
    font-size: 1em;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 20px;
}


/* --- Footer --- */
footer {
    background-color: var(--color-charcoal);
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    padding: 30px 20px;
    font-size: 0.9em;
}

/* --- Responsive Design (Basic) --- */
@media (max-width: 768px) {
    h1 { font-size: 2.8em; }
    h2 { font-size: 2em; }
    .hero-content { padding: 15px; }
    .hero-content p { font-size: 1.1em; }
    .pillars-grid { grid-template-columns: 1fr; } /* Stack cards on mobile */
    .animated-btn { padding: 15px 30px; font-size: 1.1em; }
    .button-container { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
    h1 { font-size: 2.2em; }
    h2 { font-size: 1.8em; }
    .hero-content p { font-size: 1em; }
    .animated-btn { font-size: 1em; padding: 12px 25px; }
}
