/* Custom CSS for DevilStreetsRP */

/* Font imports */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Open+Sans:wght@300;400;500;600;700&display=swap');

/* Global Styles */
* {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
}

.font-gaming {
    font-family: 'Orbitron', monospace;
}

.font-rajdhani {
    font-family: 'Open Sans', sans-serif;
}

/* Navigation Styles */
#navbar {
    background: rgba(15, 15, 15, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Navigation button alignment fix */
#navbar .hidden.lg\\:flex {
    align-items: center;
}

#navbar button {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

#navbar.scrolled {
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

#navbar.at-top {
    background: rgba(15, 15, 15, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
    box-shadow: none;
}

/* Navigation Links */
.nav-link {
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #FFD700, #FFA500);
    transition: width 0.3s ease;
}

.nav-link:hover::before {
    width: 100%;
}

/* Mobile Menu Styles */
#mobile-menu {
    z-index: 50;
    background: #0F0F0F;
}

#mobile-menu.show {
    transform: translateY(0);
}

/* Mobile Navigation Links */
.mobile-nav-link {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav-link:hover {
    background: rgba(255, 215, 0, 0.1);
}

.mobile-nav-link:active {
    transform: translateX(5px);
}

/* Responsive Breakpoints */
@media (min-width: 476px) {
    .xs\:block {
        display: block !important;
    }
    
    .xs\:hidden {
        display: none !important;
    }
}

/* Extra small screens */
@media (max-width: 374px) {
    #mobile-menu {
        width: 100vw;
        max-width: 100vw;
    }
    
    .block.xs\:hidden {
        display: block;
    }
    
    .hidden.xs\:block {
        display: none;
    }
}

/* Small screens optimization */
@media (max-width: 640px) {
    #navbar .h-16 {
        height: 4rem;
    }
    
    .mobile-nav-link {
        font-size: 1.125rem;
        padding: 0.75rem 0;
    }
}

/* Medium screens - tablet */
@media (min-width: 768px) and (max-width: 1023px) {
    .nav-link {
        font-size: 1rem;
    }
    
    #navbar button {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}

/* Large screens optimization */
@media (min-width: 1024px) {
    #mobile-menu,
    #mobile-menu-overlay {
        display: none !important;
    }
}

/* Focus states for accessibility */
#mobile-menu-btn:focus,
#mobile-menu-close:focus {
    outline: 2px solid #FFD700;
    outline-offset: 2px;
    border-radius: 4px;
}

.mobile-nav-link:focus {
    outline: 2px solid #FFD700;
    outline-offset: 2px;
    border-radius: 8px;
}

/* Animation improvements */
#mobile-menu {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobile-menu-overlay {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Prevent body scroll when menu is open */
body.mobile-menu-open {
    overflow: hidden;
}

/* Logo responsive adjustments */
@media (max-width: 374px) {
    .flex-shrink-0 .w-10 {
        width: 2rem;
        height: 2rem;
    }
    
    .flex-shrink-0 .text-lg {
        font-size: 1rem;
    }
}

/* Hero Slider Styles */
.slide {
    transition: opacity 1s ease-in-out;
    opacity: 0;
}

.slide.active {
    opacity: 1;
}

/* Slider Dots */
.slider-dot {
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: #FFD700;
    transform: scale(1.2);
}

.slider-dot:hover {
    transform: scale(1.1);
}

