/* ===== PRESALE TIMER STYLES ===== */
.presale-timer {
    background: rgba(122, 26, 26, 0.2);
    border: 2px solid var(--ancient-red);
    border-radius: 15px;
    text-align: center;
    margin: 20px 0;
    padding: auto;
}

.timer-label {
    font-size: 16px;
    color: var(--white);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.timer-display {
    font-size: 32px;
    font-weight: 900;
    color: var(--ancient-red);
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 20px rgba(139, 0, 0, 0.5);
}

.timer-display span {
    display: inline-block;
    min-width: 50px;
}

/* ===== 20 TRIALS SECTION ===== */
.trials-section {
    padding: 110px 0;
    background:
        linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
        url('../images/token.png') no-repeat center center/cover;
    position: relative;
}

.trials-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 50px;
    justify-content: center;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.trial-card {
    flex: 1 1 calc(33.333% - 20px);
    min-width: 250px;
    max-width: 350px;
}

.trial-card {
    background: rgba(10, 10, 13, 0.9);
    border: 2px solid rgba(122, 26, 26, 0.3);
    border-radius: 15px;
    padding: 30px 25px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.trial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--ancient-red), var(--white));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.trial-card:hover::before {
    transform: scaleX(1);
}

.trial-card:hover {
    transform: translateY(-10px);
    border-color: var(--ancient-red);
    box-shadow: 0 15px 40px rgba(139, 0, 0, 0.6);
}

.trial-number {
    display: inline-block;
    background: linear-gradient(135deg, var(--ancient-red), var(--ancient-red-dark));
    color: var(--marble-white);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 15px;
    border: 2px solid var(--white);
}

.trial-card h3 {
    font-size: 22px;
    color: var(--white);
    margin: 15px 0;
}

.trial-card p {
    font-size: 15px;
    color: var(--dust-brown);
    line-height: 1.6;
    margin-bottom: 20px;
}

.trial-price {
    font-size: 28px;
    font-weight: 900;
    color: var(--ancient-red);
    text-shadow: 0 0 15px rgba(139, 0, 0, 0.5);
}

.trials-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.stat-box-large {
    background: rgba(10, 10, 13, 0.9);
    border: 2px solid var(--ancient-red);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-box-large:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(139, 0, 0, 0.5);
}

.stat-label-large {
    font-size: 16px;
    color: var(--stone-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.stat-value-large {
    font-size: 36px;
    font-weight: 900;
    color: var(--ancient-red);
    text-shadow: 0 0 20px rgba(139, 0, 0, 0.5);
}

/* ===== ETH PRICE BURN NODE SECTION ===== */
.burn-node-section {
    padding: 80px 0;
}

.burn-node-card {
    max-width: 1000px;
    margin: 0 auto;
    background:
        linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.9)),
        url('./images/warrior.jpeg') no-repeat center center/cover;
    border: 2px solid var(--ancient-red);
    border-radius: 25px;
    padding: 50px 40px;
    box-shadow: 0 15px 50px rgba(139, 0, 0, 0.4);
}

.burn-node-content {
    margin-top: 30px;
}

.burn-description {
    font-size: 18px;
    color: var(--dust-brown);
    line-height: 1.8;
    text-align: center;
    margin: 20px 0;
}

.burn-formula {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin: 50px 0;
    flex-wrap: wrap;
}

.formula-item {
    background: rgba(0, 0, 0, 0.2);
    border: 2px solid var(--ancient-red);
    border-radius: 15px;
    padding: 30px;
    min-width: 280px;
    text-align: center;
    transition: all 0.3s ease;
}

.formula-item img {
    width: 100px;
    filter: drop-shadow(0 0 20px #8B0000) drop-shadow(0 5px 15px rgba(0, 0, 0, 0.6));
    margin-bottom: -20px;

}

.formula-item:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(139, 0, 0, 0.5);
}

.formula-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.formula-text strong {
    display: block;
    font-size: 20px;
    color: var(--ancient-red);
    margin-bottom: 10px;
}

.formula-text span {
    font-size: 14px;
    color: var(--stone-gray);
}

.formula-arrow {
    font-size: 36px;
    color: var(--white);
    font-weight: 900;
}

/* ===== VISION LIST STYLES ===== */
.vision-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.vision-list li {
    padding: 12px 0 12px 30px;
    position: relative;
    font-size: 16px;
    color: var(--dust-brown);
    line-height: 1.6;
}

