/* RIMFEST Influencers Voting System - Enhanced Styles */

:root {
    --primary-blue: #2596be; /* main blue */
    --primary-blue-dark: #1e7aa3; /* darker blue */
    --accent-blue: #5bb8e0; /* lighter blue */
    --deep-blue: #0f4c75; /* deep blue */
    --pitch-lines: #e5e7eb; /* neutral-200 for lines */
    --black-true: #0a0a0a;
    --black-deep: #000000;
    --text-white: #FFFFFF;
    --text-light: #E5F4FF;
    --shadow-glow: 0 0 30px rgba(37, 150, 190, 0.35);
    --gradient-primary: linear-gradient(135deg, var(--accent-blue), var(--primary-blue));
    --gradient-secondary: linear-gradient(45deg, var(--primary-blue-dark), var(--primary-blue));
    /* Aliases for existing references */
    --primary-gold: var(--accent-blue);
    --primary-orange: var(--primary-blue);
    --accent-gold: var(--primary-blue-dark);
    --warm-brown: var(--deep-blue);
    --dark-brown: var(--black-true);
    --primary-brown: var(--black-deep);
}

/* Enhanced Background Animations */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background:
        radial-gradient(circle at 20% 80%, rgba(37, 150, 190, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(15, 76, 117, 0.2) 0%, transparent 55%),
        radial-gradient(circle at 40% 40%, rgba(0, 0, 0, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 60% 60%, rgba(37, 150, 190, 0.12) 0%, transparent 50%);
    animation: backgroundFloat 25s ease-in-out infinite;
}

@keyframes backgroundFloat {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg) scale(1); 
        opacity: 1;
    }
    25% { 
        transform: translateY(-15px) rotate(0.5deg) scale(1.02); 
        opacity: 0.8;
    }
    50% { 
        transform: translateY(-25px) rotate(1deg) scale(1.05); 
        opacity: 0.9;
    }
    75% { 
        transform: translateY(-15px) rotate(0.5deg) scale(1.02); 
        opacity: 0.8;
    }
}

/* Enhanced Floating Particles */
.floating-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.particle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.6;
    animation: float 8s ease-in-out infinite;
}

.particle:nth-child(odd) {
    background: var(--accent-blue);
    box-shadow: 0 0 10px var(--accent-blue);
}

.particle:nth-child(even) {
    background: var(--primary-blue);
    box-shadow: 0 0 10px var(--primary-blue);
}

.particle:nth-child(3n) {
    background: var(--primary-blue-dark);
    box-shadow: 0 0 10px var(--primary-blue-dark);
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) translateX(0px) scale(1); 
        opacity: 0.6; 
    }
    25% { 
        transform: translateY(-50px) translateX(10px) scale(1.1); 
        opacity: 0.8; 
    }
    50% { 
        transform: translateY(-100px) translateX(20px) scale(1.2); 
        opacity: 0.3; 
    }
    75% { 
        transform: translateY(-50px) translateX(10px) scale(1.1); 
        opacity: 0.8; 
    }
}

/* Enhanced Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(91, 184, 224, 0.25);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.header.scrolled {
    background: rgba(0, 0, 0, 0.95);
    box-shadow: var(--shadow-glow);
    border-bottom-color: rgba(91, 184, 224, 0.45);
}

/* Enhanced Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-gold);
}

.logo-image {
    width: 40px;
    height: 40px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-gold);
}

.logo:hover .logo-image {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 0 10px rgba(91, 184, 224, 0.6));
}

/* Enhanced Navigation */
.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

/* Language Switcher */
.language-switcher {
    position: relative;
    margin-left: 2rem;
}

/* Desktop Only Language Switcher */
.desktop-only {
    display: block;
}

/* Mobile Language Switcher */
.mobile-language-switcher {
    display: none;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(91, 184, 224, 0.2);
}

