@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

html {
  scroll-behavior: smooth;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
.animate-slide-in-right {
  animation: slideInRight 0.3s ease-out;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #0f172a;
    color: #f8fafc;
    overflow-x: hidden;
}

.gradient-bg {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.card-glass {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mining-card,
.staking-card {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.mining-card:hover,
.staking-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: #3b82f6;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Additional styles for mobile navigation */
.nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #1f2937;
    width: 100%;
    z-index: 10;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.nav-links.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
    animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-link {
    padding: 1rem;
    color: #ffffff;
    text-align: center;
    text-decoration: none;
    width: 100%;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
        position: static;
        flex-direction: row;
        background-color: transparent;
        justify-content: center;
        width: auto;
        opacity: 1;
        transform: none;
        animation: none;
    }
}

/* Add this to your CSS file */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Add this to your CSS file */
@keyframes modalFadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

#modalContent, #infoModalContent {
    max-height: 90vh; /* Set maximum height */
    overflow-y: auto; /* Enable vertical scrolling */
    animation: modalFadeIn 0.3s ease-in-out; /* Fade in animation */
}

.hidden {
    display: none; /* Hide element */
}

.transition-opacity {
    transition: opacity 0.3s ease-in-out;
}

.transition-transform {
    transition: transform 0.3s ease-in-out;
}

.btn-primary {
    background: linear-gradient(90deg, #3b82f6 0%, #6366f1 100%);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.slide-in-left {
    animation: slideInLeft 0.5s ease-out;
}

@keyframes slideInLeft {
    from {
        transform: translateX(-50px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.slide-in-right {
    animation: slideInRight 0.5s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(50px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.progress-bar {
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(90deg, #3b82f6 0%, #6366f1 100%);
    transition: width 0.5s ease;
}

.mining-animation {
    position: relative;
    overflow: hidden;
}

.mining-animation::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to bottom right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0) 30%,
            rgba(255, 255, 255, 0.05) 45%,
            rgba(255, 255, 255, 0) 60%,
            rgba(255, 255, 255, 0) 100%);
    transform: rotate(30deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        left: -50%;
    }

    100% {
        left: 150%;
    }
}

@keyframes fireGlow {
  0%, 100% {
    box-shadow: 0 0 8px hwb(319 36% 7%) 0 0 16px hsl(317, 64%, 52%), 0 0 24px #80017c;
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 16px hwb(319 36% 7%), 0 0 24px hsl(317, 64%, 52%), 0 0 32px #80017c;
    transform: scale(1.02);
  }
}
.fire-hover:hover {
  animation: fireGlow 1.5s infinite ease-in-out;
}
@media (hover: none) {
  .fire-hover:active {
    animation: fireGlow 1.5s infinite ease-in-out;
  }
}

    .gradient-border {
        position: relative;
        border-radius: 0.75rem;
    }
    .gradient-border::after {
        content: '';
        position: absolute;
        top: -1px; left: -1px; right: -1px; bottom: -1px;
        border-radius: 0.75rem;
        background: linear-gradient(45deg, #6d28d9, #4f46e5, #9333ea);
        z-index: -1;
        opacity: 0.7;
    }
    .glow-on-hover:hover {
        box-shadow: 0 0 15px rgba(124, 58, 237, 0.7);
        transition: box-shadow 0.3s ease;
    }
    @keyframes pulse {
        0% { transform: scale(1); }
        50% { transform: scale(1.05); }
        100% { transform: scale(1); }
    }
    .pulse-animation {
        animation: pulse 2s infinite;
    }

    @keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.4s ease-out forwards;
}
