/* Font Face */
@font-face {
    font-family: 'Stopbuck';
    src: url('fonts/Stopbuck.ttf') format('truetype'),
         url('fonts/Stopbuck.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --primary-blue: #00a8ff;
    --dark-blue: #004e92;
    --text-color: #ffffff;
    --accent-yellow: #ffcc00;
}

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

body {
    font-family: 'Stopbuck', sans-serif;
    color: var(--text-color);
    background-color: #000;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Stopbuck', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-yellow);
    text-shadow: 3px 3px 0px #004e92, 5px 5px 0px #000;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 110vh; /* Increased height for overlap */
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 50px;
    overflow: hidden;
    z-index: 3;
    margin-bottom: -20vh; /* Increased negative margin for smoother blend */
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center top;
    z-index: -1;
    /* Smooth fade mask moved to bg only */
    mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}

.hero-content {
    text-align: center;
    z-index: 1;
    margin-top: 20px;
}

.main-title {
    font-size: 5rem;
    margin-bottom: 20px;
}

.pumpfun-btn {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(45deg, #ffcc00, #ff9900);
    color: #000;
    font-family: 'Stopbuck', sans-serif;
    font-size: 1.5rem;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 3px solid #fff;
}

.pumpfun-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 204, 0, 0.6);
}

/* About Section */
.about-section {
    position: relative;
    min-height: 110vh;
    display: flex;
    align-items: center;
    padding: 200px 20px 50px 20px; /* Increased top padding to account for overlap */
    z-index: 2;
    margin-bottom: -20vh; /* Increased negative margin for smoother blend */
}

.about-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: 20% center; /* Shift image left to avoid overlap */
    z-index: -1;
    /* Smooth fade mask moved to bg only so content stays visible */
    mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.about-text-wrapper {
    max-width: 600px;
    background: rgba(0, 78, 146, 0.7);
    padding: 30px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
    border: 2px solid rgba(255,255,255,0.2);
    margin-left: auto; /* Push to right if needed, or remove for left align */
    margin-right: 5%; /* Adjust based on image composition */
}

.section-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-align: left;
}

.center-text {
    text-align: center;
}

.description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    font-size: 0.95rem;
}

.stat-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 168, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

.stat-value {
    font-family: 'Stopbuck', sans-serif;
    font-size: 1.8rem;
    color: var(--accent-yellow);
    text-shadow: 2px 2px 0 #000;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

.full-width {
    grid-column: span 2;
}

/* Cards Section */
.cards-section {
    position: relative;
    min-height: 100vh;
    padding: 200px 20px 50px 20px; /* Increased top padding */
    overflow: hidden;
    margin-top: 0;
    z-index: 1;
}

.cards-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center bottom;
    z-index: -1;
}

.cards-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
}

.card-item {
    width: 220px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.27);
    cursor: pointer;
    position: relative;
}

.card-item img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    border: 2px solid rgba(255,255,255,0.3);
}

.card-item:hover {
    transform: scale(1.1) translateY(-10px);
    z-index: 10;
}

.card-item:hover img {
    box-shadow: 0 0 20px rgba(0, 168, 255, 0.8);
    border-color: var(--primary-blue);
}

/* Footer */
footer {
    background: #002244;
    color: white;
    text-align: center;
    padding: 20px;
    position: relative;
    z-index: 10;
}

/* Bubbles Animation */
.bubbles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.bubble {
    position: absolute;
    bottom: -100px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    opacity: 0.5;
    animation: rise 10s infinite ease-in;
}

.bubble:nth-child(1) { left: 10%; width: 80px; height: 80px; animation-duration: 8s; animation-delay: 0s; }
.bubble:nth-child(2) { left: 20%; width: 40px; height: 40px; animation-duration: 5s; animation-delay: 1s; }
.bubble:nth-child(3) { left: 35%; width: 50px; height: 50px; animation-duration: 7s; animation-delay: 2s; }
.bubble:nth-child(4) { left: 50%; width: 60px; height: 60px; animation-duration: 11s; animation-delay: 0s; }
.bubble:nth-child(5) { left: 65%; width: 35px; height: 35px; animation-duration: 6s; animation-delay: 1s; }
.bubble:nth-child(6) { left: 80%; width: 45px; height: 45px; animation-duration: 8s; animation-delay: 3s; }
.bubble:nth-child(7) { left: 90%; width: 70px; height: 70px; animation-duration: 9s; animation-delay: 2s; }
.bubble:nth-child(8) { left: 25%; width: 25px; height: 25px; animation-duration: 4s; animation-delay: 4s; }