.vision-list li::before {
    content: '⚔️';
    position: absolute;
    left: 0;
    color: var(--ancient-red);
}

/* ===== VESTING NOTES ===== */
.vesting-note {
    font-size: 12px;
    color: var(--stone-gray);
    font-style: italic;
    margin-top: 5px;
    text-align: right;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 768px) {
    .presale-timer {
        padding: 15px;
        max-width: 100%;
    }

    .timer-display {
        font-size: 24px;
    }

    .timer-display span {
        min-width: 35px;
    }

    .trials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .trial-card {
        padding: 25px 20px;
    }

    .trial-card h3 {
        font-size: 20px;
    }

    .trial-price {
        font-size: 24px;
    }

    .trials-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .stat-value-large {
        font-size: 28px;
    }

    .burn-node-card {
        padding: 30px 20px;
    }

    z .burn-formula {
        flex-direction: column;
        gap: 20px;
    }

    .formula-arrow {
        transform: rotate(90deg);
    }

    .formula-item {
        min-width: 100%;
    }
}

@media (max-width: 480px) {
    .timer-display {
        font-size: 20px;
    }

    .timer-display span {
        min-width: 30px;
    }

    .trial-number {
        font-size: 12px;
        padding: 6px 15px;
    }

    .trial-card h3 {
        font-size: 18px;
    }

    .trial-price {
        font-size: 20px;
    }

    .stat-label-large {
        font-size: 14px;
    }

    .stat-value-large {
        font-size: 24px;
    }

    .formula-text strong {
        font-size: 18px;
    }

    .burn-node-card {
        padding: 25px 15px;
    }
}

/* ===== GALLERY SECTION ===== */
.gallery-section {
    padding: 100px 0;
    background:
        linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
        url('./images/gallery-bg.png') no-repeat center center/cover;
    position: relative;
    overflow: hidden;
}

.gallery-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(122, 26, 26, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 60px;
    position: relative;
    z-index: 1;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 2px solid rgba(122, 26, 26, 0.3);
}

.gallery-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(139, 0, 0, 0.6);
    border-color: var(--ancient-red);
}

.gallery-image {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease, filter 0.4s ease;
    filter: brightness(0.8);
}

.gallery-item:hover .gallery-image img {
    transform: scale(1.15);
    filter: brightness(1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(0, 0, 0, 0.3) 40%,
        rgba(10, 10, 13, 0.95) 100%
    );
    display: flex;
    align-items: flex-end;
    padding: 25px;
    opacity: 1;
    transition: all 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
    background: linear-gradient(
        180deg,
        rgba(139, 0, 0, 0.3) 0%,
        rgba(10, 10, 13, 0.98) 100%
    );
}

