:root {
    --primary: #2D8B6F;
    --primary-glow: rgba(45, 139, 111, 0.15);
    --accent: #E6B022;
    --accent-glow: rgba(230, 176, 34, 0.12);
    --bg-dark: #ffffff;
    --bg-card: rgba(0, 0, 0, 0.03);
    --border-subtle: rgba(0, 0, 0, 0.08);
    --border-accent: rgba(45, 139, 111, 0.2);
    --text-primary: #2c302e;
    --text-secondary: rgba(0, 0, 0, 0.6);
    --text-muted: rgba(0, 0, 0, 0.4);
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 8px;
}

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

body {
    background: var(--bg-dark);
    min-height: 100vh;
    font-family: 'M PLUS Rounded 1c', 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ===========================
   SPLASH SCREEN
   =========================== */
.splash {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--bg-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 48px;
}

.splash.done {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.splash-logo {
    width: 280px;
    max-width: 60vw;
    height: auto;
    opacity: 0;
    transform: scale(0.5);
    filter: drop-shadow(0 0 50px var(--primary-glow))
            drop-shadow(0 0 100px rgba(45, 139, 111, 0.15));
}

.splash-logo.animate {
    animation: splashPop 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

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

.splash-loader {
    width: 200px;
    height: 3px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 3px;
    overflow: hidden;
    opacity: 0;
}

.splash-loader.animate {
    animation: fadeUp 0.5s ease 1s forwards;
}

.splash-loader-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 3px;
    transition: width 0.4s ease;
}

.splash-text {
    font-size: 12px;
    letter-spacing: 3px;
    color: var(--text-muted);
    text-transform: uppercase;
    opacity: 0;
}

.splash-text.animate {
    animation: fadeUp 0.5s ease 1s forwards;
}

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

/* ===========================
   MAIN CONTENT
   =========================== */
.main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    position: relative;
    opacity: 0;
}

.main-content.hidden {
    display: none !important;
}

.main-content.reveal {
    opacity: 1;
    animation: contentSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* Floating background orbs */
.bg-orbs {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.12;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--primary-glow), transparent 70%);
    top: -10%;
    right: -10%;
    animation: orbFloat1 20s ease-in-out infinite;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-glow), transparent 70%);
    bottom: -5%;
    left: -5%;
    animation: orbFloat2 25s ease-in-out infinite;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(100, 140, 255, 0.18), transparent 70%);
    top: 50%;
    left: 50%;
    animation: orbFloat3 18s ease-in-out infinite;
}

@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(-60px, 40px); }
    66% { transform: translate(30px, -30px); }
}

@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(50px, -30px); }
    66% { transform: translate(-20px, 50px); }
}

@keyframes orbFloat3 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(-40px, -50px); }
    66% { transform: translate(60px, 20px); }
}

/* ===========================
   HEADER & INTRO
   =========================== */
.top-section {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 50px 20px 30px;
    display: flex;
    justify-content: center;
}

.header-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 40px;
    max-width: 1000px;
    width: 100%;
}

.logo-wrapper {
    flex: 0 0 200px;
    text-align: center;
}

.logo {
    width: 100%;
    max-width: 200px;
    height: auto;
    filter: drop-shadow(0 0 20px var(--primary-glow));
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                filter 0.5s ease;
}

.logo:hover {
    transform: scale(1.06) rotate(3deg);
    filter: drop-shadow(0 0 30px var(--primary-glow))
            drop-shadow(0 0 60px rgba(45, 139, 111, 0.2));
}

/* Glassmorphic card */
.intro-card {
    flex: 1;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 36px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.05),
                0 2px 12px rgba(0, 0, 0, 0.02);
}

.intro-text {
    font-size: 15px;
    line-height: 1.9;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.intro-text strong {
    color: var(--accent);
}

.intro-subtext {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 12px;
}

.intro-cta-text {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.7;
    color: var(--primary);
    margin-bottom: 24px;
    padding: 10px 14px;
    background: rgba(45, 139, 111, 0.08);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--primary);
}

/* Contact box */
.contact-box {
    padding: 16px 20px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    transition: background 0.3s, border-color 0.3s;
}

.contact-box:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--border-accent);
}

.contact-text {
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    color: var(--text-primary);
}

.x-link {
    color: var(--accent);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.x-link:hover {
    opacity: 0.8;
    transform: translateY(-1px);
}

.arrow-icon {
    font-size: 18px !important;
}

.contact-icon {
    width: 80px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    border: 2px solid var(--border-subtle);
}

/* Count Banner */
.count-banner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding-top: 20px;
    border-top: 1px solid var(--border-subtle);
}

.count-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.count-wrapper {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.count-number {
    font-size: 56px;
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, var(--primary), #5dd4a8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
}

.count-unit {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-secondary);
}

/* ===========================
   GALLERY
   =========================== */
.gallery-container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    width: 100%;
    margin-bottom: 60px;
    padding: 0 10px;
}

#gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 3px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4),
                0 0 0 1px var(--border-subtle);
}

.nft-card {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    cursor: pointer;
    background: #111;
}

.nft-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                filter 0.4s ease;
}

.nft-card:hover img {
    transform: scale(1.12);
    filter: brightness(1.1) saturate(1.1);
}

.nft-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.3), transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.nft-card:hover::after {
    opacity: 1;
}

/* Status message */
.status-msg {
    grid-column: 1 / -1;
    text-align: center;
    padding: 100px 20px;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

/* Infinite Scroll Spinner */
.scroll-spinner-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 0;
    width: 100%;
}

.scroll-spinner-container.hidden {
    display: none;
}

.rotating {
    animation: rotate 1.2s linear infinite;
    font-size: 32px !important;
    color: var(--primary);
}

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

/* ===========================
   LIGHTBOX MODAL
   =========================== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    inset: 0;
    background: rgba(5, 8, 7, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    z-index: 2010;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.08);
}

.modal-content {
    width: 90%;
    max-width: 800px;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    transform: scale(0.92);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-caption {
    margin-top: 20px;
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    padding: 0 20px;
    letter-spacing: 1px;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }
    
    .intro-card {
        padding: 24px;
    }
    
    .contact-box {
        flex-direction: column;
        text-align: center;
        padding: 14px;
    }
    
    .contact-text {
        font-size: 14px;
        justify-content: center;
    }
    
    .count-banner {
        align-items: center;
    }
    
    .count-number {
        font-size: 44px;
    }
    
    #gallery {
        grid-template-columns: repeat(3, 1fr);
        gap: 2px;
        border-radius: var(--radius-sm);
    }
    
    .logo-wrapper {
        flex: 0 0 auto;
    }
    
    .logo {
        max-width: 150px;
    }

    .splash-logo {
        width: 220px;
    }

    .top-section {
        padding: 30px 16px 20px;
    }
}

/* ===========================
   FOOTER
   =========================== */
.site-footer {
    width: 100%;
    padding: 60px 20px 40px;
    margin-top: auto;
    border-top: 1px solid var(--border-subtle);
    z-index: 1;
}

.footer-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-logo-link {
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-logo-link:hover {
    color: var(--primary);
}

.footer-sep {
    color: var(--text-muted);
}

.footer-tagline {
    font-size: 12px;
    letter-spacing: 1px;
    color: var(--text-secondary);
}

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

.footer-links a {
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-dot {
    color: var(--text-muted);
}

.footer-copyright {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 8px;
}