.mobile-language-title {
    color: var(--primary-gold);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Dropdown wrapper */
.mobile-language-select-wrap {
    position: relative;
}

.mobile-language-select {
    width: 100%;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(91, 184, 224, 0.35);
    color: var(--text-white);
    padding: 0.9rem 1rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mobile-language-select:focus {
    outline: none;
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 3px rgba(91, 184, 224, 0.2);
}

.mobile-language-select option {
    background: #0a0a0a;
    color: #fff;
    font-weight: 600;
}

.language-dropdown {
    position: relative;
}

.language-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(91, 184, 224, 0.1), rgba(91, 184, 224, 0.05));
    border: 1px solid rgba(91, 184, 224, 0.3);
    border-radius: 12px;
    padding: 0.6rem 1.2rem;
    color: var(--text-white);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.language-toggle:hover {
    background: rgba(91, 184, 224, 0.2);
    border-color: rgba(91, 184, 224, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(91, 184, 224, 0.2);
}

.current-lang {
    font-size: 0.9rem;
    font-weight: 600;
}

.dropdown-arrow {
    transition: transform 0.3s ease;
    color: var(--primary-gold);
}

.language-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.language-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.98), rgba(20, 20, 20, 0.95));
    backdrop-filter: blur(25px);
    border: 1px solid rgba(91, 184, 224, 0.4);
    border-radius: 16px;
    padding: 0.75rem;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(91, 184, 224, 0.1);
    z-index: 1001;
}

.language-dropdown.active .language-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.language-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    color: var(--text-white);
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    margin-bottom: 0.25rem;
}

.language-option:hover {
    background: rgba(91, 184, 224, 0.15);
    color: var(--primary-gold);
    transform: translateX(5px);
}

.language-option.active {
    background: rgba(91, 184, 224, 0.2);
    color: var(--primary-gold);
    border-left: 3px solid var(--primary-gold);
}

.flag {
    font-size: 1.2rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.lang-name {
    font-weight: 500;
    font-size: 0.9rem;
}

/* RTL Support for Arabic */
[dir="rtl"] .language-option:hover {
    transform: translateX(-5px);
}

[dir="rtl"] .language-option.active {
    border-left: none;
    border-right: 3px solid var(--primary-gold);
}

/* Enhanced Language Switcher Animations */
.language-toggle {
    position: relative;
    overflow: hidden;
}

.language-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(91, 184, 224, 0.2), transparent);
    transition: left 0.5s ease;
}

.language-toggle:hover::before {
    left: 100%;
}

.language-option {
    position: relative;
    overflow: hidden;
}

.language-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(91, 184, 224, 0.1), transparent);
    transition: left 0.3s ease;
}

.language-option:hover::before {
    left: 100%;
}

/* Loading state for language switcher */
.language-toggle.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.language-toggle.loading .current-lang {
    color: var(--primary-gold);
}

/* Intro & Categories */
.intro-section {
    padding: 3rem 1.25rem;
}

.intro-card {
    margin: 0 auto;
    max-width: 1000px;
    background: rgba(10, 10, 10, 0.85);
    border: 1px solid rgba(91, 184, 224, 0.35);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}

.intro-title {
    color: var(--primary-gold);
    font-weight: 800;
    font-size: clamp(1.25rem, 3vw, 1.8rem);
    margin-bottom: 1rem;
    text-align: center;
}

.intro-body {
    color: var(--text-white);
    line-height: 1.8;
    font-size: 1rem;
    text-align: center;
}

.categories-section {
    padding: 2rem 1.25rem 3rem;
}

.categories-heading {
    text-align: center;
    color: var(--primary-gold);
    font-weight: 800;
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    margin-bottom: 1.25rem;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 1200px) {
    .categories-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 992px) {
    .categories-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
    .categories-grid { grid-template-columns: 1fr; }
}

.category-card {
    position: relative;
    background: rgba(10, 10, 10, 0.85);
    border: 1px solid rgba(91, 184, 224, 0.25);
    border-radius: 18px;
    padding: 1.5rem 1.25rem 1.25rem 1.25rem;
    min-height: 88px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    border-color: rgba(91, 184, 224, 0.5);
    box-shadow: 0 16px 40px rgba(0,0,0,0.35);
}

.category-badge {
    position: absolute;
    top: 10px;
    inset-inline-start: 10px;
    background: var(--gradient-primary);
    color: #0a0a0a;
    font-weight: 800;
    border-radius: 9999px;
    padding: 0.35rem 0.7rem;
    font-size: 0.95rem;
}

.category-content { position: relative; z-index: 1; }

.category-row { display: flex; align-items: center; gap: 0.75rem; }

.category-icon { color: var(--primary-gold); display: flex; align-items: center; justify-content: center; }

.category-title { color: var(--text-white); font-weight: 800; font-size: 1.05rem; letter-spacing: 0.2px; }

.category-glow {
    position: absolute;
    bottom: -30%;
    inset-inline-end: -20%;
    width: 60%;
    height: 60%;
    background: radial-gradient( circle at center, rgba(91, 184, 224, 0.25), transparent 60% );
    filter: blur(20px);
    z-index: 0;
}