/* Custom Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 1s ease-out forwards;
}

.animation-delay-300 {
    animation-delay: 0.3s;
    opacity: 0;
}

.animation-delay-600 {
    animation-delay: 0.6s;
    opacity: 0;
}

/* Glow Effects */
.glow-gold {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.glow-gold:hover {
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
}

/* Button Hover Effects */
button {
    position: relative;
    overflow: hidden;
}

button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

button:hover::before {
    left: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
    .slide h1 {
        font-size: 2.5rem;
    }
    
    .slide p {
        font-size: 1.125rem;
    }
    
    .slide button {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .slide h1 {
        font-size: 2rem;
    }
    
    .slide p {
        font-size: 1rem;
    }
}

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

::-webkit-scrollbar-track {
    background: #1A1A1A;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #FFD700, #FFA500);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #FFA500, #FFD700);
}

/* Loading Animation */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0F0F0F;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 215, 0, 0.3);
    border-top: 3px solid #FFD700;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Particle Effect */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #FFD700;
    border-radius: 50%;
    animation: float 6s infinite linear;
    opacity: 0.7;
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Text Glow Effect */
.text-glow {
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Image Overlay Effects */
.image-overlay {
    background: linear-gradient(45deg, rgba(255, 215, 0, 0.1), rgba(74, 144, 226, 0.1));
}

/* Smooth Transitions */
.smooth-transition {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Focus States */
button:focus,
a:focus {
    outline: 2px solid #FFD700;
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .bg-gta-dark {
        background-color: #000000;
    }
    
    .text-gray-400 {
        color: #FFFFFF;
    }
}

/* Server Information Section Styles */
#server-info {
    position: relative;
}

#server-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(74, 144, 226, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(255, 215, 0, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* Stats Cards Animation */
.stats-card {
    transform: translateY(0);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.2);
}

/* Feature Cards Styling */
.feature-card {
    position: relative;
    overflow: hidden;
    transform: translateY(0);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.8), transparent);
    transition: left 0.8s ease;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.15);
}

/* Scroll-triggered Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-slide-in-left {
    animation: slideInLeft 0.8s ease-out forwards;
}

.animate-slide-in-right {
    animation: slideInRight 0.8s ease-out forwards;
}

.animate-scale-in {
    animation: scaleIn 0.8s ease-out forwards;
}

/* Counter Animation */
@keyframes countUp {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.stats-card .text-3xl,
.stats-card .text-4xl {
    animation: countUp 1s ease-out 0.5s both;
}

/* Pulsing Effect for Important Elements */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
    }
}

.stats-card:hover .text-gta-gold {
    animation: pulse-glow 2s infinite;
}

/* Section Divider Styling */
.w-32.h-1.bg-gradient-to-r {
    position: relative;
    overflow: hidden;
}

.w-32.h-1.bg-gradient-to-r::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Mobile Optimizations */
@media (max-width: 640px) {
    .stats-card {
        padding: 1rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .stats-card .text-3xl,
    .stats-card .text-4xl {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .stats-card .text-3xl,
    .stats-card .text-4xl {
        font-size: 1.75rem;
    }
    
    .feature-card h3 {
        font-size: 1.5rem;
    }
}

/* Advanced Hover Effects */
.feature-card .w-16.h-16 {
    position: relative;
    overflow: hidden;
}

.feature-card .w-16.h-16::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.5s ease;
}

.feature-card:hover .w-16.h-16::after {
    width: 100%;
    height: 100%;
}

/* Gradient Text Effects - Excluding Stats Cards */
.text-gta-gold:not(.stats-card .text-gta-gold) {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    background-size: 200% 200%;
    animation: gradientShift 4s ease-in-out infinite;
}

/* Stats Card Text - Stable Color */
.stats-card .text-gta-gold {
    color: #FFD700 !important;
    background: none !important;
    animation: none !important;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Performance Optimizations */
.feature-card,
.stats-card {
    will-change: transform;
    backface-visibility: hidden;
}

/* Container max-width fix */
.container {
    max-width: 1200px;
}

/* News Section Styles */
#news {
    position: relative;
}

#news::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 70% 20%, rgba(255, 215, 0, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(74, 144, 226, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

/* News Cards Styling */
.news-card {
    position: relative;
    overflow: hidden;
    transform: translateY(0);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.8), transparent);
    transition: left 0.8s ease;
    z-index: 10;
}

.news-card:hover::before {
    left: 100%;
}

.news-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 50px rgba(255, 215, 0, 0.2);
}

/* News Card Image Effects */
.news-card img {
    transition: transform 0.7s ease;
}

.news-card:hover img {
    transform: scale(1.1);
}

