/* Custom styles */
html {
    scroll-behavior: smooth;
}

/* Navigation styles */
.nav-link {
    position: relative;
    display: flex;
    align-items: center;
    color: rgb(255 255 255 / 0.6);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.75rem;
    border-radius: 1rem;
    background: transparent;
}

.nav-link i {
    transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover i {
    transform: scale(1.1);
}

.nav-link:hover {
    color: rgb(255 255 255);
    background: rgb(255 255 255 / 0.1);
}

.nav-link.active {
    color: rgb(255 255 255);
    background: rgb(255 255 255 / 0.1);
}

.nav-link::after {
    content: '';
    position: absolute;
    right: -0.75rem;
    height: 2rem;
    width: 0.25rem;
    background-color: rgb(255 255 255);
    transform: scaleY(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0.5rem;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.nav-link:hover::after {
    transform: scaleY(0.6);
}

.nav-link.active::after {
    transform: scaleY(1);
}

/* Logo animation */
@keyframes subtle-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }
    50% {
        transform: scale(1.03);
        box-shadow: 0 0 10px 5px rgba(255, 255, 255, 0.2);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }
}

.nav-logo {
    animation: subtle-pulse 2s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

/* Social links */
.social-link {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    background-color: rgb(0 0 0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgb(255 255 255);
    transition: all 0.3s;
    border: 1px solid rgb(255 255 255 / 0.3);
}

.social-link:hover {
    background-color: rgb(255 255 255);
    color: rgb(0 0 0);
    border-color: rgb(255 255 255);
    transform: scale(1.1);
}

/* Card hover effects */
.feature-card,
.team-card,
.rules-card,
.join-card {
    transform-style: preserve-3d;
    transform: perspective(1000px);
    overflow: hidden;
}

/* Glassmorphism effects */
.glass-card {
    background-color: rgb(31 41 55 / 0.7);
    backdrop-filter: blur(16px);
    border: 1px solid rgb(75 85 99);
}

/* Gradient and Animation Effects */
@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.animate-gradient {
    background-size: 200% 200%;
    animation: gradient-shift 15s ease infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

.animate-pulse {
    animation: pulse 4s ease-in-out infinite;
}

/* Hero Section Enhancements */
.hero-title {
    text-shadow: 0 0 30px rgba(107, 114, 128, 0.2);
}

.reveal-text {
    line-height: 1.1;
    overflow: hidden;
    display: block;
}

.hero-stats {
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 6px -1px rgba(107, 114, 128, 0.1), 
                0 2px 4px -1px rgba(107, 114, 128, 0.06);
}

.hero-button {
    box-shadow: 0 10px 15px -3px rgba(107, 114, 128, 0.2), 
                0 4px 6px -2px rgba(107, 114, 128, 0.1);
}

.hero-button:hover {
    box-shadow: 0 20px 25px -5px rgba(107, 114, 128, 0.25), 
                0 10px 10px -5px rgba(107, 114, 128, 0.15);
    transform: translateY(-2px);
}

/* Hero Section Layout */
.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: calc(100vh - 10rem);
    padding: 5rem 0;
}

.hero-stats-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin: 2.5rem 0;
}

.hero-stat-item {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgb(255, 255, 255);
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-stat-item:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Decorative Elements Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(12deg);
    }
    50% {
        transform: translateY(-20px) rotate(12deg);
    }
}

.float {
    animation: float 6s ease-in-out infinite;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background-color: rgb(0 0 0);
}

::-webkit-scrollbar-thumb {
    background-color: rgb(255 255 255 / 0.3);
    border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: rgb(255 255 255 / 0.5);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .nav-link::after {
        width: 100%;
        height: 0.25rem;
        bottom: 0;
        transform: scaleX(0);
    }

    .nav-link:hover::after,
    .nav-link.active::after {
        transform: scaleX(1);
    }
}