[dir="rtl"] .category-badge { inset-inline-start: auto; inset-inline-end: 10px; }
.nav-link {
    color: var(--text-white);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.nav-link:hover {
    color: var(--primary-gold);
    background: rgba(91, 184, 224, 0.1);
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    padding: 0.5rem;
    z-index: 1001;
}

/* Mobile Language Switcher */
@media (max-width: 768px) {
    /* Hide desktop language switcher on mobile */
    .desktop-only {
        display: none !important;
    }
    
    /* Show mobile language switcher */
    .mobile-language-switcher {
        display: block;
    }
    
    /* Hide desktop language switcher completely */
    .language-switcher {
        display: none !important;
    }
    
    /* Enhanced mobile navigation */
    .nav-container {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    /* Mobile menu styling */
    .nav-links {
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(25px);
        border: 1px solid rgba(91, 184, 224, 0.3);
        border-radius: 16px;
        padding: 2rem;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    }
    
    /* Mobile language switcher enhancements */
    .mobile-language-option {
        position: relative;
        overflow: hidden;
    }
    
    .mobile-language-option::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(91, 184, 224, 0.1), transparent);
        transition: left 0.3s ease;
    }
    
    .mobile-language-option:hover::before {
        left: 100%;
    }
    
    /* RTL support for Arabic on mobile */
    [dir="rtl"] .mobile-language-option:hover {
        transform: translateX(-5px);
    }
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-gold);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Enhanced Main Title */
.main-title {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGlow 4s ease-in-out infinite alternate;
    position: relative;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.main-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: blur(20px);
    opacity: 0.3;
    animation: titleGlow 4s ease-in-out infinite alternate-reverse;
}

@keyframes titleGlow {
    0% { 
        filter: drop-shadow(0 0 20px rgba(91, 184, 224, 0.5));
        transform: scale(1);
    }
    100% { 
        filter: drop-shadow(0 0 40px rgba(37, 150, 190, 0.8));
        transform: scale(1.02);
    }
}

/* Live Counter Section */
.live-counter-section {
    margin-bottom: 2.5rem;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.counter-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(91, 184, 224, 0.3);
    border-radius: 50px;
    padding: 1.5rem 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.counter-container:hover {
    border-color: rgba(91, 184, 224, 0.6);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.counter-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-gold);
    text-shadow: 0 0 20px rgba(91, 184, 224, 0.5);
    animation: counterPulse 2s ease-in-out infinite;
    min-width: 120px;
    text-align: center;
    font-family: 'Inter', sans-serif;
}

.counter-label {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

@keyframes counterPulse {
    0%, 100% { 
        transform: scale(1);
        filter: drop-shadow(0 0 20px rgba(91, 184, 224, 0.5));
    }
    50% { 
        transform: scale(1.05);
        filter: drop-shadow(0 0 30px rgba(91, 184, 224, 0.8));
    }
}

/* Counter Number Animation */
.counter-number.animate {
    animation: numberCount 0.8s ease-out;
}

@keyframes numberCount {
    0% {
        transform: scale(1.2);
        color: var(--primary-orange);
    }
    50% {
        transform: scale(1.1);
        color: var(--accent-gold);
    }
    100% {
        transform: scale(1);
        color: var(--primary-gold);
    }
}

/* Enhanced Description */
.description {
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: 3.5rem;
    color: var(--text-light);
    animation: fadeInUp 1s ease-out 0.6s both;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Enhanced Vote Button */
.vote-button {
    background: var(--gradient-secondary);
    color: var(--text-white);
    border: none;
    padding: 1.8rem 4rem;
    font-size: 1.4rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-glow);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-block;
    transform: perspective(1000px) rotateX(0deg);
    letter-spacing: 0.02em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.vote-button::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 ease;
}

.vote-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-secondary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.vote-button:hover::before {
    left: 100%;
}

.vote-button:hover {
    transform: perspective(1000px) rotateX(10deg) translateY(-8px) scale(1.05);
    box-shadow: 0 25px 50px rgba(37, 150, 190, 0.5);
}

.vote-button:hover::after {
    opacity: 1;
}

.vote-button:active {
    transform: perspective(1000px) rotateX(5deg) translateY(-4px) scale(1.02);
}

/* Enhanced Feature Cards */
.feature-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(91, 184, 224, 0.2);
    border-radius: 24px;
    padding: 3rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(91, 184, 224, 0.05), rgba(37, 150, 190, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover::after {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    border-color: rgba(91, 184, 224, 0.5);
}

/* Enhanced Feature Icons */
.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 2rem;
    color: var(--text-white);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.feature-card:hover .feature-icon::before {
    transform: translateX(100%);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 25px rgba(91, 184, 224, 0.6);
}

/* Enhanced Feature Titles */
.feature-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--primary-gold);
    line-height: 1.2;
}

