:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #93c5fd;
    --text-light: #64748b;
    --text-dark: #f1f5f9; /* Changed from light to dark */
    --bg-light: #020617; /* Changed from light to dark */
    --bg-dark: #020617;
    --card-light: #0f172a; /* Changed from light to dark */
    --card-dark: #0f172a;
    --border-light: #1e293b; /* Changed from light to dark */
    --border-dark: #1e293b;
    --accent: #3b82f6;
    --success: #10b981;
    --glass-light: rgba(2, 6, 23, 0.5);
    --glass-dark: rgba(2, 6, 23, 0.5);
    --neumorph-light: 8px 8px 16px #020617, -8px -8px 16px #1e293b;
    --neumorph-dark: 8px 8px 16px #020617, -8px -8px 16px #1e293b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-dark); /* Changed from light to dark */
    color: var(--text-dark);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Smooth scroll and cursor */
html {
    scroll-behavior: smooth;
    cursor: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2Z' fill='%233B82F6'/%3E%3C/svg%3E"), auto;}

/* Container with dynamic padding */
.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 min(5vw, 80px);
}

/* Futuristic header with glass effect */
header {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9) 0%, rgba(37, 99, 235, 0.95) 100%);
    color: white;
    padding: 1.25rem 0;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--glass-light);
    transform: translateY(0);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

header.hidden {
    transform: translateY(-100%);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner {
    width: 100%;
    max-width: 200px;       /* Adjust this value to fit your layout */
    height: auto;
    object-fit: contain;
    border-radius: 0.5rem;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

/* Ultra-modern search bar */
.search-container {
    margin: 3rem 0 2.5rem;
    position: relative;
}

.search-bar {
    display: flex;
    margin-bottom: 1.5rem;
    position: relative;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.search-bar input {
    flex: 1;
    padding: 1.25rem 1.5rem;
    border: none;
    border-radius: 1.25rem;
    font-size: 1.05rem;
    outline: none;
    background-color: rgba(15, 23, 42, 0.7);
    color: #f1f5f9;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    font-weight: 500;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.search-bar input:focus {
    box-shadow: 0 0 0 3px var(--primary-light), 0 10px 30px rgba(139, 92, 246, 0.2);
    transform: scale(1.02);
}

.search-bar input::placeholder {
    color: var(--text-light);
    opacity: 0.8;
}

.search-bar button {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: 0.85rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
    overflow: hidden;
}

.search-bar button::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 50%;
    height: 200%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0.13) 0%,
        rgba(255, 255, 255, 0.13) 77%,
        rgba(255, 255, 255, 0.5) 92%,
        rgba(255, 255, 255, 0.0) 100%
    );
    transform: rotate(30deg);
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.search-bar button:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.search-bar button:hover::after {
    left: 110%;
}

/* Holographic filter chips */
.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.filter-chip {
    padding: 0.65rem 1.5rem;
    background-color: var(--card-light);
    border-radius: 2rem;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.filter-chip::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.filter-chip:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.filter-chip:hover::before {
    opacity: 1;
}

/* .dark .filter-chip {
    background-color: rgba(30, 41, 59, 0.7);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.1);
} */

.filter-chip.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
    transform: translateY(-2px);
}

/* Futuristic faucet cards with 3D effect */
.faucet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
    perspective: 1000px;
}

.faucet-card {
    background-color: var(--card-dark);
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    transform-style: preserve-3d;
    will-change: transform;
    backdrop-filter: blur(12px);
}

.faucet-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    z-index: 2;
}

.faucet-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
}

.faucet-card:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(0deg) scale(1.03);
    box-shadow: 0 30px 50px rgba(0, 0, 0, 0.15);
}

.faucet-header {
    display: flex;
    align-items: center;
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.faucet-logo {
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    margin-right: 1.25rem;
    object-fit: cover;
    border: 1px solid var(--border-dark);
    border-color: rgba(255, 255, 255, 0.2);
    background-color: rgba(15, 23, 42, 0.7);
    padding: 0.35rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.faucet-card:hover .faucet-logo {
    transform: scale(1.1) rotate(5deg);
}

.faucet-name {
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.01em;
}

.faucet-body {
    padding: 1.25rem 1.5rem 1.5rem;
}

.faucet-reward {
    margin-bottom: 1.25rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    color: var(--primary-light);
}

.faucet-reward::before {
    content: '';
    display: inline-block;
    width: 1.5rem;
    height: 1.5rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%238B5CF6'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm.31-8.86c-1.77-.45-2.34-.94-2.34-1.67 0-.84.79-1.43 2.1-1.43 1.38 0 1.9.66 1.94 1.64h1.71c-.05-1.34-.87-2.57-2.49-2.97V5H10.9v1.69c-1.51.32-2.72 1.3-2.72 2.81 0 1.79 1.49 2.69 3.66 3.21 1.95.46 2.34 1.15 2.34 1.87 0 .53-.39 1.39-2.1 1.39-1.6 0-2.23-.72-2.32-1.64H8.04c.1 1.7 1.36 2.66 2.86 2.97V19h2.34v-1.67c1.52-.29 2.72-1.16 2.73-2.77-.01-2.2-1.9-2.96-3.66-3.42z'/%3E%3C/svg%3E");
    background-size: contain;
    filter: drop-shadow(0 2px 4px rgba(139, 92, 246, 0.3));
}

.faucet-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 1.75rem;
}

.faucet-tag {
    padding: 0.35rem 1rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(139, 92, 246, 0.1) 100%);    border-radius: 2rem;
    font-size: 0.8rem;
    color: var(--primary-light);
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.faucet-tag:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.25);
}