.gallery-content {
    width: 100%;
    transform: translateY(0);
    transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-content {
    transform: translateY(-10px);
}

.gallery-content h3 {
    font-size: 24px;
    color: var(--white);
    margin-bottom: 5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    transition: color 0.3s ease;
}

.gallery-item:hover .gallery-content h3 {
    color: var(--ancient-red);
}

.gallery-content p {
    font-size: 14px;
    color: var(--dust-brown);
    margin: 0;
    opacity: 0.9;
}

/* Gallery CTA */
.gallery-cta {
    text-align: center;
    margin-top: 60px;
}

/* Lightbox Effect (Optional Enhancement) */
.gallery-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 60px;
    height: 60px;
    background: rgba(122, 26, 26, 0.9);
    border: 2px solid var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.gallery-item::after {
    content: '🔍';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 28px;
    z-index: 11;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.gallery-item:hover::before {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* ===== GALLERY LIGHTBOX MOBILE RESPONSIVE FIXES ===== */

/* Base lightbox styles remain the same on desktop */

/* Tablet Adjustments */
@media (max-width: 1024px) {
    .lightbox-content {
        max-width: 95%;
        max-height: 95vh;
    }

    .lightbox-image {
        max-height: 65vh;
    }

    .lightbox-caption h3 {
        font-size: 24px;
    }

    .lightbox-caption p {
        font-size: 15px;
    }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .gallery-lightbox {
        padding: 10px;
    }

    .lightbox-content {
        max-width: 100%;
        max-height: 100%;
        width: 100%;
    }

    .lightbox-image {
        max-height: 60vh;
        max-width: 100%;
        border-width: 2px;
    }

    .lightbox-close,
    .lightbox-prev,
    .lightbox-next {
        width: 44px;
        height: 44px;
        font-size: 28px;
        background: rgba(122, 26, 26, 0.95);
    }

    .lightbox-close {
        top: 15px;
        right: 15px;
    }

    .lightbox-prev {
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
    }

    .lightbox-next {
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
    }

    .lightbox-prev:hover,
    .lightbox-next:hover {
        transform: translateY(-50%) scale(1.05);
    }

    .lightbox-caption {
        margin-top: 15px;
        padding: 0 10px;
    }

    .lightbox-caption h3 {
        font-size: 20px;
        margin-bottom: 8px;
    }

    .lightbox-caption p {
        font-size: 14px;
    }
}

/* Small Mobile Adjustments */
@media (max-width: 480px) {
    .gallery-lightbox {
        padding: 5px;
    }

    .lightbox-content {
        gap: 10px;
    }

    .lightbox-image {
        max-height: 55vh;
        border-width: 2px;
        border-radius: 8px;
    }

    .lightbox-close,
    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 24px;
        border-width: 2px;
    }

    .lightbox-close {
        top: 10px;
        right: 10px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-caption {
        margin-top: 12px;
        padding: 0 8px;
    }

    .lightbox-caption h3 {
        font-size: 18px;
        margin-bottom: 6px;
    }

    .lightbox-caption p {
        font-size: 13px;
        line-height: 1.4;
    }
}

/* Extra Small Mobile (360px and below) */
@media (max-width: 360px) {
    .lightbox-image {
        max-height: 50vh;
    }

    .lightbox-close,
    .lightbox-prev,
    .lightbox-next {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }

    .lightbox-caption h3 {
        font-size: 16px;
    }

    .lightbox-caption p {
        font-size: 12px;
    }
}

/* Landscape Mobile Orientation */
@media (max-width: 768px) and (orientation: landscape) {
    .lightbox-image {
        max-height: 75vh;
        max-width: 60vw;
    }

    .lightbox-caption {
        margin-top: 10px;
    }

    .lightbox-caption h3 {
        font-size: 18px;
    }

    .lightbox-caption p {
        font-size: 13px;
    }

    .lightbox-prev,
    .lightbox-next {
        top: 45%;
    }
}

/* Touch device specific adjustments */
@media (hover: none) and (pointer: coarse) {
    .lightbox-close,
    .lightbox-prev,
    .lightbox-next {
        /* Larger touch targets for mobile */
        min-width: 44px;
        min-height: 44px;
    }

    .lightbox-close:active,
    .lightbox-prev:active,
    .lightbox-next:active {
        transform: scale(0.95);
        background: var(--ancient-red-dark);
    }
}

/* Prevent body scroll when lightbox is open on mobile */
@media (max-width: 768px) {
    body.lightbox-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
        height: 100%;
    }
}

/* Fix z-index issues on mobile */
@media (max-width: 768px) {
    .gallery-lightbox {
        z-index: 100001;
    }

    .gallery-lightbox.active {
        display: flex;
    }
}

/* Animation for gallery items on scroll */
@keyframes galleryFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.gallery-item {
    animation: galleryFadeIn 0.6s ease-out forwards;
}

/* Stagger animation delays are handled by AOS data-aos-delay attributes *//* ===== TOKENOMICS SHIELD STYLES ===== */

/* Shield Container */
.shield-container {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    position: relative;
    filter: drop-shadow(0 0 30px rgba(199, 164, 90, 0.3));
}

.tokenomics-shield {
    width: 100%;
    height: auto;
    display: block;
}

/* Shield Outline Animation */
.shield-outline {
    animation: shieldPulse 4s ease-in-out infinite;
}

@keyframes shieldPulse {
    0%, 100% {
        filter: drop-shadow(0 0 10px rgba(199, 164, 90, 0.5));
    }
    50% {
        filter: drop-shadow(0 0 25px rgba(199, 164, 90, 0.8));
    }
}

/* Shield Sections */
.shield-section {
    transition: all 0.3s ease;
    cursor: pointer;
}

.section-path {
    transition: all 0.3s ease;
    stroke: rgba(199, 164, 90, 0.3);
    stroke-width: 1;
}

.shield-section:hover .section-path {
    opacity: 1 !important;
    stroke: #C7A45A;
    stroke-width: 2;
    filter: drop-shadow(0 0 15px rgba(199, 164, 90, 0.8));
}

/* Section Labels */
.section-label {
    fill: #E6E1D5;
    font-family: 'Cinzel', serif;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    pointer-events: none;
}

.shield-section:hover .section-label {
    fill: #FFFFFF;
}

/* Center EVN Text */
.center-text {
    font-family: 'LeviBrush', serif;
    text-shadow: 0 0 20px rgba(199, 164, 90, 0.8);
    animation: centerGlow 3s ease-in-out infinite;
}

@keyframes centerGlow {
    0%, 100% {
        fill: #E6E1D5;
        filter: drop-shadow(0 0 5px rgba(199, 164, 90, 0.5));
    }
    50% {
        fill: #C7A45A;
        filter: drop-shadow(0 0 15px rgba(199, 164, 90, 1));
    }
}

/* Individual Section Animations */
.section-presale {
    animation: sectionFadeIn 0.6s ease-out 0.1s both;
}

.section-staking {
    animation: sectionFadeIn 0.6s ease-out 0.2s both;
}

.section-burn {
    animation: sectionFadeIn 0.6s ease-out 0.3s both;
}

.section-airdrops {
    animation: sectionFadeIn 0.6s ease-out 0.4s both;
}

.section-team {
    animation: sectionFadeIn 0.6s ease-out 0.5s both;
}

.section-liquidity {
    animation: sectionFadeIn 0.6s ease-out 0.6s both;
}

@keyframes sectionFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 0.9;
        transform: scale(1);
    }
}

