/* ============================================
   CHIG MEMECOIN WEBSITE STYLES
   Purple theme, hip-hop cartoon vibes
   ============================================ */

/* === RESET & BASE STYLES === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #000;
    color: #fff;
    overflow-x: hidden;
    max-width: 100vw;
}

/* === COLOR VARIABLES === */
:root {
    --purple-main: #7B3FF2;
    --purple-dark: #5A2BB5;
    --purple-light: #9D6FFF;
    --purple-bright: #A855F7;
    --black: #000000;
    --white: #FFFFFF;
    --gray: #333333;
}

/* === NAVIGATION === */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    padding: 1.2rem 0;
    z-index: 1000;
    border-bottom: 3px solid var(--purple-main);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 3rem;
    padding: 0 2rem;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 700;
    font-family: 'Black Ops One', cursive;
    text-transform: uppercase;
    transition: color 0.3s ease, transform 0.2s ease;
    letter-spacing: 1px;
}

.nav-link:hover {
    color: var(--purple-bright);
    transform: translateY(-2px);
}

/* === HERO SECTION === */
.hero-section {
    min-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('image.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    padding: 5rem 1rem 1.5rem;
}

/* Purple overlay with brick wall */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(123, 63, 242, 0.35) 0%, rgba(90, 43, 181, 0.45) 50%, rgba(168, 85, 247, 0.35) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1400px;
    width: 100%;
}

.hero-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: nowrap;
}

.title-container {
    flex: 0 1 auto;
}

/* Title logo (chig3.png) with spraypaint animation */
.title-logo {
    max-width: 650px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(123, 63, 242, 0.8));
}

/* Spraypaint fade-in animation */
@keyframes spraypaint {
    0% {
        opacity: 0;
        filter: blur(10px) drop-shadow(0 10px 30px rgba(123, 63, 242, 0));
        transform: scale(0.9);
    }
    50% {
        filter: blur(5px) drop-shadow(0 10px 30px rgba(123, 63, 242, 0.4));
    }
    100% {
        opacity: 1;
        filter: blur(0) drop-shadow(0 10px 30px rgba(123, 63, 242, 0.8));
        transform: scale(1);
    }
}

.spraypaint-fade {
    animation: spraypaint 1.5s ease-out forwards;
}

/* Bouncing scroll arrow */
.scroll-arrow {
    display: block;
    width: 50px;
    height: 50px;
    margin: 1rem auto 0;
    color: var(--purple-bright);
    animation: bounce 2s infinite;
    cursor: pointer;
    transition: color 0.3s ease;
}

.scroll-arrow:hover {
    color: var(--purple-light);
}

.scroll-arrow svg {
    width: 100%;
    height: 100%;
}

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

.character-container {
    flex: 0 1 auto;
}

.character-img {
    max-width: 650px;
    width: 100%;
    height: auto;
    animation-delay: 0.3s;
}

