/* ===== CSS Variables ===== */
:root {
    --bg-dark: #0a0e27;
    --bg-section: #0f1435;
    --bg-card: rgba(255, 255, 255, 0.04);
    --purple: #9b59b6;
    --purple-light: #c39bd3;
    --purple-glow: #a855f7;
    --purple-deep: #6c3483;
    --ocean-blue: #1a1a4e;
    --text: #e8e8f0;
    --text-muted: #8888aa;
    --font-body: 'Space Grotesk', sans-serif;
    --font-display: 'Orbitron', sans-serif;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    background: var(--bg-dark);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    color: var(--purple-light);
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* ===== Bubbles ===== */
.bubbles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bubble {
    position: absolute;
    bottom: -20px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(168, 85, 247, 0.15), rgba(168, 85, 247, 0.03));
    border: 1px solid rgba(168, 85, 247, 0.08);
    animation: bubbleRise linear infinite;
}

@keyframes bubbleRise {
    0% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-110vh) translateX(40px) scale(0.5);
        opacity: 0;
    }
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: background 0.3s, box-shadow 0.3s;
}

.navbar.scrolled {
    background: rgba(10, 14, 39, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 2px 30px rgba(168, 85, 247, 0.1);
}

.nav-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.nav-logo-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.nav-logo-text {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 900;
    color: var(--purple-glow);
    text-shadow: 0 0 20px rgba(168, 85, 247, 0.5);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-links a {
    color: var(--text);
    padding: 13px 26px;
    border-radius: 10px;
    transition: all 0.3s;
    font-weight: 500;
    font-size: 1.45rem;
}

.nav-links a:hover {
    color: var(--purple-glow);
    background: rgba(168, 85, 247, 0.1);
}

.nav-socials {
    display: flex;
    gap: 20px;
    flex-shrink: 0;
}

.social-link {
    color: var(--text-muted);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.social-link:hover {
    color: var(--purple-glow);
    background: rgba(168, 85, 247, 0.15);
    transform: translateY(-2px);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: all 0.3s;
    border-radius: 2px;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 120px 20px 80px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-banner-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15;
    filter: blur(2px);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(10, 14, 39, 0.3) 0%,
        rgba(10, 14, 39, 0.6) 50%,
        var(--bg-section) 100%
    );
    z-index: 1;
}

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

.hero-image-wrapper {
    margin: 0 auto 30px;
    width: 600px;
    height: 600px;
    animation: float 4s ease-in-out infinite;
}

.hero-beast-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 40px rgba(168, 85, 247, 0.4));
}

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

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3.85rem, 11vw, 7.7rem);
    font-weight: 900;
    color: var(--purple-glow);
    text-shadow:
        0 0 20px rgba(168, 85, 247, 0.6),
        0 0 60px rgba(168, 85, 247, 0.3),
        0 0 100px rgba(168, 85, 247, 0.15);
    letter-spacing: 8px;
    animation: glowPulse 3s ease-in-out infinite;
    margin-bottom: 10px;
}

@keyframes glowPulse {
    0%, 100% {
        text-shadow:
            0 0 20px rgba(168, 85, 247, 0.6),
            0 0 60px rgba(168, 85, 247, 0.3),
            0 0 100px rgba(168, 85, 247, 0.15);
    }
    50% {
        text-shadow:
            0 0 30px rgba(168, 85, 247, 0.8),
            0 0 80px rgba(168, 85, 247, 0.5),
            0 0 120px rgba(168, 85, 247, 0.25);
    }
}

.hero-tagline {
    font-size: clamp(1.5rem, 3.75vw, 2.25rem);
    color: var(--purple-light);
    font-weight: 600;
    margin-bottom: 12px;
}

.hero-subtitle {
    font-size: clamp(1.19rem, 2.5vw, 1.44rem);
    color: var(--text-muted);
    margin-bottom: 32px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA Button */
.cta-button {
    position: relative;
    display: block;
    width: fit-content;
    margin: 0 auto 28px;
    padding: 16px 48px;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--purple-deep), var(--purple));
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
    overflow: hidden;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(168, 85, 247, 0.4);
    color: #fff;
}

.cta-glow {
    position: absolute;
    inset: -2px;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--purple-glow), var(--purple-deep), var(--purple-glow));
    z-index: -1;
    animation: rotateGlow 3s linear infinite;
    filter: blur(8px);
    opacity: 0.5;
}

@keyframes rotateGlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Contract Address */
.contract-address {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 12px;
    padding: 10px 18px;
    font-size: 0.85rem;
    flex-wrap: wrap;
    justify-content: center;
}

.ca-label {
    color: var(--purple-light);
    font-weight: 600;
}

.ca-text {
    color: var(--text-muted);
    font-size: 0.8rem;
    word-break: break-all;
}

.copy-btn {
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 6px;
    padding: 6px 8px;
    cursor: pointer;
    color: var(--purple-light);
    transition: all 0.3s;
    display: flex;
    align-items: center;
}

.copy-btn:hover {
    background: rgba(168, 85, 247, 0.3);
}

