/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #0f172a;
}

::-webkit-scrollbar-thumb {
    background: #7c3aed;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9333ea;
}

/* Text Gradient */
.text-gradient {
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(135deg, #7c3aed 0%, #9333ea 100%);
    box-shadow: 0 10px 25px rgba(124, 58, 237, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 15px 35px rgba(124, 58, 237, 0.5);
}

.btn-secondary {
    background: rgba(124, 58, 237, 0.1);
    border: 2px solid #7c3aed;
}

.btn-secondary:hover {
    background: rgba(124, 58, 237, 0.2);
}

/* Navbar Styles */
#navbar .navbar-container {
    background: rgba(17, 24, 39, 0.3);
    box-shadow: none;
}

/* Fade In Up Animation */
.fade-in-up {
    animation: fadeInUp 1s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Reveal Animation */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Feature Card */
.feature-card {
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.8) 0%, rgba(88, 28, 135, 0.2) 100%);
    border: 1px solid rgba(168, 85, 247, 0.1);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(168, 85, 247, 0.3);
    box-shadow: 0 20px 40px rgba(124, 58, 237, 0.3);
}

/* Feature Item */
.feature-item {
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInLeft 0.6s ease forwards;
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Stat Card */
.stat-card {
    opacity: 0;
    transform: scale(0.9);
    animation: scaleIn 0.6s ease forwards;
}

@keyframes scaleIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Value Card */
.value-card {
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.9) 0%, rgba(88, 28, 135, 0.3) 100%);
    border: 1px solid rgba(168, 85, 247, 0.1);
    transition: all 0.3s ease;
}

.value-card:hover {
    transform: translateY(-10px);
    border-color: rgba(168, 85, 247, 0.3);
    box-shadow: 0 15px 30px rgba(124, 58, 237, 0.2);
}

/* Team Card */
.team-card {
    background: rgba(17, 24, 39, 0.8);
    border: 1px solid rgba(168, 85, 247, 0.1);
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: translateY(-10px);
    border-color: rgba(168, 85, 247, 0.3);
    box-shadow: 0 15px 30px rgba(124, 58, 237, 0.2);
}

.team-card img {
    transition: transform 0.3s ease;
}

.team-card:hover img {
    transform: scale(1.1);
}

/* Shop Card */
.shop-card {
    background: rgba(17, 24, 39, 0.9);
    border: 1px solid rgba(168, 85, 247, 0.1);
    transition: all 0.3s ease;
    transform-style: preserve-3d;
}

.shop-card:hover {
    border-color: rgba(168, 85, 247, 0.3);
    box-shadow: 0 25px 50px rgba(124, 58, 237, 0.4);
}

.shop-card-image img {
    transition: transform 0.5s ease;
}

.shop-card:hover .shop-card-image img {
    transform: scale(1.15);
}

/* Server Card */
.server-card {
    background: rgba(17, 24, 39, 0.9);
    border: 1px solid rgba(168, 85, 247, 0.1);
    transition: all 0.3s ease;
}

.server-card:hover {
    transform: translateY(-5px);
    border-color: rgba(168, 85, 247, 0.3);
    box-shadow: 0 20px 40px rgba(124, 58, 237, 0.3);
}

.server-card img {
    transition: transform 0.5s ease;
}

.server-card:hover img {
    transform: scale(1.05);
}

/* Connect Step */
.connect-step {
    transition: all 0.3s ease;
}

.connect-step:hover {
    transform: translateY(-5px);
    background: rgba(88, 28, 135, 0.3);
}

/* Copy Button */
.copy-btn {
    transition: all 0.3s ease;
}

.copy-btn:hover {
    transform: scale(1.05);
}

/* Modal Styles */
.modal {
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.modal-content {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.modal-backdrop {
    cursor: pointer;
}

/* Toast Notification */
#toast {
    z-index: 9999;
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.5);
}

/* Pulse Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Bounce Animation */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.animate-bounce {
    animation: bounce 2s infinite;
}

/* Glow Effect */
.glow {
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.6);
}

/* Gradient Background Animation */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.gradient-animated {
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
}

/* Discord Button */
.discord-btn {
    transition: all 0.3s ease;
}

.discord-btn:hover {
    box-shadow: 0 5px 20px rgba(124, 58, 237, 0.5);
}

/* Nav Link Active State */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #a855f7, #ec4899);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    .text-gradient {
        font-size: 3rem;
    }
    
    #navbar .navbar-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    #navbar .navbar-container > div {
        width: 100%;
        justify-content: center;
    }
}

/* Loading State */
.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Selection Color */
::selection {
    background: rgba(168, 85, 247, 0.5);
    color: white;
}

::-moz-selection {
    background: rgba(168, 85, 247, 0.5);
    color: white;
}