/* Responsive Shield Styles */
@media (max-width: 1024px) {
    .shield-container {
        max-width: 400px;
    }
    
    .section-label tspan:first-child {
        font-size: 16px;
    }
    
    .section-label tspan:last-child {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .shield-container {
        max-width: 350px;
        margin: 30px auto;
    }
    
    .section-label tspan:first-child {
        font-size: 14px;
    }
    
    .section-label tspan:last-child {
        font-size: 18px;
    }
    
    .center-text {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .shield-container {
        max-width: 300px;
    }
    
    .section-label tspan:first-child {
        font-size: 12px;
    }
    
    .section-label tspan:last-child {
        font-size: 16px;
    }
    
    .center-text {
        font-size: 24px;
    }
}

/* Update existing tokenomics section to remove Chart.js dependencies */
.tokenomics-left {
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: "Cinzel", serif;
    padding: 20px;
}

/* Remove old chart container styles if they exist */
#chartContainer {
    display: none;
}

#myChart {
    display: none;
}

/* Tooltip for shield sections (optional enhancement) */
.shield-tooltip {
    position: absolute;
    background: rgba(10, 10, 13, 0.95);
    border: 2px solid #fff;
    border-radius: 10px;
    padding: 15px;
    color: #E6E1D5;
    font-family: 'Cinzel', serif;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1000;
    min-width: 200px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.8);
}

.shield-tooltip.active {
    opacity: 1;
}

.shield-tooltip h4 {
    color: #ffff;
    margin: 0 0 8px 0;
    font-size: 16px;
}

.shield-tooltip p {
    margin: 0;
    font-size: 14px;
    color: #ffff;
}

/* Interactive Effects */
.shield-section {
    transform-origin: center;
}

.shield-section:hover {
    animation: sectionHover 0.6s ease-in-out;
}

@keyframes sectionHover {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Glow effect on hover for each section */
.shield-section:hover .section-path.section-presale {
    filter: drop-shadow(0 0 20px #8B0000);
}

.shield-section:hover .section-path.section-staking {
    filter: drop-shadow(0 0 20px #7A1A1A);
}

.shield-section:hover .section-path.section-burn {
    filter: drop-shadow(0 0 20px #C7A45A);
}

.shield-section:hover .section-path.section-airdrops {
    filter: drop-shadow(0 0 20px #C2A078);
}

.shield-section:hover .section-path.section-team {
    filter: drop-shadow(0 0 20px #7C4A21);
}

.shield-section:hover .section-path.section-liquidity {
    filter: drop-shadow(0 0 20px #6A6A6A);
}

/* Loading animation for shield */
@keyframes shieldReveal {
    from {
        opacity: 0;
        transform: scale(0.5) rotateY(180deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotateY(0deg);
    }
}

.tokenomics-shield {
    animation: shieldReveal 1s ease-out;
}