/* Root variables for easy theme changes */
:root {
    --space-bg: #0b0f1a;
    --neon-cyan: #00f5ff;
    --neon-pink: #ff00d9;
    --neon-green: #39ff14;
    --nav-bg: rgba(11, 15, 26, 0.85);
    --section-bg: rgba(20, 24, 40, 0.92);
    --glow-cyan: 0 0 16px var(--neon-cyan), 0 0 32px var(--neon-cyan);
    --glow-pink: 0 0 16px var(--neon-pink), 0 0 32px var(--neon-pink);
    --glow-green: 0 0 16px var(--neon-green), 0 0 32px var(--neon-green);
}

/* Backgrounds & Parallax */
body {
    margin: 0;
    font-family: 'Roboto', Arial, sans-serif;
    background: url('Zorgulon.jpg') no-repeat center center fixed;
    background-size: cover;
    color: #eafcff;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

.background,
.overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    pointer-events: none;
    z-index: -2;
}

.background {
    background: url('Zorgulon.jpg') no-repeat center center fixed;
    background-size: cover;
    filter: brightness(1.1) saturate(1.2) blur(1px);
    animation: parallax-bg 30s linear infinite;
}

@keyframes parallax-bg {
    0% { background-position: center 0; }
    100% { background-position: center 100px; }
}

.overlay {
    background: linear-gradient(180deg, rgba(0,0,0,0.7) 0%, rgba(11,15,26,0.95) 100%);
    z-index: -1;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    z-index: 100;
    background: var(--nav-bg);
    box-shadow: 0 2px 24px #000a;
    backdrop-filter: blur(6px);
}

nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 18px 0;
}

nav a {
    position: relative;
    font-family: 'Orbitron', sans-serif;
    color: var(--neon-cyan);
    text-decoration: none;
    font-size: 1.1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
    padding: 6px 18px;
    border-radius: 4px;
    transition: color 0.2s, box-shadow 0.2s, background 0.2s;
}

nav a.active,
nav a:hover {
    color: var(--neon-pink);
    background: rgba(0,0,0,0.25);
    box-shadow: var(--glow-pink);
}

nav a.active::after {
    content: '';
    position: absolute;
    left: 20%;
    bottom: -6px;
    width: 60%;
    height: 4px;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-pink));
    border-radius: 2px;
    box-shadow: 0 0 8px var(--neon-cyan), 0 0 16px var(--neon-pink);
    pointer-events: none;
}

/* Section Styles */
.section {
    min-height: 100vh;
    padding: 100px 0 60px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent;
    position: relative;
}

.home-section {
    min-height: 100vh;
    width: 100vw;
    padding: 0;
    margin: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    overflow: hidden;
}

