@font-face {
    font-family: 'Pixelon';
    src: url('fonts/Pixelon-OGALo.ttf') format('truetype'),
         url('fonts/Pixelon-E4JEg.otf') format('opentype');
}

:root {
    --e-global-typography-21ccb14-font-family: "Pixelon";
    --primary-color: #f8be00;
}

html {
    scroll-behavior: auto;
}

/* Glitch effect variables */
:root {
    --glitch-duration: 850ms;
    --glitch-color-1: #ff0000;
    --glitch-color-2: #00ffff;
    --glitch-distance: 3px;
    --clip-one: polygon(0 0, 100% 0, 100% 25%, 0 25%);
    --clip-two: polygon(0 20%, 100% 20%, 100% 45%, 0 45%);
    --clip-three: polygon(0 40%, 100% 40%, 100% 65%, 0 65%);
    --clip-four: polygon(0 60%, 100% 60%, 100% 85%, 0 85%);
    --clip-five: polygon(0 80%, 100% 80%, 100% 100%, 0 100%);
    --shimmy-distance: 5;
}

/* Text glitch effect */
.section.glitching h1,
.section.glitching h2,
.section.glitching h3,
.section.glitching p,
.section.glitching li,
.section.glitching a:not(.social-icon) {
    position: relative;
    display: inline-block;
    animation: text-glitch 0.4s cubic-bezier(.25, .46, .45, .94) both;
}

.section.glitching h1::before,
.section.glitching h2::before,
.section.glitching h3::before,
.section.glitching p::before,
.section.glitching li::before,
.section.glitching a:not(.social-icon)::before,
.section.glitching h1::after,
.section.glitching h2::after,
.section.glitching h3::after,
.section.glitching p::after,
.section.glitching li::after,
.section.glitching a:not(.social-icon)::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: none;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.section.glitching h1::before,
.section.glitching h2::before,
.section.glitching h3::before,
.section.glitching p::before,
.section.glitching li::before,
.section.glitching a:not(.social-icon)::before {
    left: var(--glitch-distance);
    text-shadow: -5px 0px var(--glitch-color-1);
    animation: text-glitch-1 0.4s steps(2) infinite;
}

.section.glitching h1::after,
.section.glitching h2::after,
.section.glitching h3::after,
.section.glitching p::after,
.section.glitching li::after,
.section.glitching a:not(.social-icon)::after {
    left: calc(var(--glitch-distance) * -1);
    text-shadow: 5px 0px var(--glitch-color-2);
    animation: text-glitch-2 0.4s steps(2) infinite reverse;
}

@keyframes text-glitch {
    0% {
        transform: translate(0);
        filter: hue-rotate(0deg);
    }
    10% {
        transform: translate(-10px, 2px);
        filter: hue-rotate(-45deg);
    }
    20% {
        transform: translate(10px, -2px);
        filter: hue-rotate(45deg);
    }
    30% {
        transform: translate(-3px, 1px);
        filter: hue-rotate(-25deg);
    }
    40% {
        transform: translate(3px, -1px);
        filter: hue-rotate(25deg);
    }
    50% {
        transform: translate(0);
        filter: hue-rotate(0deg);
    }
    100% {
        transform: translate(0);
        filter: hue-rotate(0deg);
    }
}

@keyframes text-glitch-1 {
    0% {
        clip-path: var(--clip-one);
        transform: translate(-2px, -2px);
    }
    25% {
        clip-path: var(--clip-two);
        transform: translate(2px, 2px);
    }
    50% {
        clip-path: var(--clip-three);
        transform: translate(-2px, 2px);
    }
    75% {
        clip-path: var(--clip-four);
        transform: translate(2px, -2px);
    }
    100% {
        clip-path: var(--clip-five);
        transform: translate(0);
    }
}

@keyframes text-glitch-2 {
    0% {
        clip-path: var(--clip-five);
        transform: translate(2px, -2px);
    }
    25% {
        clip-path: var(--clip-four);
        transform: translate(-2px, 2px);
    }
    50% {
        clip-path: var(--clip-three);
        transform: translate(2px, 2px);
    }
    75% {
        clip-path: var(--clip-two);
        transform: translate(-2px, -2px);
    }
    100% {
        clip-path: var(--clip-one);
        transform: translate(0);
    }
}


body {
    margin: 0;
    font-family: var(--e-global-typography-21ccb14-font-family), Sans-serif;
    background-color: #000;
    color: #fff;
    text-align: center;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('img/background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.25;
    z-index: -1;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}

.mobile-menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background-color: var(--primary-color);
    transition: transform 0.3s ease-in-out;
}

.menu {
    position: fixed;
    min-height: 30px;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #000;
    border-bottom: 2px solid var(--primary-color);
    padding: 10px 0;
    z-index: 100;
}

.menu-items {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    align-items: center;
}

.menu-items .social {
    margin-left: 20px;
    display: flex;
    gap: 10px;
}

.menu-items .social-icon {
    padding: 5px;
    display: flex;
    align-items: center;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.menu-items .social-icon:hover {
    opacity: 1;
}

.menu-items .social-icon::before,
.menu-items .social-icon::after {
    display: none;
}

.menu-items li {
    position: relative;
    padding: 5px 0;
}

.menu-items a {
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 1.1rem;
    letter-spacing: 2px;
    padding: 5px 15px;
    transition: color 0.3s;
}

.menu-items a:hover,
.menu-items a.active {
    color: var(--primary-color);
}

.menu-items a:hover::before,
.menu-items a.active::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.menu-items a:hover::after,
.menu-items a.active::after {
    content: '<';
    position: absolute;
    right: 0;
    color: var(--primary-color);
}

.section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
    scroll-margin-top: 60px;
}