.copy-btn.copied {
    background: rgba(46, 204, 113, 0.2);
    border-color: rgba(46, 204, 113, 0.4);
    color: #2ecc71;
}

/* Wave Divider */
.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 3;
    line-height: 0;
}

.wave-divider svg {
    width: 100%;
    height: 80px;
}

/* ===== Sections ===== */
.section {
    position: relative;
    padding: 100px 0 120px;
}

.about {
    background: var(--bg-section);
    padding-top: 64px;
}

.buy-section {
    background: var(--bg-dark);
}

.timeline-section {
    background: var(--bg-section);
}

.gallery-section {
    background: var(--bg-dark);
    padding-bottom: 80px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    color: var(--purple-light);
    text-shadow: 0 0 30px rgba(168, 85, 247, 0.3);
}

.about .section-title {
    font-size: clamp(2.48rem, 5.5vw, 3.85rem);
}

.section-intro {
    text-align: center;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto 50px;
    font-size: 1.05rem;
    line-height: 1.7;
}

.about .section-intro {
    font-size: 1.43rem;
    max-width: 800px;
}

.buy-section .section-title {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
}

.buy-section .section-intro {
    font-size: 1.31rem;
    max-width: 750px;
}

.timeline-section .section-title {
    font-size: clamp(2.7rem, 6vw, 4.2rem);
}

.timeline-section .section-intro {
    font-size: 1.58rem;
    max-width: 800px;
}

/* ===== About Cards — Layered Glass ===== */
.about-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
}

.about-card {
    position: relative;
    background:
        linear-gradient(
            168deg,
            rgba(20, 14, 50, 0.92) 0%,
            rgba(12, 9, 34, 0.96) 45%,
            rgba(14, 11, 40, 0.94) 100%
        );
    border: 1px solid rgba(139, 92, 246, 0.1);
    border-radius: 20px;
    padding: 38px 32px 34px;
    overflow: hidden;
    transition:
        transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.4s ease,
        box-shadow 0.45s ease;
}

/* Inner glass panel border */
.about-card::before {
    content: '';
    position: absolute;
    inset: 5px;
    border-radius: 16px;
    border: 1px solid rgba(139, 92, 246, 0.06);
    background:
        linear-gradient(
            168deg,
            rgba(139, 92, 246, 0.035) 0%,
            transparent 35%
        );
    pointer-events: none;
    transition: border-color 0.4s ease, background 0.4s ease;
    z-index: 1;
}

/* Top edge light — simulates light hitting glass rim */
.about-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 15%;
    right: 15%;
    height: 1px;
    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(196, 181, 253, 0.15) 25%,
            rgba(196, 181, 253, 0.28) 50%,
            rgba(196, 181, 253, 0.15) 75%,
            transparent
        );
    transition: opacity 0.4s ease;
    z-index: 2;
}

.about-card:hover {
    transform: translateY(-3px);
    border-color: rgba(139, 92, 246, 0.22);
    box-shadow:
        0 12px 40px rgba(109, 40, 217, 0.12),
        0 4px 16px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(196, 181, 253, 0.06);
}

.about-card:hover::before {
    border-color: rgba(139, 92, 246, 0.12);
    background:
        linear-gradient(
            168deg,
            rgba(139, 92, 246, 0.06) 0%,
            transparent 45%
        );
}

.about-card:hover::after {
    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(196, 181, 253, 0.25) 25%,
            rgba(196, 181, 253, 0.45) 50%,
            rgba(196, 181, 253, 0.25) 75%,
            transparent
        );
}

/* Icon container with radial glow halo */
.card-icon {
    position: relative;
    margin-bottom: 22px;
    line-height: 1;
    z-index: 3;
    text-align: center;
}

.card-icon svg {
    margin: 0 auto;
}

.card-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80px;
    height: 80px;
    transform: translate(-50%, -50%);
    background: radial-gradient(
        circle,
        rgba(139, 92, 246, 0.2) 0%,
        rgba(139, 92, 246, 0.07) 40%,
        transparent 70%
    );
    border-radius: 50%;
    z-index: -1;
    transition: width 0.45s ease, height 0.45s ease, background 0.45s ease;
}

.about-card:hover .card-icon::before {
    width: 105px;
    height: 105px;
    background: radial-gradient(
        circle,
        rgba(139, 92, 246, 0.32) 0%,
        rgba(139, 92, 246, 0.12) 40%,
        transparent 70%
    );
}

.card-icon svg {
    display: block;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 2px 8px rgba(109, 40, 217, 0.2));
    transition:
        transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.4s ease;
}

.about-card:hover .card-icon svg {
    transform: scale(1.05) translateY(-1px);
    filter: drop-shadow(0 6px 20px rgba(139, 92, 246, 0.35));
}

/* Card typography */
.about-card h3 {
    position: relative;
    z-index: 3;
    font-size: 1.15rem;
    color: #ddd6fe;
    margin-bottom: 10px;
    font-weight: 600;
    letter-spacing: 0.015em;
    text-align: center;
}

.about-card p {
    position: relative;
    z-index: 3;
    color: var(--text-muted);
    font-size: 0.93rem;
    line-height: 1.65;
}