.home-section .main-character-container {
    position: absolute;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.home-section .main-character {
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    max-width: none;
    max-height: none;
    min-width: 100vw;
    min-height: 100vh;
    filter: none;
    margin: 0;
    animation: none;
    border-radius: 0;
    box-shadow: none;
}

.main-character-container {
    margin-bottom: 32px;
    position: relative;
    display: flex;
    justify-content: center;
}

.main-character {
    width: 260px;
    max-width: 80vw;
    filter: drop-shadow(0 0 32px var(--neon-cyan));
    animation: floatUFO 3s ease-in-out infinite;
}

@keyframes floatUFO {
    0%, 100% { transform: translateY(0) scale(1.02); }
    50% { transform: translateY(-24px) scale(1.07); }
}

.neon-title, .neon-heading {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    color: var(--neon-cyan);
    text-shadow: var(--glow-cyan);
    letter-spacing: 3px;
    margin-bottom: 18px;
    text-align: center;
}

.neon-heading {
    font-size: 2rem;
    color: var(--neon-pink);
    text-shadow: var(--glow-pink);
}

.home-desc {
    font-size: 1.2rem;
    color: #eafcff;
    background: rgba(11,15,26,0.7);
    border-radius: 8px;
    padding: 18px 24px;
    box-shadow: 0 0 24px var(--neon-cyan);
    margin: 0 auto;
    max-width: 600px;
}

/* About Section */
.about-section {
    background: rgba(20, 24, 40, 0.92);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    border-top: 2px solid var(--neon-cyan);
    border-bottom: 2px solid var(--neon-pink);
    box-shadow: 0 0 32px var(--neon-cyan);
}

.about-content {
    flex: 2;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 700px;
    margin-top: 0; /* Прибрати зайву відстань */
}

.about-illustration {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.martian-img {
    width: 120px;
    filter: drop-shadow(0 0 24px var(--neon-pink));
}

.big-about-img {
    width: 50vw;
    max-width: 700px;
    min-width: 220px;
    filter: drop-shadow(0 0 60px #00f5ff) drop-shadow(0 0 30px #ff00d9);
    margin: 0 auto;
    /* Відстань до тексту */
    margin-bottom: 5px;
}

/* LEARN MORE SECTION: картинка пропорційна по висоті з текстом */
.learn-section {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 48px;
    background: rgba(20, 24, 40, 0.92);
    box-shadow: 0 0 32px var(--neon-pink, #ff00d9);
    padding: 60px 0;
}

.learn-left {
    flex: 2;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.learn-right {
    flex: 1;
    display: flex;
    align-items: stretch;
    justify-content: center;
}

.infographic-img {
    width: 100%;
    height: auto;
    max-width: 400px;
    object-fit: contain;
    align-self: stretch;
    /* Додаємо, щоб картинка займала всю висоту learn-section */
    display: block;
    margin: 0;
}

/* Roadmap Section */
.roadmap-section {
  /*  background: var(--section-bg); */
    box-shadow: 0 0 32px var(--neon-green);
}

.roadmap-timeline {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-top: 32px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.roadmap-phase {
    margin-bottom: 18px;
    border-radius: 8px;
    border: 2px solid #222;
    background: rgba(20, 24, 40, 0.92);
    box-shadow: 0 0 16px #222;
    font-size: 1.1rem;
    overflow: hidden;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.roadmap-phase[open] {
    box-shadow: 0 0 24px var(--neon-cyan, #00f5ff);
}

.roadmap-phase.completed > summary {
    color: #39ff14;
    font-weight: bold;
    border-left: 6px solid #39ff14;
}
.roadmap-phase.in-progress > summary {
    color: #00f5ff;
    font-weight: bold;
    border-left: 6px solid #00f5ff;
}
.roadmap-phase.upcoming > summary {
    color: #ff0059;
    font-weight: bold;
    border-left: 6px solid #ff0059;
}

.roadmap-phase > summary {
    cursor: pointer;
    padding: 12px 18px;
    outline: none;
    background: none;
    font-size: 1.1em;
    transition: background 0.2s;
}

/* Плавна анімація для контенту details */
.roadmap-desc {
    padding: 0 24px;
    color: #eafcff;
  /*  background: rgba(11,15,26,0.7); */
    border-radius: 0 0 8px 8px;
    font-size: 1em;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(.4,0,.2,1), opacity 0.4s;
}

.roadmap-phase[open] .roadmap-desc {
    padding: 12px 24px;
    max-height: 900px;
    opacity: 1;
    transition: max-height 0.7s cubic-bezier(.4,0,.2,1), opacity 0.5s;
}

/* Tokenomics Section */
.tokenomics-section {
  /*  background: var(--section-bg); */
    box-shadow: 0 0 32px var(--neon-cyan);
    text-align: center;
    background: rgba(20, 24, 40, 0.92);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.tokenomics-btn {
    margin-bottom: 18px;
}

.neon-btn {
    font-family: 'Orbitron', sans-serif;
  /*  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-pink)); */
   /* color: #fff;  */
    border: none;
    border-radius: 8px;
    padding: 14px 36px;
    font-size: 1.1rem;
    letter-spacing: 2px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: var(--glow-cyan);
    transition: box-shadow 0.2s, background 0.2s;
}

.neon-btn:hover {
    box-shadow: var(--glow-pink);
    background: linear-gradient(90deg, var(--neon-pink), var(--neon-cyan));
}

.tokenomics-list {
    list-style: none;
    padding: 0;
    margin: 24px auto;
    max-width: 400px;
    text-align: left;
}

.tokenomics-list li {
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: var(--neon-cyan);
    text-shadow: var(--glow-cyan);
}

.tokenomics-chart {
    width: 180px;
    margin-top: 18px;
    filter: drop-shadow(0 0 24px var(--neon-pink));
}

.big-tokenomics-img {
    width: 70vw;
    max-width: 1200px;
    min-width: 320px;
    display: block;
    margin: 0 auto;
    box-shadow: 0 0 60px #00f5ff, 0 0 30px #ff00d9;
}

/* NFT Offer Section */
.nft-section {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 40px;
    min-height: 100vh;
    background: rgba(20, 24, 40, 0.92);
    padding: 60px 0;
}

.nft-offer-left {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
}

.nft-bg-video {
    max-height: auto;
    width: auto;
    aspect-ratio: 1/1;
    border-radius: 24px;
    box-shadow: 0 0 24px #00f5ff;
    background: #000;
    object-fit: cover;
    display: block;
}

.nft-offer-right {
    max-width: 420px;
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.nft-offer-text {
    font-size: 1.08em;
    line-height: 1.6;
}

/* Адаптація для мобільних */
@media (max-width: 700px) {
    .nft-section {
        flex-direction: column;
        gap: 24px;
        padding: 30px 0;
    }
    .nft-offer-left,
    .nft-offer-right {
        justify-content: center;
        align-items: center;
        max-width: 98vw;
        width: 100%;
        text-align: center;
    }
    .nft-bg-video {
        max-width: 90vw;
        max-height: 220px;
        margin: 0 auto 18px auto;
    }
}

/* Contacts Section */
.contacts-section {
  /*  background: var(--section-bg); */
    box-shadow: 0 0 32px var(--neon-pink);
    text-align: center;
}

#contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 400px;
    margin: 0 auto 32px auto;
}

#contact-form input,
#contact-form textarea {
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    padding: 12px;
    border-radius: 6px;
    border: none;
    background: rgba(11,15,26,0.7);
    color: #fff;
    box-shadow: 0 0 8px var(--neon-cyan);
    outline: none;
    transition: box-shadow 0.2s;
}

#contact-form input:focus,
#contact-form textarea:focus {
    box-shadow: var(--glow-pink);
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 12px;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: inline-block;
    background-size: contain;
    transition: box-shadow 0.2s, filter 0.2s;
    filter: drop-shadow(0 0 8px var(--neon-cyan));
}

.social-icon.telegram { background: url('telegram-icon.png') no-repeat center center; }
.social-icon.twitter { background: url('twitter-icon.png') no-repeat center center; }
.social-icon.discord { background: url('discord-icon.png') no-repeat center center; }

.social-icon:hover {
    filter: drop-shadow(0 0 16px var(--neon-pink));
}

/* Timer top left, under header */
.timer {
    position: fixed;
    top: 72px; /* Змістити вниз, щоб не накладалось на header */
    left: 24px;
    z-index: 101;
    font-family: 'Share Tech Mono', monospace;
    font-size: 32px;
    background: rgba(0, 0, 0, 0.7);
    padding: 12px 22px;
    border-radius: 8px;
    color: var(--neon-green, #39ff14);
    letter-spacing: 2px;
    box-shadow: 0 0 16px var(--neon-green, #39ff14);
    animation: breathing 3s infinite ease-in-out;
    min-width: 260px;
    text-align: center;
}

@media (max-width: 600px) {
    .timer {
        position: fixed;
        left: 12px;
      /*  bottom: 60px; /* під смартконтрактом */  
        top: 60px;
        right: auto;
        width: auto;
        min-width: 80px;
        max-width: 60vw;
        font-size: 15px;
        padding: 5px 12px;
        border-radius: 6px;
        z-index: 102;
        box-shadow: 0 0 8px var(--neon-green, #39ff14);
        background: rgba(0, 0, 0, 0.7);
        text-align: left;
        animation: breathing 3s infinite ease-in-out;
    }
}

/* Wallet button bottom left */
.wallet-btn {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 101;
    padding: 14px 28px;
    font-size: 16px;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(255,255,255,0.2);
    cursor: pointer;
    border-radius: 8px;
    color: rgba(255,255,255,0.85);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: bold;
    animation: breathing 3s infinite ease-in-out;
    transition: 0.3s;
}

.wallet-btn:hover {
    background: linear-gradient(90deg, #00f5ff, #ff00d9);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 0 20px #ff00d9;
}

/* Socials bottom right */
.socials {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 101;
    display: flex;
    flex-direction: column;
    gap: 12px;
    animation: breathing 3s infinite ease-in-out;
}

.socials a {
    color: var(--neon-cyan, #00f5ff);
    font-size: 18px;
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-weight: bold;
    letter-spacing: 1px;
    transition: 0.3s;
}

.socials a:hover {
    color: var(--neon-pink, #ff00d9);
    text-shadow: 0 0 10px var(--neon-pink, #ff00d9);
}

/* Footer */
footer {
    text-align: center;
    padding: 24px 0;
    color: #aaa;
    font-size: 1rem;
    background: rgba(11,15,26,0.7);
    border-top: 2px solid var(--neon-cyan);
}

/* Smart Contract Block */
.smart-contract-block {
    position: fixed;
    left: 16px;
    bottom: 16px;
    background: rgba(11,15,26,0.85);
    border-radius: 8px;
    padding: 8px 14px;
    color: #00f5ff;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.98rem;
    box-shadow: 0 0 16px #00f5ff;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 101;
    min-width: 0;
    max-width: 90vw;
}

.contract-label {
    font-weight: bold;
    margin-right: 8px;
}

.contract-address {
    font-size: 0.95em;
    background: rgba(0,0,0,0.2);
    padding: 3px 8px;
    border-radius: 6px;
    color: #fff;
    font-family: 'Share Tech Mono', monospace;
    white-space: normal;
    word-break: break-all;
    max-width: 50vw;
    overflow-wrap: anywhere;
}

.copy-contract {
    background: linear-gradient(90deg, #00f5ff, #ff00d9);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 18px;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 0 10px #00f5ff;
    transition: box-shadow 0.2s, background 0.2s;
}

.copy-contract:hover {
    box-shadow: 0 0 20px #ff00d9;
    background: linear-gradient(90deg, #ff00d9, #00f5ff);
}

@media (max-width: 600px) {
    body {
        background-size: cover;
        background-position: center center;
    }

    .section {
        padding: 70px 0 40px 0;
        min-height: 80vh;
    }

    .home-section,
    .home-section .main-character-container {
        width: 100vw;
        height: 100vh;
        min-height: 60vh;
        padding: 0;
    }

    .home-section .main-character {
        width: 100vw;
        height: 100vh;
        min-width: 100vw;
        min-height: 60vh;
        object-fit: cover;
    }

    .about-section {
        padding: 30px 0;
    }

    .big-about-img {
        width: 90vw;
        max-width: 98vw;
        min-width: 120px;
        margin-bottom: 5px;
    }

    .about-content {
        padding: 8px;
        max-width: 98vw;
    }

    .learn-section {
        flex-direction: column;
        gap: 16px;
        padding: 30px 0;
    }

    .learn-left {
        padding: 8px;
        max-width: 98vw;
    }

    .learn-right {
        padding: 0;
        margin: 0;
        max-width: 98vw;
    }

    .infographic-img {
        width: 90vw;
        max-width: 98vw;
        min-width: 120px;
        margin: 0 auto;
    }

    .roadmap-timeline {
        gap: 16px;
        margin-top: 16px;
        max-width: 98vw;
    }

    .roadmap-phase > summary {
        padding: 10px 8px;
        font-size: 1em;
    }

    .roadmap-desc {
        padding: 8px 8px;
        font-size: 0.95em;
    }

    .tokenomics-section {
        min-height: 40vh;
        padding: 20px 0;
    }

    .big-tokenomics-img,
    .tokenomics-chart {
        width: 95vw;
        max-width: 98vw;
        min-width: 120px;
        margin: 0 auto;
    }

    .nft-section {
        padding: 30px 0;
        min-height: 60vh;
    }

    .nft-bg-video {
        width: 95vw;
        max-width: 98vw;
        min-width: 120px;
        border-radius: 12px;
        margin-bottom: 16px;
    }

    .nft-section img[alt="NFT"] {
        width: 70vw;
        max-width: 98vw;
        min-width: 120px;
        margin: 0 auto;
        box-shadow: 0 0 16px #ff00d9;
    }

    .timer {
        top: 135px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 18px;
        padding: 6px 10px;
        min-width: 120px;
        z-index: 102;
    }

    .wallet-btn,
    .smart-contract-block {
        left: 8px;
        bottom: 8px;
        padding: 10px 12px;
        font-size: 0.95em;
        border-radius: 6px;
        gap: 8px;
    }

    .socials {
        right: 8px;
        bottom: 8px;
        gap: 8px;
    }

    .socials a {
        font-size: 15px;
        padding: 2px 0;
    }

    nav ul {
        gap: 8px;
        font-size: 0.9rem;
        flex-wrap: wrap;
        padding: 10px 0;
    }

    .neon-title, .neon-heading {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }

    #contact-form {
        max-width: 98vw;
        gap: 10px;
    }

    #contact-form input,
    #contact-form textarea {
        font-size: 0.95em;
        padding: 8px;
        border-radius: 4px;
    }

    .smart-contract-block {
        left: 8px;
        bottom: 8px;
        padding: 10px 12px;
        font-size: 0.95em;
        border-radius: 6px;
        gap: 8px;
    }
    .copy-contract {
        padding: 6px 12px;
        font-size: 0.95em;
    }
}

@media (max-width: 700px) {
    #nft-offer.nft-section {
        flex-direction: column !important;
        gap: 24px !important;
    }
    .nft-offer-right {
        max-width: 98vw !important;
        text-align: center;
    }
    .nft-bg-video {
        max-width: 90vw !important;
        max-height: 220px !important;
        margin: 0 auto 18px auto !important;
    }
}

/* UFO/Space Themed Details */
.section::before {
    content: '';
    display: block;
    position: absolute;
    top: -40px;
    left: 50%;
    width: 120px;
    height: 40px;
    background: url('ufo-glow.png') no-repeat center center;
    background-size: contain;
    opacity: 0.12;
    pointer-events: none;
    z-index: 0;
}

body.nft-active .background {
    display: none !important;
}