/* Enhanced Feature Descriptions */
.feature-description {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 1.05rem;
}

/* Enhanced Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(60px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1); 
        filter: drop-shadow(0 0 20px rgba(91, 184, 224, 0.5));
    }
    50% { 
        transform: scale(1.03); 
        filter: drop-shadow(0 0 20px rgba(37, 150, 190, 0.8));
    }
}

/* Enhanced Responsive Design */
@media (max-width: 1024px) {
    .nav-container {
        padding: 1rem 1.5rem;
    }
    
    .nav-links {
        gap: 1.5rem;
    }
    
    .main-title {
        font-size: clamp(2rem, 10vw, 3.5rem);
        margin-bottom: 1.2rem;
    }
    
    .counter-number {
        font-size: 3rem;
        min-width: 100px;
    }
    
    .counter-label {
        font-size: 1.1rem;
    }
    
    .description {
        font-size: 1.1rem;
        padding: 0 1rem;
        margin-bottom: 3rem;
    }
    
    .vote-button {
        padding: 1.5rem 3.5rem;
        font-size: 1.3rem;
    }
    
    .features-section {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .feature-card {
        padding: 2.5rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        height: 100vh;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding-top: 80px;
        padding-left: 2rem;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links .nav-link {
        width: 100%;
        padding: 1rem 0;
        border-bottom: 1px solid rgba(91, 184, 224, 0.1);
        font-size: 1.1rem;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-content {
        padding: 1rem;
        padding-top: 8rem;
    }
    
    .hero-section {
        padding: 2rem 1rem;
        margin-top: 1.5rem;
    }
    
    .main-title {
        font-size: clamp(2rem, 12vw, 3rem);
        line-height: 1.1;
        margin-bottom: 1rem;
    }
    
    .counter-container {
        padding: 1.2rem 2.5rem;
        gap: 0.8rem;
    }
    
    .counter-number {
        font-size: 2.5rem;
        min-width: 80px;
    }
    
    .counter-label {
        font-size: 1rem;
    }
    
    .description {
        font-size: 1.05rem;
        line-height: 1.6;
        margin-bottom: 2.5rem;
        padding: 0;
    }
    
    .vote-button {
        padding: 1.4rem 3rem;
        font-size: 1.2rem;
        width: 100%;
        max-width: 320px;
    }
    
    .features-section {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
        margin-top: 3rem;
    }
    
    .feature-card {
        padding: 2.5rem;
    }
    
    .feature-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
        margin-bottom: 1.8rem;
    }
    
    .feature-title {
        font-size: 1.3rem;
        margin-bottom: 1.2rem;
    }
    
    .feature-description {
        font-size: 1rem;
        line-height: 1.5;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 1rem;
    }
    
    .logo-image {
        width: 35px;
        height: 35px;
    }
    
    .logo-text {
        font-size: 1.3rem;
    }
    
    .main-content {
        padding: 0.5rem;
        padding-top: 7rem;
    }
    
    .hero-section {
        padding: 1.5rem 0.5rem;
        margin-top: 1rem;
    }
    
    .main-title {
        font-size: clamp(1.8rem, 14vw, 2.5rem);
        margin-bottom: 0.8rem;
    }
    
    .counter-container {
        padding: 1rem 2rem;
        gap: 0.6rem;
        flex-direction: column;
        border-radius: 30px;
    }
    
    .counter-number {
        font-size: 2.2rem;
        min-width: 70px;
    }
    
    .counter-label {
        font-size: 0.9rem;
    }
    
    .description {
        font-size: 1rem;
        margin-bottom: 2rem;
        line-height: 1.5;
    }
    
    .vote-button {
        padding: 1.2rem 2.5rem;
        font-size: 1.1rem;
        max-width: 300px;
    }
    
    .features-section {
        margin-top: 2.5rem;
        gap: 1.2rem;
    }
    
    .feature-card {
        padding: 2rem;
        border-radius: 20px;
    }
    
    .feature-icon {
        width: 65px;
        height: 65px;
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }
    
    .feature-title {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .feature-description {
        font-size: 0.95rem;
        line-height: 1.4;
    }
    
    .footer {
        margin-top: 3rem;
        padding: 1.5rem;
    }
    
    .footer-text {
        font-size: 0.9rem;
    }
}

@media (max-width: 360px) {
    .main-title {
        font-size: clamp(1.6rem, 16vw, 2.2rem);
    }
    
    .counter-number {
        font-size: 2rem;
        min-width: 60px;
    }
    
    .counter-label {
        font-size: 0.8rem;
    }
    
    .description {
        font-size: 0.95rem;
    }
    
    .vote-button {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
}

/* Loading Animation */
.loading-animation {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

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

/* Hover Effects for Interactive Elements */
.interactive-element {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.interactive-element:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

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

::-webkit-scrollbar-track {
    background: rgba(15, 76, 117, 0.1);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-secondary);
}

/* Additional CSS for new effects */
@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

@keyframes hoverRipple {
    to {
        transform: scale(2);
        opacity: 0;
    }
}

@keyframes floating {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

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

.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in-on-scroll.active {
    opacity: 1;
    transform: translateY(0);
}

/* Basic Layout Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, var(--black-deep) 0%, var(--black-true) 40%, var(--deep-blue) 100%);
    color: var(--text-white);
    overflow-x: hidden;
    min-height: 100vh;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-content {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    padding-top: 8rem;
    position: relative;
}

.hero-section {
    max-width: 900px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out;
    padding: 3rem 1rem;
    margin-top: 2rem;
}

.cta-section {
    animation: fadeInUp 1s ease-out 0.9s both;
    margin-top: 1rem;
}

.features-section {
    margin-top: 5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    max-width: 1100px;
    width: 100%;
    animation: fadeInUp 1s ease-out 1.2s both;
}

/* Football Carousel */
.carousel {
    position: relative;
    max-width: 1100px;
    width: 100%;
    margin: 2.5rem auto 0;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(91, 184, 224, 0.2);
    box-shadow: 0 30px 60px rgba(0,0,0,0.35);
}

.carousel-track {
    display: flex;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
    position: relative;
    min-width: 100%;
    height: 420px;
    background: #000;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.1) contrast(1.05);
}

.carousel-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6), rgba(0,0,0,0.0) 50%);
}

.carousel-caption {
    position: absolute;
    left: 24px;
    bottom: 20px;
    color: var(--text-white);
    font-weight: 800;
    font-size: clamp(1rem, 2.2vw, 1.25rem);
    background: linear-gradient(90deg, rgba(0,0,0,0.65), rgba(0,0,0,0.2));
    border-left: 4px solid var(--primary-blue);
    padding: 10px 14px;
    border-radius: 10px;
    z-index: 2;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: var(--text-white);
    border: 1px solid rgba(91, 184, 224, 0.35);
    width: 44px;
    height: 44px;
    border-radius: 999px;
    cursor: pointer;
    z-index: 5;
    display: grid;
    place-items: center;
    transition: all 0.25s ease;
    backdrop-filter: blur(6px);
}

.carousel-control:hover { 
    background: rgba(37, 150, 190, 0.6); 
}
.carousel-control.prev { left: 12px; }
.carousel-control.next { right: 12px; }

.carousel-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 6;
}

.carousel-dots button {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    border: 1px solid rgba(91, 184, 224, 0.6);
    background: rgba(0,0,0,0.35);
    cursor: pointer;
    transition: all 0.2s ease;
}

.carousel-dots button.is-active {
    width: 24px;
    background: var(--primary-blue);
    border-color: var(--primary-blue);
}

@media (max-width: 768px) {
    .carousel-slide { height: 320px; }
}

.footer {
    margin-top: 5rem;
    text-align: center;
    padding: 2.5rem;
    border-top: 1px solid rgba(91, 184, 224, 0.2);
    animation: fadeInUp 1s ease-out 1.5s both;
}

.footer-text {
    color: var(--text-light);
    opacity: 0.8;
    font-size: 1rem;
}

/* Mobile menu overlay */
@media (max-width: 768px) {
    .nav-links::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .nav-links.active::before {
        opacity: 1;
    }
}

/* Touch-friendly interactions for mobile */
@media (hover: none) and (pointer: coarse) {
    .feature-card:hover {
        transform: none;
    }
    
    .vote-button:hover {
        transform: none;
    }
    
    .nav-link:hover {
        transform: none;
    }
}