/* News Card Badge Styling */
.news-card span {
    backdrop-filter: blur(10px);
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Read More Button Effects */
.read-more-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.read-more-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.read-more-btn:hover::before {
    left: 100%;
}

.read-more-btn:active {
    transform: scale(0.98);
}

/* Load More News Button */
.load-more-news {
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
}

.load-more-news::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.load-more-news:hover::before {
    left: 100%;
}

/* News Card Animation on Scroll */
@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.news-card.animate-in {
    animation: slideInFromBottom 0.8s ease-out forwards;
}

/* News Card Title Hover Effect */
.news-card h3 {
    transition: color 0.3s ease;
    position: relative;
}

.news-card h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #FFD700, #FFA500);
    transition: width 0.3s ease;
}

.news-card:hover h3::after {
    width: 100%;
}

/* Mobile Optimizations for News */
@media (max-width: 768px) {
    .news-card {
        margin-bottom: 2rem;
    }
    
    .news-card img {
        height: 200px;
    }
    
    .news-card h3 {
        font-size: 1.25rem;
    }
    
    .read-more-btn {
        font-size: 0.9rem;
        padding: 0.75rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .news-card img {
        height: 180px;
    }
    
    .news-card h3 {
        font-size: 1.125rem;
    }
    
    .news-card p {
        font-size: 0.875rem;
    }
}

/* News Grid Responsive */
@media (max-width: 768px) {
    #news .grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (min-width: 769px) and (max-width: 1023px) {
    #news .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* News Section Background Enhancement */
#news {
    background: 
        linear-gradient(135deg, #1A1A1A 0%, #0F0F0F 50%, #1A1A1A 100%),
        radial-gradient(circle at 30% 40%, rgba(255, 215, 0, 0.05) 0%, transparent 50%);
}

/* Enhanced Badge Colors */
.news-card .bg-gta-gold {
    background: linear-gradient(135deg, #FFD700, #FFA500) !important;
}

.news-card .bg-blue-500 {
    background: linear-gradient(135deg, #3B82F6, #1D4ED8) !important;
}

.news-card .bg-red-500 {
    background: linear-gradient(135deg, #EF4444, #DC2626) !important;
}

.news-card .bg-green-500 {
    background: linear-gradient(135deg, #10B981, #059669) !important;
}

.news-card .bg-purple-500 {
    background: linear-gradient(135deg, #8B5CF6, #7C3AED) !important;
}

.news-card .bg-orange-500 {
    background: linear-gradient(135deg, #F97316, #EA580C) !important;
}

/* Pagination Styles */
.pagination {
    margin-top: 2rem;
}

.pagination-btn {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
}

.pagination-btn:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.pagination-btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.pagination-dots {
    font-weight: bold;
    cursor: default;
}

/* Mobile pagination adjustments */
@media (max-width: 640px) {
    .pagination {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .pagination-btn {
        min-width: 36px;
        height: 36px;
        font-size: 0.875rem;
    }
}

/* Updates Section Styles */
#updates {
    position: relative;
    background: 
        linear-gradient(135deg, #1A1A1A 0%, #0F0F0F 50%, #1A1A1A 100%),
        radial-gradient(circle at 20% 60%, rgba(74, 144, 226, 0.08) 0%, transparent 50%);
}

#updates::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 80% 30%, rgba(255, 215, 0, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 30% 80%, rgba(74, 144, 226, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

/* Update Item Styling */
.update-item {
    position: relative;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(40px);
    animation: slideInFromBottom 0.8s ease-out forwards;
}

.update-item:nth-child(1) { animation-delay: 0.1s; }
.update-item:nth-child(2) { animation-delay: 0.2s; }
.update-item:nth-child(3) { animation-delay: 0.3s; }
.update-item:nth-child(4) { animation-delay: 0.4s; }

/* Update Content Cards */
.update-content {
    position: relative;
    overflow: hidden;
    transform: translateY(0);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.update-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.8), transparent);
    transition: left 0.8s ease;
    z-index: 10;
}

.update-item:hover .update-content::before {
    left: 100%;
}

.update-item:hover .update-content {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(255, 215, 0, 0.15);
}

/* Timeline connector line styling */
.update-item .w-px {
    background: linear-gradient(180deg, #FFD700, transparent);
    transition: all 0.3s ease;
}

.update-item:hover .w-px {
    background: linear-gradient(180deg, #FFD700, rgba(255, 215, 0, 0.3));
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

/* Update item icon containers */
.update-item .w-16.h-16 {
    position: relative;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.update-item:hover .w-16.h-16 {
    box-shadow: 0 12px 35px rgba(255, 215, 0, 0.2);
}

/* Update content hover effects */
.update-content h3 {
    position: relative;
    transition: all 0.3s ease;
}

.update-content h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #FFD700, #FFA500);
    transition: width 0.3s ease;
}

.update-item:hover .update-content h3::after {
    width: 100%;
}

/* Date badges styling */
.update-content span {
    backdrop-filter: blur(10px);
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.update-item:hover .update-content span {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Feature list items */
.update-content .space-y-3 > div {
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 8px;
}

.update-content .space-y-3 > div:hover {
    background: rgba(255, 215, 0, 0.05);
    transform: translateX(8px);
}

.update-content .space-y-3 > div i {
    transition: all 0.3s ease;
}

.update-content .space-y-3 > div:hover i {
    transform: scale(1.1);
}

/* View All Updates Button */
.view-all-updates {
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.view-all-updates::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.view-all-updates:hover::before {
    left: 100%;
}

.view-all-updates:hover {
    box-shadow: 0 15px 45px rgba(255, 215, 0, 0.4);
    transform: translateY(-3px) scale(1.02);
}

.view-all-updates:active {
    transform: translateY(-1px) scale(0.98);
}

/* Different colored timeline items */
.update-item:nth-child(2) .update-content::before {
    background: linear-gradient(90deg, transparent, rgba(74, 144, 226, 0.8), transparent);
}

.update-item:nth-child(3) .update-content::before {
    background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.8), transparent);
}

.update-item:nth-child(4) .update-content::before {
    background: linear-gradient(90deg, transparent, rgba(34, 197, 94, 0.8), transparent);
}

/* Enhanced gradient text effect for update titles */
.update-content h3 {
    background: linear-gradient(135deg, #FFFFFF, #E5E7EB);
    background-clip: text;
    -webkit-background-clip: text;
}

/* Pulse animation for timeline dots */
@keyframes pulse-timeline {
    0%, 100% {
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    }
    50% {
        box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
    }
}

.update-item:hover .w-16.h-16 {
    animation: pulse-timeline 2s infinite;
}

/* Mobile Optimizations for Updates */
@media (max-width: 768px) {
    .update-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .update-item .flex-shrink-0 {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .update-item .w-px.h-16 {
        display: none;
    }
    
    .update-content {
        margin-top: 0;
    }
    
    .update-content .flex {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .update-content h3 {
        font-size: 1.5rem;
    }
    
    .update-content span {
        align-self: center;
    }
}

@media (max-width: 640px) {
    .update-item .w-16.h-16 {
        width: 3.5rem;
        height: 3.5rem;
    }
    
    .update-item .w-16.h-16 i {
        font-size: 1.25rem;
    }
    
    .update-content {
        padding: 1.5rem;
    }
    
    .update-content h3 {
        font-size: 1.25rem;
    }
    
    .view-all-updates {
        padding: 0.75rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .update-content .space-y-3 > div {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.5rem;
    }
    
    .update-content .space-y-3 > div i {
        margin-right: 0;
        margin-bottom: 0.25rem;
    }
}

/* Section divider for updates */
#updates .w-32.h-1 {
    background: linear-gradient(90deg, #4A90E2, #FFD700);
    position: relative;
    overflow: hidden;
}

#updates .w-32.h-1::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    animation: shimmer 3s infinite;
}

/* Smooth reveal animation for section */
#updates .text-center {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out 0.2s forwards;
}

/* Performance optimizations */
.update-item,
.update-content {
    will-change: transform;
    backface-visibility: hidden;
}

/* Footer Styles */
footer {
    position: relative;
    background: linear-gradient(135deg, #0F0F0F 0%, #000000 50%, #1A1A1A 100%);
}

/* Logo styling improvements */
.footer-brand img,
nav img[alt*="Logo"] {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
}

.footer-brand:hover img,
nav:hover img[alt*="Logo"] {
    filter: drop-shadow(0 4px 8px rgba(255, 215, 0, 0.2));
    transform: scale(1.05);
}

/* Rules Page Styles */
.rules-category {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.rules-category.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 0.6s ease-out;
}

.rules-nav-btn {
    position: relative;
    overflow: hidden;
}

.rules-nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.2), transparent);
    transition: left 0.6s ease;
}

.rules-nav-btn:hover::before {
    left: 100%;
}

.rules-nav-btn.active {
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
}

.rule-item {
    transform: translateX(-20px);
    opacity: 0;
    animation: slideInLeft 0.6s ease-out forwards;
}

.rule-item:nth-child(1) { animation-delay: 0.1s; }
.rule-item:nth-child(2) { animation-delay: 0.2s; }
.rule-item:nth-child(3) { animation-delay: 0.3s; }
.rule-item:nth-child(4) { animation-delay: 0.4s; }
.rule-item:nth-child(5) { animation-delay: 0.5s; }

.rule-item:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.rule-number {
    animation: pulse 2s infinite;
}

.rule-item:hover .rule-number {
    animation: bounce 0.6s ease;
}

/* Floating animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

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

.animation-delay-1000 {
    animation-delay: 1s;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

/* Slide in animations */
@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0,0,0) scale(1);
    }
    40%, 43% {
        transform: translate3d(0,-8px,0) scale(1.1);
    }
    70% {
        transform: translate3d(0,-4px,0) scale(1.05);
    }
    90% {
        transform: translate3d(0,-2px,0) scale(1.02);
    }
}

/* Backdrop blur support */
.backdrop-blur-sm {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Responsive design for rules */
@media (max-width: 768px) {
    .rules-nav-btn {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .rule-item {
        padding: 16px;
    }
    
    .rule-number {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .rules-category h2 {
        font-size: 24px;
    }
    
    .rule-item h3 {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .rules-nav-btn {
        padding: 10px 12px;
        font-size: 12px;
    }
    
    .rules-category {
        padding: 16px;
    }
    
    .rule-item {
        padding: 12px;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .rule-number {
        margin-bottom: 8px;
        margin-right: 0;
    }
}

/* Footer Background Animations */
@keyframes gradientFloat {
    0%, 100% {
        transform: translateX(0%) rotate(0deg);
    }
    33% {
        transform: translateX(30%) rotate(120deg);
    }
    66% {
        transform: translateX(-20%) rotate(240deg);
    }
}

footer .absolute.inset-0.opacity-10 > div:first-child {
    animation: gradientFloat 20s ease-in-out infinite;
}

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

@keyframes floatReverse {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(20px) rotate(-180deg);
    }
}

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

.animation-delay-2000 {
    animation-delay: 2s;
}

.animation-delay-1000 {
    animation-delay: 1s;
}

.animation-delay-500 {
    animation-delay: 0.5s;
}

.animation-delay-1500 {
    animation-delay: 1.5s;
}

/* Footer Brand Animations */
.footer-brand:hover .w-14.h-14 {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

.footer-brand h3 {
    position: relative;
    overflow: hidden;
}

.footer-brand h3::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.3), transparent);
    transition: left 0.6s;
}

.footer-brand:hover h3::before {
    left: 100%;
}

/* Footer Links Animations */
.footer-link {
    position: relative;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.1), rgba(255, 215, 0, 0.05));
    border-radius: 8px;
    transition: width 0.3s ease;
}

.footer-link:hover::before {
    width: 100%;
}

.footer-link:hover {
    transform: translateX(5px);
    background: rgba(255, 215, 0, 0.05);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
}

/* Social Media Icons */
.social-link {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
}

.social-link:hover::before {
    width: 100%;
    height: 100%;
}

.social-link:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.social-link:active {
    transform: scale(0.95);
}

/* Community Stats Animation */
.stat-item {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.8), transparent);
    transition: left 0.6s ease;
}

.stat-item:hover::before {
    left: 100%;
}

.stat-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.15);
    border-color: rgba(255, 215, 0, 0.3);
}

/* Server Stats Animations */
.footer-brand .space-y-3 > div {
    transition: all 0.3s ease;
    padding: 0.25rem;
    border-radius: 6px;
}

.footer-brand .space-y-3 > div:hover {
    background: rgba(255, 215, 0, 0.05);
    transform: translateX(3px);
}

/* Connect Button Animations */
.connect-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.connect-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.connect-btn:hover::before {
    left: 100%;
}

.connect-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(255, 215, 0, 0.4);
}

.connect-btn:active {
    transform: translateY(-1px) scale(0.98);
}

/* Copy Button Animation */
.copy-btn {
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 6px;
}

.copy-btn:hover {
    background: rgba(255, 215, 0, 0.1);
    transform: scale(1.1);
}

.copy-btn:active {
    transform: scale(0.9);
}

@keyframes copySuccess {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
        color: #10B981;
    }
    100% {
        transform: scale(1);
    }
}

.copy-btn.copied {
    animation: copySuccess 0.6s ease;
}

/* Newsletter Input Animations */
.newsletter input {
    transition: all 0.3s ease;
}

.newsletter input:focus {
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
    transform: translateY(-2px);
}

.newsletter button {
    transition: all 0.3s ease;
}

.newsletter button:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.3);
}