/* Holographic button with shine effect */
.visit-btn {
    display: flex;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    text-align: center;
    border-radius: 1rem;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    z-index: 1;
}

.visit-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: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: -1;
}

.visit-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.4);
}

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

.visit-btn::after {
    content: '→';
    font-size: 1.25rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.visit-btn:hover::after {
    transform: translateX(5px);
}

/* Futuristic footer with gradient mesh */
footer {
    background: radial-gradient(circle at 20% 50%, rgba(139, 92, 246, 0.15) 0%, rgba(124, 58, 237, 0.1) 50%, transparent 100%),
                linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(2, 6, 23, 0.95) 100%);
    color: white;
    text-align: center;
    padding: 4rem 0;
    margin-top: 5rem;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Floating particles background */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    pointer-events: none;
}

/* Responsive design with fluid typography */
@media (max-width: 1024px) {
    .faucet-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .header-container {
        flex-direction: column;
        gap: 1.25rem;
    }
    
    .search-bar {
        flex-direction: column;
    }
    
    .search-bar input {
        width: 100%;
        margin-bottom: 1rem;
        padding: 1.1rem 1.25rem;
    }
    
    .search-bar button {
        position: relative;
        width: 100%;
        right: auto;
        top: auto;
        transform: none;
        margin-top: 0.5rem;
    }

    .filter-chips {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        scrollbar-width: none;
    }

    .filter-chips::-webkit-scrollbar {
        display: none;
    }

    .filter-chip {
        flex-shrink: 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.25rem;
    }

    .logo {
        font-size: 1.5rem;
    }

    .logo img {
        height: 2rem;
        width: 2rem;
    }

    .faucet-grid {
        grid-template-columns: 1fr;
    }
}

/* Advanced animations */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.faucet-card {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

/* Staggered animations */
.faucet-card:nth-child(1) { animation-delay: 0.1s; }
.faucet-card:nth-child(2) { animation-delay: 0.2s; }
.faucet-card:nth-child(3) { animation-delay: 0.3s; }
.faucet-card:nth-child(4) { animation-delay: 0.4s; }
.faucet-card:nth-child(5) { animation-delay: 0.5s; }
.faucet-card:nth-child(6) { animation-delay: 0.6s; }
.faucet-card:nth-child(7) { animation-delay: 0.7s; }
.faucet-card:nth-child(8) { animation-delay: 0.8s; }

/* Modern scrollbar styling */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}


/* Add this to your existing CSS */
.discord-link {
    margin-top: 1.5rem;
}

.discord-link a {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background-color: #5865F2;
    color: white;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.discord-link a:hover {
    background-color: #4752C4;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.discord-logo {
    width: 24px;
    height: 24px;
    object-fit: contain; /* Ensures full logo visibility */
    filter: brightness(0) invert(1); /* Makes the logo white */
}

/* Advertisement Styles */
.ad-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1.5rem 0;
    padding: 0 1rem;
}

.ad-placeholder {
    position: relative;
    background: rgba(139, 92, 246, 0.1);
    border: 1px dashed var(--primary);
    border-radius: 0.75rem;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary);
    font-weight: 600;
    overflow: hidden;
}

.ad-placeholder span {
    position: absolute;
    top: 0.25rem;
    right: 0.5rem;
    font-size: 0.7rem;
    color: var(--text-light);
}

.ad-content {
    padding: 1.5rem;
    text-align: center;
}

.dark .ad-placeholder {
    background: rgba(139, 92, 246, 0.05);
    border-color: var(--primary-light);
    color: var(--primary-light);
}

/* Top and Bottom Banner Ads */
.top-banner .ad-placeholder,
.bottom-banner .ad-placeholder {
    width: 728px;
    height: 90px;
    max-width: 100%;
}

/* Middle Rectangle Ad */
.middle-rectangle .ad-placeholder {
    width: 300px;
    height: 250px;
    margin: 2rem auto;
}

/* Sidebar Ads */
.ad-sidebar {
    display: none;
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.ad-sidebar.left {
    left: 1rem;
}

.ad-sidebar.right {
    right: 1rem;
}

.ad-sidebar .ad-placeholder {
    width: 160px;
    height: 600px;
}

/* Responsive adjustments for ads */
@media (min-width: 1024px) {
    .ad-sidebar {
        display: block;
    }
    
    .faucet-grid {
        margin: 0 180px; /* Make space for sidebars */
    }
}

@media (max-width: 768px) {
    .top-banner .ad-placeholder,
    .bottom-banner .ad-placeholder {
        height: 50px;
    }
    
    .middle-rectangle .ad-placeholder {
        width: 250px;
        height: 200px;
    }
}

.disclaimer {
    margin-top: 10px;
    font-size: 0.8rem;
    color: #888;
    text-align: center;
}
.disclaimer a {
    color: #4ea1f3;
    text-decoration: underline;
}