@keyframes rise {
    0% {
        bottom: -100px;
        transform: translateX(0);
    }
    50% {
        transform: translateX(100px);
    }
    100% {
        bottom: 100%;
        transform: translateX(-200px);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .main-title {
        font-size: 3rem;
    }
    
    .about-text-wrapper {
        margin: 0 auto;
        width: 90%;
        margin-right: auto; /* Reset margin-right */
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .full-width {
        grid-column: span 1;
    }
    
    .card-item {
        width: 150px;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }

    .pumpfun-btn {
        padding: 12px 30px;
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
        text-align: center;
    }

    .about-section {
        padding: 100px 15px 30px 15px;
        min-height: auto;
    }

    .about-text-wrapper {
        width: 100%;
        padding: 20px;
        margin-top: 20px;
    }

    .cards-section {
        padding-top: 100px;
    }

    .cards-grid {
        gap: 15px;
    }

    .card-item {
        width: 45%; /* Allow 2 per row with gap */
        max-width: 160px;
    }
    
    .pokedex-card {
        padding: 20px;
    }
    
    .stat-row {
        font-size: 0.85rem;
    }
}

@media (max-width: 360px) {
    .main-title {
        font-size: 2rem;
    }
    
    .pumpfun-btn {
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    .card-item {
        width: 100%; /* 1 per row on very small screens */
        max-width: 220px;
    }
}

/* Pokedex Card Style */
.pokedex-card {
    background: rgba(0, 78, 146, 0.85);
    border: 3px solid var(--accent-yellow);
    border-radius: 20px;
    padding: 30px;
    max-width: 500px; /* Reduced width */
    margin-left: auto;
    margin-right: 5%;
    margin-top: 50px; /* Push down slightly */
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(0, 168, 255, 0.5);
    color: #fff;
    position: relative;
    z-index: 2;
    overflow: hidden; /* For scan effect */
    transition: all 0.3s ease;
}

.pokedex-card:hover {
    transform: scale(1.02);
    box-shadow: 0 0 40px rgba(0, 168, 255, 0.6);
    border-color: #fff;
}

/* Scan Line Animation */
.pokedex-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, transparent, var(--accent-yellow), transparent);
    box-shadow: 0 0 15px var(--accent-yellow);
    animation: scan-line 4s linear infinite;
    opacity: 0.5;
    pointer-events: none;
}

@keyframes scan-line {
    0% { top: -10%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 110%; opacity: 0; }
}

.pokedex-desc {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 25px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 20px;
}

.pokedex-stats {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stat-row {
    font-size: 0.95rem;
    display: flex;
    border-bottom: 1px dashed rgba(255,255,255,0.1);
    padding-bottom: 5px;
}

.stat-row strong {
    color: var(--accent-yellow);
    min-width: 100px;
    margin-right: 10px;
}

@media (max-width: 768px) {
    .pokedex-card {
        margin: 0 auto;
        width: 90%;
    }
}

/* Tokenomics HUD */
.tokenomics-hud {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid var(--primary-blue);
    border-radius: 15px;
    padding: 20px;
    margin-top: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto; /* Center it */
    box-shadow: 0 0 20px rgba(0, 168, 255, 0.4), inset 0 0 20px rgba(0, 168, 255, 0.2);
    position: relative;
    z-index: 2;
    backdrop-filter: blur(5px);
}

.hud-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.hud-label {
    font-size: 0.9rem;
    color: #aaa;
    letter-spacing: 2px;
}

.hud-value {
    font-size: 1.8rem;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.hud-divider {
    width: 2px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    .tokenomics-hud {
        width: 90%;
        padding: 15px;
    }
    
    .hud-value {
        font-size: 1.4rem;
    }
}

@media (max-width: 600px) {
    .tokenomics-hud {
        flex-direction: column;
        gap: 15px;
        width: 90%;
        margin-top: 20px;
    }
    
    .hud-divider {
        width: 50%;
        height: 1px;
        background: rgba(255, 255, 255, 0.1);
    }
    
    .hud-value {
        font-size: 1.3rem;
        word-break: break-all; /* Prevent overflow for long numbers */
    }
    
    .hud-label {
        font-size: 0.8rem;
    }
}

/* Partners Section */
.partners-section {
    padding: 40px 0;
    background: rgba(0, 0, 0, 0.8);
    position: relative;
    z-index: 2;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.partners-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.partners-container::before,
.partners-container::after {
    content: "";
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
}

.partners-container::before {
    left: 0;
    background: linear-gradient(to right, #000, transparent);
}

.partners-container::after {
    right: 0;
    background: linear-gradient(to left, #000, transparent);
}

.partners-track {
    display: flex;
    width: calc(200px * 8); /* 4 logos * 2 (duplicate) * width */
    animation: scroll 20s linear infinite;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-200px * 4)); }
}

.partner-logo {
    width: 200px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 40px;
    color: rgba(255, 255, 255, 0.3);
    transition: color 0.3s ease;
}

.partner-logo svg {
    height: 100%;
    width: auto;
    max-width: 100%;
    fill: currentColor;
    filter: drop-shadow(0 0 0 rgba(0,0,0,0));
    transition: all 0.3s ease;
}

.partner-logo:hover {
    color: #fff;
}

.partner-logo:hover svg {
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8));
    transform: scale(1.1);
}