/* Gaming Icons Animation */
.gaming-icons i {
    transition: all 0.3s ease;
}

.gaming-icons i:hover {
    transform: scale(1.2) rotate(10deg);
    color: #FFD700 !important;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
}

.scroll-to-top:active {
    transform: translateY(-2px) scale(1.05);
}

/* Footer Divider Animation */
.border-t.border-gta-gold\/20 {
    position: relative;
    overflow: hidden;
}

.border-t.border-gta-gold\/20::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.8), transparent);
    animation: shimmer 4s infinite;
}

/* Decorative Bottom Bar Animation */
@keyframes pulseGlow {
    0%, 100% {
        opacity: 0.8;
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    }
    50% {
        opacity: 1;
        box-shadow: 0 0 40px rgba(255, 215, 0, 0.6);
    }
}

footer .absolute.bottom-0 {
    animation: pulseGlow 3s ease-in-out infinite;
}

/* Mobile Footer Optimizations */
@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 3rem;
        height: 3rem;
    }
    
    .footer-brand .w-14.h-14 {
        width: 3rem;
        height: 3rem;
    }
    
    .footer-brand h3 {
        font-size: 1.5rem;
    }
    
    .social-link {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .connect-btn {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }
}

@media (max-width: 640px) {
    footer .pt-16 {
        padding-top: 3rem;
    }
    
    footer .grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .newsletter .flex {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .newsletter input,
    .newsletter button {
        width: 100%;
        border-radius: 0.5rem;
    }
    
    .gaming-icons {
        justify-content: center;
        margin-top: 1rem;
    }
}

/* Newsletter Success Animation */
@keyframes successBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.newsletter.success button {
    animation: successBounce 1s ease;
    background: linear-gradient(90deg, #10B981, #059669) !important;
}

/* Server Stats Pulse Animation */
@keyframes statsPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.footer-brand .bg-green-400 {
    animation: statsPulse 2s infinite;
}

/* Loading Animation for Connect Button */
@keyframes connectSpin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.connect-btn.loading i {
    animation: connectSpin 1s linear infinite;
}

/* Enhanced Hover States */
.footer-link:hover i {
    transform: scale(1.1);
    color: #FFD700;
}

.stat-item:hover .text-gta-gold {
    animation: statsPulse 1s ease-in-out;
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    .animate-float,
    .animate-pulse,
    .animate-bounce,
    .gaming-icons i,
    footer .absolute.inset-0.opacity-10 > div:first-child,
    footer .absolute.bottom-0 {
        animation: none;
    }
    
    .footer-link:hover,
    .social-link:hover,
    .connect-btn:hover,
    .scroll-to-top:hover {
        transform: none;
    }
}

/* Print Styles */
@media print {
    footer .absolute,
    .scroll-to-top,
    .social-links {
        display: none;
    }
    
    footer {
        background: white;
        color: black;
    }
}