/* Staggered reveal for cards */
.about-card:nth-child(2) { transition-delay: 0.06s; }
.about-card:nth-child(3) { transition-delay: 0.12s; }
.about-card:nth-child(4) { transition-delay: 0.18s; }
.about-card:nth-child(5) { transition-delay: 0.24s; }
.about-card:nth-child(6) { transition-delay: 0.30s; }

/* ===== Buy Section ===== */
.contract-address-buy {
    display: flex;
    max-width: 600px;
    margin: 0 auto 40px;
}

.swap-embed {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
    background: rgba(15, 15, 40, 0.8);
    border-radius: 20px;
    padding: 16px;
    border: 1px solid rgba(168, 85, 247, 0.15);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4), 0 0 60px rgba(168, 85, 247, 0.08);
}

.swap-embed iframe {
    border-radius: 16px;
    display: block;
    margin: 0 auto;
    max-width: 100%;
    background: #191b2a;
}

/* ===== Timeline ===== */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg,
        transparent,
        var(--purple) 10%,
        var(--purple) 90%,
        transparent
    );
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 60px;
    position: relative;
}

.timeline-item[data-side="left"] {
    flex-direction: row;
    padding-right: calc(50% + 40px);
}

.timeline-item[data-side="right"] {
    flex-direction: row-reverse;
    padding-left: calc(50% + 40px);
}

.timeline-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--purple-deep), var(--purple));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
    flex-shrink: 0;
}

.timeline-marker span {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.85rem;
    color: #fff;
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid rgba(168, 85, 247, 0.12);
    border-radius: 16px;
    padding: 20px;
    width: 100%;
    transition: all 0.3s;
}

.timeline-content:hover {
    border-color: rgba(168, 85, 247, 0.3);
    box-shadow: 0 5px 30px rgba(168, 85, 247, 0.1);
}

.timeline-content img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 14px;
    object-fit: contain;
}

.timeline-content h3 {
    font-size: 1.15rem;
    color: var(--purple-light);
    margin-bottom: 8px;
    font-weight: 600;
}

.timeline-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ===== Gallery ===== */
.gallery-grid {
    columns: 4;
    column-gap: 16px;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 16px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid rgba(168, 85, 247, 0.08);
}

.gallery-item:hover {
    transform: scale(1.03);
    border-color: rgba(168, 85, 247, 0.3);
    box-shadow: 0 5px 30px rgba(168, 85, 247, 0.2);
}

.gallery-item img {
    width: 100%;
    display: block;
    transition: transform 0.3s;
}

/* ===== Lightbox ===== */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
    padding: 40px;
    cursor: pointer;
}

.lightbox.active {
    display: flex;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 12px;
    cursor: default;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2.5rem;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.lightbox-close:hover {
    opacity: 1;
}

/* ===== Footer ===== */
.footer {
    background: linear-gradient(180deg, var(--bg-dark), #060818);
    padding: 60px 0 40px;
    border-top: 1px solid rgba(168, 85, 247, 0.1);
}

.footer-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.footer-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--purple-glow);
}

.footer-socials {
    display: flex;
    gap: 16px;
}

.footer-contract code {
    color: var(--text-muted);
    font-size: 0.8rem;
    word-break: break-all;
}

.ink-badge {
    display: inline-block;
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--purple-light);
    border: 1px solid rgba(168, 85, 247, 0.3);
    background: rgba(168, 85, 247, 0.08);
}

.footer-disclaimer {
    color: var(--text-muted);
    font-size: 0.8rem;
    opacity: 0.6;
    max-width: 400px;
}

/* ===== Scroll Reveal ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .gallery-grid {
        columns: 3;
    }

    .timeline-line {
        left: 22px;
    }

    .timeline-item[data-side="left"],
    .timeline-item[data-side="right"] {
        flex-direction: row;
        padding-right: 0;
        padding-left: 62px;
    }

    .timeline-marker {
        left: 22px;
        width: 38px;
        height: 38px;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 8px 0;
    }

    .nav-container {
        padding: 0 16px;
    }

    .nav-logo-img {
        width: 36px;
        height: 36px;
    }

    .nav-logo-text {
        font-size: 1.2rem;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-menu-btn span {
        width: 28px;
        height: 3px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 260px;
        height: 100vh;
        background: rgba(10, 14, 39, 0.97);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 80px 30px 30px;
        gap: 4px;
        transition: right 0.3s;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
    }

    .nav-links.open {
        right: 0;
    }

    .nav-links a {
        font-size: 1.1rem;
        padding: 12px 16px;
    }

    .nav-socials {
        display: none;
    }

    .gallery-grid {
        columns: 2;
    }

    .hero-image-wrapper {
        width: 350px;
        height: 350px;
    }

    .about-cards {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 70px 0 90px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        columns: 2;
        column-gap: 10px;
    }

    .gallery-item {
        margin-bottom: 10px;
    }

    .contract-address {
        font-size: 0.75rem;
        padding: 8px 12px;
    }

    .ca-text {
        font-size: 0.7rem;
    }
}