@media (max-width: 768px) {
    .section {
        justify-content: flex-start;
        padding-top: 100px; /* Account for fixed header */
    }
}

h1 {
    font-size: 4rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 5px;
}

h2 {
    font-size: 3rem;
    margin: 0 0 40px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary-color);
}

h3 {
    font-size: 1.5rem;
    margin: 0 0 15px;
    color: var(--primary-color);
}

p {
    font-size: 1.2rem;
    margin: 20px 0;
    max-width: 800px;
    line-height: 1.6;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 40px 0;
}

.feature {
    background: rgba(0, 0, 0, 0.5);
    padding: 30px;
    border: 1px solid var(--primary-color);
    border-radius: 5px;
}

.token-info {
    max-width: 800px;
}

.token-benefits {
    text-align: left;
    margin: 30px auto;
    max-width: 600px;
    list-style-position: inside;
}

.token-benefits li {
    font-size: 1.1rem;
    margin: 15px 0;
    padding-left: 20px;
}

.token-metrics {
    display: flex;
    justify-content: center;
    width: 100%;
}

@keyframes warning-flash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.disclaimer {
    text-align: center;
    animation: warning-flash 1.5s ease-in-out infinite;
}

.token-metrics div {
    background: rgba(0, 0, 0, 0.5);
    padding: 30px;
    margin: 40px auto;
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px 30px;
    max-width: 600px;
    text-align: left;
}

@media (min-width: 769px) {
    .token-metrics div {
        padding-left: 100px;
        padding-right: 100px;
    }
}

.token-metrics div p {
    margin: 10px 0;
    font-size: 1.1rem;
    display: grid;
    grid-template-columns: subgrid;
    grid-column: 1 / -1;
}

.token-metrics div p::before {
    content: attr(data-label);
    color: var(--primary-color);
    font-weight: bold;
}

a {
    color: var(--primary-color);
}

a.button {
    text-decoration: none;
    font-size: 1rem;
    border: 1px solid var(--primary-color);
    padding: 10px 20px;
    border-radius: 2px;
    transition: background-color 0.3s, color 0.3s;
}

a.button:hover {
    background-color: var(--primary-color);
    color: #000;
}

footer {
    
    position: fixed;
    margin: 0;
    padding: 0;
    bottom: 0;
    display: flex;
    justify-content: center;    
    width: 100%;
    font-size: 0.8rem;
    color: #666;
    text-align: center;
}

footer a {
    color: #666;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Oryza Assistant Styles */
.oryza-assistant {
    position: fixed;
    bottom: 80px;
    left: 20px;
    z-index: 1000;
    transition: opacity 0.3s ease-in-out;
}

.oryza-assistant.hidden {
    opacity: 0;
    pointer-events: none;
}

.assistant-content {
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.oryza-assistant img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    background: rgba(0, 0, 0, 0.7);
}

.message-bubble {
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid var(--primary-color);
    padding: 15px;
    border-radius: 10px;
    max-width: 250px;
    font-size: 0.9rem;
    position: relative;
    margin-bottom: 10px;
    margin-left: 10px;
}

.message-bubble::before {
    content: '';
    position: absolute;
    left: -10px;
    bottom: 15px;
    border-right: 10px solid var(--primary-color);
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
}

.message-bubble::after {
    content: '';
    position: absolute;
    left: -8px;
    bottom: 15px;
    border-right: 8px solid rgba(0, 0, 0, 0.9);
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
}

strong {
    color: var(--primary-color);
}

.ambient-control {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.play-button {
    background: rgba(0, 0, 0, 0.7);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 8px 16px;
    cursor: pointer;
    font-family: var(--e-global-typography-21ccb14-font-family), Sans-serif;
    transition: background-color 0.3s, color 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.button-text {
    margin-left: 4px;
}

.sound-icon {
    fill: var(--primary-color);
    transition: fill 0.3s;
}

.play-button:hover .sound-icon {
    fill: #000;
}

.sound-icon {
    display: none;
}

/* Show sound-on icon by default */
.sound-icon.sound-on {
    display: block;
}

/* When muted, hide sound-on and show sound-off */
.play-button.muted .sound-icon.sound-on {
    display: none;
}

.play-button.muted .sound-icon.sound-off {
    display: block;
}

.play-button:hover {
    background-color: var(--primary-color);
    color: #000;
}

@media (max-width: 768px) {
    .oryza-assistant {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .menu-items {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #000;
        border-top: 2px solid var(--primary-color);
        padding: 20px 0;
        flex-direction: column;
        gap: 15px;
    }

    .menu.active .menu-items {
        display: flex;
    }

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

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

    .menu.active .mobile-menu-toggle .bar:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -8px);
    }

    .menu-items .social {
        margin: 15px 0 0 0;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 20px;
    }

    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.5rem;
    }
}

/* Contract Address Copy Styles */
.copyable {
    cursor: pointer;
    color: #f8be00;
    transition: opacity 0.2s;
}

.copyable:hover {
    opacity: 0.8;
}

.copyable:active {
    opacity: 0.6;
}
