:root {
    --primary-color: #f1f507;
    --secondary-color: #d500e9;
    --accent-color: #ff00e5;
    --background-color: transparent;
    --card-bg: rgba(16, 18, 37, 0.8);
    --text-color: #ffffff;
    --text-secondary: #ecbd64;
    --border-radius: 16px;
    --glow: 0 0 20px rgba(0, 255, 157, 0.3);
    --glow-strong: 0 0 30px rgba(0, 255, 157, 0.6);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Exo 2', sans-serif;
    background-image: url('images/bkgg.png');
    background-size: cover; /* Changed from 'relative' to 'cover' */
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Optional: keeps background fixed */
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}



/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo h1 {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.token-symbol {
    color: var(--text-secondary);
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Wallet Section */
.wallet-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.connect-btn {
    position: relative;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border: none;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    color:  #ffffff;
    font-weight: 600;
    cursor: pointer;
    overflow: hidden;
    transition: var(--transition);
    font-family: 'Exo 2', sans-serif;
}

.connect-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-strong);
}

.btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.connect-btn:hover .btn-glow {
    left: 100%;
}

.wallet-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 12px 20px;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.wallet-address {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.token-balance {
    font-weight: 600;
    color: var(--primary-color);
}

.profile-btn {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.profile-btn:hover {
    background: var(--primary-color);
    color: var(--background-color);
}

/* Stats Section */
.platform-stats {
    padding: 40px 0;
    background: rgba(0, 0, 0, 0.2);
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.stat-icon img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.stat-info h3 {
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 5px;
}

.stat-info p {
    color: var(--light);
    font-size: 1rem;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 0;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    font-family: 'Orbitron', monospace;
}

.gradient-text {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Orbitron', monospace;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Locked Event Card */
.event-card.locked {
    position: relative;
}

.locked-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(2px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
    border-radius: 15px;
}

.locked-icon {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 15px;
}

.locked-text {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
}

.locked-countdown {
    display: flex;
    gap: 10px;
}

.locked-countdown-item {
    text-align: center;
}

.locked-countdown-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
}

.locked-countdown-label {
    font-size: 0.7rem;
    color: var(--gray);
    text-transform: uppercase;
}

/* Events Section */
.events-section {
  padding: 4rem 2rem;
  background: transparent);
}

.section-title {
  text-align: center;
  color: white;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  text-shadow: 0 0 20px rgba(255,255,255,0.3);
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.event-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  min-height: 400px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card:hover {
  transform: translateY(-10px);
}

.card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.3s ease;
}

.event-card:hover .card-bg {
  transform: scale(1.1);
}

/* Individual Background Images */
.social-bg {
  background-image: url('images/sc1.png');
}

.giveaway-bg {
  background-image: url('images/gv1.png');
}

.airdrop1-bg {
  background-image: url('images/ad5.png');
}

.airdrop2-bg {
  background-image: url('images/ad4.png')
}

.card-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.event-card:hover .card-glow {
  opacity: 1;
}

.card-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: white;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.3) 0%,
    rgba(0,0,0,0.6) 100%
  );
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.card-header h3 {
  font-size: 1.5rem;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.event-badge {
  background: rgba(255,255,255,0.2);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
  backdrop-filter: blur(10px);
}

.participants {
  text-align: center;
  margin: 1.5rem 0;
}

.count {
  display: block;
  font-size: 2rem;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 0 20px rgba(255,255,255,0.5);
}

.card-description {
  text-align: center;
  margin: 1.5rem 0;
  line-height: 1.6;
  opacity: 0.9;
}

.participate-btn {
  position: relative;
  background: rgba(255,255,255,0.1);
  border: 2px solid rgba(255,255,255,0.3);
  color: white;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  overflow: hidden;
  width: 100%;
}

.participate-btn:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.5);
  transform: scale(1.05);
}

.btn-glow {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: left 0.5s ease;
}

.participate-btn:hover .btn-glow {
  left: 100%;
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--glow-strong);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h2 {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
}

.close {
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition);
}

.close:hover {
    color: var(--primary-color);
}

.modal-body {
    padding: 2rem;
}

/* Wallet Options */
.wallet-options {
    margin: 2rem 0;
}

.wallet-option-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
}

.wallet-option-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
}

.wallet-icon img {
    width: 32px;
    height: 32px;
}

.wallet-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.wallet-text span:last-child {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Install Guide */
.install-guide {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    margin-top: 2rem;
}

.install-header h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.install-link {
    display: inline-block;
    margin-top: 1rem;
    padding: 12px 24px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: var(--background-color);
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
}

.install-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow);
}

/* Forms */
.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    color: var(--text-color);
    font-family: 'Exo 2', sans-serif;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: var(--glow);
}

.input-glow {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: var(--transition);
}

.form-group input:focus ~ .input-glow {
    transform: scaleX(1);
}

.submit-btn {
    position: relative;
    width: 100%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border: none;
    padding: 14px 28px;
    border-radius: var(--border-radius);
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
    overflow: hidden;
    transition: var(--transition);
    font-family: 'Exo 2', sans-serif;
    margin-top: 1rem;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-strong);
}

/* Profile Modal */
.profile-info {
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.wallet-address-text {
    font-family: 'Courier New', monospace;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.balance-text {
    color: var(--primary-color);
    font-weight: 600;
}

.points-breakdown h3 {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.points-grid {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

.point-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
}

.point-label {
    color: var(--text-secondary);
}

.point-value {
    color: var(--primary-color);
    font-weight: 600;
}

.total-points {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(0, 255, 157, 0.1);
    border-radius: var(--border-radius);
    border: 1px solid var(--primary-color);
}

.total-points-value {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 700;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.loading-spinner {
    text-align: center;
}

.spinner-ring {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.spinner-text {
    color: var(--text-color);
    font-size: 1rem;
}

/* Success Notification */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #00d4aa, #00b894);
    color: #ffffff;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 212, 170, 0.4);
    z-index: 3000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.notification.show {
    transform: translateX(0);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.notification-icon {
    font-weight: bold;
    font-size: 1.2rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .events-grid {
        grid-template-columns: 1fr;
    }

    .wallet-info {
        flex-direction: column;
        text-align: center;
    }

    .modal-content {
        width: 95%;
        margin: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}