/* === ABOUT SECTION === */
.about-section {
    background-color: var(--purple-main);
    padding: 5rem 2rem;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.section-title {
    font-family: 'Black Ops One', cursive;
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
}

.section-title.centered {
    text-align: center;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    position: relative;
}

.about-text {
    color: var(--white);
    flex: 1;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-description {
    font-size: 1.1rem;
    line-height: 1.7;
    font-weight: 400;
    background: rgba(0, 0, 0, 0.3);
    padding: 2rem;
    border-radius: 15px;
    border-left: 5px solid var(--purple-bright);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

/* Slide-in animation for about text */
@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-100px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(100px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-text {
    opacity: 0;
    transform: translateX(-100px);
}

.slide-in-text.animate {
    animation: slideInLeft 0.8s ease-out forwards;
}

.slide-in-text.animate:nth-child(2) {
    animation-delay: 0.2s;
}

.slide-in-text.animate:nth-child(3) {
    animation-delay: 0.4s;
}

.slide-in-text.animate:nth-child(4) {
    animation-delay: 0.6s;
}

.about-image {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    opacity: 0;
    transform: translateX(100px);
}

.about-image.animate {
    animation: slideInRight 0.8s ease-out 0.3s forwards;
}

.about-img {
    max-width: 400px;
    width: 100%;
    height: auto;
    border: 5px solid var(--white);
    border-radius: 20px;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.4));
}

/* === HOW TO BUY SECTION === */
.howtobuy-section {
    background-color: var(--black);
    padding: 5rem 2rem;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.step {
    background: linear-gradient(135deg, var(--purple-dark) 0%, var(--purple-main) 100%);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    text-align: center;
    border: 3px solid var(--purple-bright);
    transition: transform 0.3s ease;
    opacity: 0;
    transform: translateY(50px);
}

.step.animate {
    animation: slideUp 0.6s ease-out forwards;
}

.step.animate:nth-child(1) {
    animation-delay: 0.1s;
}

.step.animate:nth-child(2) {
    animation-delay: 0.2s;
}

.step.animate:nth-child(3) {
    animation-delay: 0.3s;
}

.step.animate:nth-child(4) {
    animation-delay: 0.4s;
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step:hover {
    transform: translateY(-10px);
}

.step-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.step-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.step-number {
    font-family: 'Bangers', cursive;
    font-size: 4rem;
    color: var(--white);
}

.step-title {
    font-family: 'Black Ops One', cursive;
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.step-description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--white);
}

/* Contract Address Box */
.contract-box {
    background: var(--purple-dark);
    border: 4px solid var(--purple-bright);
    border-radius: 15px;
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.contract-title {
    font-family: 'Black Ops One', cursive;
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.contract-address {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--black);
    padding: 1.5rem;
    border-radius: 10px;
    flex-wrap: wrap;
}

.contract-address code {
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    color: var(--purple-light);
    word-break: break-all;
    flex: 1;
    min-width: 200px;
}

.copy-btn {
    background: var(--purple-bright);
    color: var(--white);
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-family: 'Black Ops One', cursive;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    text-transform: uppercase;
}

.copy-btn:hover {
    background: var(--purple-light);
    transform: scale(1.05);
}

/* === SOCIALS SECTION === */
.socials-section {
    background-color: var(--purple-main);
    padding: 5rem 2rem;
}

.socials-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    max-width: 300px;
    margin: 0 auto;
}

.social-btn {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: var(--white);
    color: var(--purple-dark);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    text-decoration: none;
    border: 3px solid var(--purple-dark);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-weight: 700;
    opacity: 0;
    transform: scale(0.8);
}

.social-btn.animate {
    animation: popIn 0.5s ease-out forwards;
}

.social-btn.animate:nth-child(1) {
    animation-delay: 0.1s;
}

@keyframes popIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.social-btn:hover {
    transform: translateY(-5px) scale(1);
    box-shadow: 0 10px 25px rgba(123, 63, 242, 0.5);
}

.social-icon {
    width: 28px;
    height: 28px;
}

.social-icon-img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.social-text {
    font-family: 'Black Ops One', cursive;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* === FOOTER === */
.footer {
    background-color: var(--black);
    padding: 3rem 2rem;
    border-top: 3px solid var(--purple-main);
}

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

.footer-content p {
    color: var(--white);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

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

/* Tablets */
@media (max-width: 768px) {
    .nav-container {
        gap: 1.5rem;
        padding: 0 1.5rem;
    }
    
    .nav-link {
        font-size: 1rem;
    }
    
    .hero-section {
        min-height: auto;
        padding: 5rem 1rem 2rem;
    }
    
    .hero-main {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .title-logo {
        max-width: 450px;
        width: 100%;
    }
    
    .character-img {
        max-width: 400px;
        width: 100%;
    }
    
    .scroll-arrow {
        width: 45px;
        height: 45px;
    }
    
    .section-container {
        padding: 0 1rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .about-content {
        flex-direction: column;
        gap: 2.5rem;
    }
    
    .about-text {
        text-align: left;
    }
    
    .about-description {
        font-size: 1rem;
        padding: 1.5rem;
    }
    
    .about-image {
        order: -1;
    }
    
    .about-img {
        max-width: 350px;
        width: 100%;
    }
    
    .howtobuy-section {
        padding: 4rem 1.5rem;
    }
    
    .steps-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .step-icon {
        width: 50px;
        height: 50px;
    }
    
    .step-number {
        font-size: 3rem;
    }
    
    .contract-box {
        margin: 0 1rem;
    }
    
    .socials-section {
        padding: 4rem 1.5rem;
    }
    
    .socials-grid {
        flex-direction: column;
        width: 100%;
        align-items: center;
    }
    
    .social-btn {
        width: 100%;
        max-width: 350px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .nav-container {
        gap: 0.75rem;
        flex-wrap: wrap;
        padding: 0 1rem;
    }
    
    .nav-link {
        font-size: 0.85rem;
    }
    
    .hero-section {
        background-attachment: scroll;
        padding: 5rem 0.5rem 1.5rem;
        min-height: 60vh;
    }
    
    .hero-main {
        gap: 0.75rem;
        padding: 0;
        flex-direction: column;
    }
    
    .title-logo {
        max-width: 90%;
        width: 100%;
    }
    
    .character-img {
        max-width: 85%;
        width: 100%;
    }
    
    .scroll-arrow {
        width: 40px;
        height: 40px;
        margin: 0.75rem auto 0;
    }
    
    .section-title {
        font-size: 1.8rem;
        padding: 0 1rem;
    }
    
    .about-content {
        padding: 0;
        flex-direction: column;
        gap: 2rem;
    }
    
    .about-text {
        text-align: left;
        padding: 0 0.75rem;
    }
    
    .about-description {
        font-size: 0.9rem;
        padding: 1rem;
        line-height: 1.6;
    }
    
    .about-image {
        display: flex;
        justify-content: center;
        padding: 0 1rem;
    }
    
    .about-img {
        max-width: 280px;
        width: 100%;
    }
    
    .howtobuy-section {
        padding: 4rem 1rem;
    }
    
    .steps-container {
        gap: 1.5rem;
        padding: 0 0.5rem;
    }
    
    .step {
        padding: 1.75rem 1.25rem;
    }
    
    .step-icon {
        width: 40px;
        height: 40px;
    }
    
    .step-number {
        font-size: 2.5rem;
    }
    
    .step-title {
        font-size: 1.1rem;
    }
    
    .step-description {
        font-size: 0.9rem;
    }
    
    .contract-box {
        padding: 1.5rem;
        margin: 0 0.5rem;
    }
    
    .contract-title {
        font-size: 1.2rem;
    }
    
    .contract-address {
        flex-direction: column;
        padding: 1rem;
    }
    
    .contract-address code {
        font-size: 0.75rem;
        word-break: break-all;
    }
    
    .copy-btn {
        width: 100%;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .socials-section {
        padding: 4rem 1rem;
    }
    
    .socials-grid {
        padding: 0 1rem;
    }
    
    .social-btn {
        padding: 0.9rem 1.25rem;
    }
    
    .social-text {
        font-size: 0.9rem;
    }
    
    .footer {
        padding: 2rem 1rem;
    }
    
    .footer-content p {
        font-size: 0.8rem;
    }
}

