/* =======================
    GLOBAL & THEME
   ======================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', Arial, sans-serif;
    background-color: #000B17;
    color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* =======================
    NAVIGATION
   ======================= */
.nav-top {
    background-color: rgba(91, 44, 160, 0.95);
    padding: 10px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(129, 231, 87, 0.2);
}

.top-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 12px;
    /* Fixes spacing between img and h1 */
}

.logo-link img {
    width: 50px;
    height: auto;
}

.logo-link h1 {
    font-family: "Mea Culpa", cursive;
    color: #81e757;
    font-size: 2.5rem;
    margin: 0;
}

/* =======================
    WALLET BUTTON STATES
   ======================= */
#wallet-btn {
    background: linear-gradient(135deg, #81e757 0%, #68D573 100%);
    border: none;
    padding: 10px 22px;
    border-radius: 10px;
    color: #000;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.wallet-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Centers balance under the button */
    gap: 5px;
}

.balance-text {
    font-size: 0.85rem;
    color: #81e757;
    font-weight: 600;
    opacity: 0;
    /* Hidden until connected */
    transition: opacity 0.3s ease;
}

.balance-text.show {
    opacity: 1;
}

#wallet-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(129, 231, 87, 0.6);
}

/* Connected State (Triggered by script.js) */
.connected-state {
    background: #1e3a5f !important;
    border: 1px solid #81e757 !important;
    color: #fff !important;
    box-shadow: none !important;
}

.connected-state:hover {
    background: #ff4b4b !important;
    border-color: #ff4b4b !important;
    transform: scale(1.02) !important;
    box-shadow: 0 0 15px rgba(255, 75, 75, 0.4) !important;
}

/* =======================
    HERO & BANNERS
   ======================= */
.banner-first,
.banner-second {
    padding: 60px 20px;
    display: flex;
    justify-content: center;
}

.banner-first-container,
.banner-second-container {
    max-width: 800px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.banner-first h1,
.banner-second h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    background: linear-gradient(to right, #ffffff, #81e757);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.banner-second img {
    max-width: 320px;
    height: auto;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transition: 0.3s;
    cursor: pointer;
}

.banner-second img:hover {
    animation: slide-left-right 1s forwards;
    box-shadow: 0 0 30px rgba(129, 231, 87, 0.3);
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

li {
    color: #D5F7C7;
}

@keyframes slide-left-right {
    0% {
        transform: translateX(0);
    }

    30% {
        transform: translateX(-30px);
    }

    60% {
        transform: translateX(30px);
    }

    100% {
        transform: translateX(0);
    }
}

/* =======================
    MINT UI & PROGRESS
   ======================= */
.mint-stats-container {
    background: #0a1625;
    padding: 30px;
    border-radius: 20px;
    margin: 30px 0;
    width: 100%;
    max-width: 450px;
    border: 1px solid #1e3a5f;
}

#countdown-timer {
    font-weight: bold;
    color: #81e757;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.progress-bar-bg {
    width: 100%;
    background: #162a44;
    height: 14px;
    border-radius: 10px;
    overflow: hidden;
    margin: 15px 0;
}

#progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #81e757, #68D573);
    transition: width 1s ease;
}

#mint-btn {
    background: #81e757;
    color: #000;
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

#mint-btn:hover:not(:disabled) {
    background: #fff;
    transform: translateY(-3px);
}

#mint-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #162a44;
    color: #fff;
}

/* =======================
    FEATURES GRID
   ======================= */
.features-section {
    padding: 100px 20px;
    background: rgba(10, 22, 37, 0.5);
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 900;
}

.features-container .features-grid .feature-card p {
    color:  #5a5a59;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 50px;
}

.feature-card {
    background: #0a1625;
    border: 1px solid #1e3a5f;
    padding: 40px;
    border-radius: 20px;
    transition: 0.3s;
    text-align: left;
}

.feature-card i {
    font-size: 2rem;
    color: #81e757;
    margin-bottom: 20px;
}

.feature-card:hover {
    border-color: #81e757;
    transform: translateY(-10px);
}

.features-container h4 {
    font-size: 16px;
    color: #1e3a5f;
}

/* =======================
    MODALS & POPUPS
   ======================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    display: none;
    /* JS controlled */
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-content {
    background: #0a1625;
    padding: 40px;
    border-radius: 25px;
    border: 1px solid #1e3a5f;
    width: 90%;
    max-width: 400px;
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

#close-modal {
    cursor: pointer;
    font-size: 1.5rem;
}

.wallet-option {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #162a44;
    margin-bottom: 12px;
    border-radius: 12px;
    cursor: pointer;
    border: 1px solid transparent;
    gap: 15px;
}

.wallet-option:hover {
    border-color: #81e757;
    background: #1e3a5f;
}

/* =======================
    FOOTER
   ======================= */
footer {
    padding: 60px 20px;
    background: #050d18;
    text-align: center;
    border-top: 1px solid #1e3a5f;
}

.footer-container h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.footer-container p {
    color: #5a5a59;
}

.laam {
    color: #582C9B;
}

.tag {
    color: #81e757;
}

.footer-icon-links {
    margin-top: 20px;
}

.footer-icon-links a {
    color: #81e757;
    font-size: 1.5rem;
    margin: 0 15px;
    text-decoration: none;
    transition: 0.3s;
}

.footer-icon-links a:hover {
    color: #5b2ca0;
}