/*
 * PatronHubDevs — Global Theme
 * ─────────────────────────────────────────────────────────────────────────────
 * RESTORED from Fixed_2 into Fixed_3 (April 2026)
 *
 * Sections:
 *   1.  Design Tokens (CSS Variables)
 *   2.  Reset & Base
 *   3.  Typography
 *   4.  Keyframes & Animations
 *   5.  Neon Glow Text
 *   6.  Layout
 *   7.  Navbar
 *   8.  Hero / Banner
 *   9.  Buttons
 *  10.  Cards (project-card, project-card-large, value-card, contribute-box …)
 *  11.  Page-header utility
 *  12.  Stats section
 *  13.  Donation / Crypto
 *  14.  Footer
 *  15.  Social Icons
 *  16.  Tech Badges
 *  17.  Services / Tool / Blog card neon effects
 *  18.  Filter Pill  (Fixed_3 addition — kept)
 *  19.  Tooltips
 *  20.  Responsive
 *  21.  Reduced-motion
 */

/* ─────────────────────────────────────────────────────────────────────────────
   1. DESIGN TOKENS
   ───────────────────────────────────────────────────────────────────────────── */
:root {
    --neon-green:   #39ff14;
    --dark-bg:      #121212;
    --dark-card:    #1a1a1a;
    --dark-border:  #2a2a2a;
    --text-muted:   #888;
    --text-light:   #e0e0e0;

    --space-xs:  0.25rem;
    --space-sm:  0.5rem;
    --space-md:  1rem;
    --space-lg:  1.5rem;
    --space-xl:  2rem;
    --space-2xl: 3rem;

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;

    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
}

/* ─────────────────────────────────────────────────────────────────────────────
   2. RESET & BASE
   ───────────────────────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Rajdhani', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-light);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ─────────────────────────────────────────────────────────────────────────────
   3. TYPOGRAPHY
   ───────────────────────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 { font-weight: 600; }

/* ─────────────────────────────────────────────────────────────────────────────
   4. KEYFRAMES & ANIMATIONS
   ───────────────────────────────────────────────────────────────────────────── */
@keyframes neonGradient {
    0%   { background-position: 0%   50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0%   50%; }
}

@keyframes neonPulse {
    0%, 100% {
        text-shadow:
            0 0  5px var(--neon-green),
            0 0 10px var(--neon-green),
            0 0 20px var(--neon-green);
    }
    50% {
        text-shadow:
            0 0 10px var(--neon-green),
            0 0 20px var(--neon-green),
            0 0 40px var(--neon-green);
    }
}

@keyframes slideFadeGlow {
    0%   { opacity: 0; transform: translateY(-50px) scale(0.9); }
    60%  { opacity: 1; transform: translateY(10px)  scale(1.05); }
    100% { opacity: 1; transform: translateY(0)      scale(1); }
}

@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseGlow {
    0% {
        text-shadow:
            0 0  5px var(--neon-green),
            0 0 10px var(--neon-green),
            0 0 20px var(--neon-green),
            0 0 40px var(--neon-green);
    }
    50% {
        text-shadow:
            0 0 10px var(--neon-green),
            0 0 20px var(--neon-green),
            0 0 30px var(--neon-green),
            0 0 60px var(--neon-green);
    }
    100% {
        text-shadow:
            0 0  5px var(--neon-green),
            0 0 10px var(--neon-green),
            0 0 20px var(--neon-green),
            0 0 40px var(--neon-green);
    }
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40%                      { transform: translateX(-50%) translateY(-10px); }
    60%                      { transform: translateX(-50%) translateY(-5px); }
}

@keyframes neonFlow {
    0%   { background-position: 0%   0%; }
    100% { background-position: 300% 0%; }
}

@keyframes techPulse {
    0%, 100% { box-shadow: 0 0  5px var(--neon-green), 0 0 10px var(--neon-green); transform: scale(1); }
    50%       { box-shadow: 0 0 15px var(--neon-green), 0 0 30px var(--neon-green); transform: scale(1.05); }
}

/* Applied animation classes */
.fade-in {
    opacity: 0;
    transform: translateY(-50px);
    animation: slideFadeGlow 1.2s ease-out forwards;
}

.hero-text-section p,
.hero-features span,
.hero-buttons a {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s ease-out forwards;
}
.hero-text-section p  { animation-delay: 0.3s; }
.hero-features span   { animation-delay: 0.6s; }
.hero-buttons a        { animation-delay: 0.9s; }

/* ─────────────────────────────────────────────────────────────────────────────
   5. NEON GLOW TEXT
   ───────────────────────────────────────────────────────────────────────────── */
.glow-text,
.neon-text {
    display: inline-block;
    font-weight: 700;
    position: relative;
    background: linear-gradient(270deg, #39ff14, #00ffae, #39ff14);
    background-size: 600% 600%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation:
        neonGradient 8s ease infinite,
        pulseGlow    2s infinite alternate;
}

.glow-text::after,
.neon-text::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    filter: blur(30px);
    background: linear-gradient(270deg, #39ff14, #00ffae, #39ff14);
    background-size: 600% 600%;
    animation: neonGradient 8s ease infinite;
    opacity: 0.4;
}

.glow-text:hover,
.neon-text:hover {
    filter: brightness(1.2);
}

/* ─────────────────────────────────────────────────────────────────────────────
   6. LAYOUT
   ───────────────────────────────────────────────────────────────────────────── */
main { padding-top: 76px; }

/* ─────────────────────────────────────────────────────────────────────────────
   7. NAVBAR
   ───────────────────────────────────────────────────────────────────────────── */
.navbar {
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--dark-border);
    transition: all var(--transition-base);
}

.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(57, 255, 20, 0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    transition: all var(--transition-base);
}

.navbar-brand:hover { transform: translateY(-2px); }

.brand-text { margin-left: var(--space-sm); }

.nav-link {
    font-weight: 500;
    transition: all var(--transition-base);
    position: relative;
    padding: 0.5rem 1rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--neon-green);
    transform: translateX(-50%);
    transition: width var(--transition-base);
}

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

.navbar-nav .nav-link:hover {
    color: var(--neon-green) !important;
    text-shadow: 0 0 6px var(--neon-green);
}

.navbar-nav .nav-link.active {
    color: var(--neon-green) !important;
    text-shadow: 0 0 8px var(--neon-green), 0 0 12px var(--neon-green);
    font-weight: 600;
}

/* ─────────────────────────────────────────────────────────────────────────────
   8. HERO / BANNER
   ───────────────────────────────────────────────────────────────────────────── */
.hero-section {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    background: url('../img/PatronHubDevs_banner.webp') center center / cover no-repeat;
}

.hero-banner {
    width: 100%;
    background: url('../img/PatronHubDevs_banner.webp') center center / cover no-repeat;
    min-height: 60vh;
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-banner { background-image: url('/static/img/PatronHubDevs_banner.webp'); }
}

.hero-text-section { padding: 4rem 0; }

.hero-icon {
    font-size: 5rem;
    color: var(--neon-green);
    animation: pulse 2s ease-in-out infinite;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    font-size: 2rem;
    color: var(--neon-green);
}

/* ─────────────────────────────────────────────────────────────────────────────
   9. BUTTONS
   ───────────────────────────────────────────────────────────────────────────── */
.btn-glow {
    background: var(--neon-green);
    color: #000;
    border: none;
    font-weight: 600;
    padding: 0.75rem 2rem;
    transition: all var(--transition-base);
    box-shadow: 0 0 20px rgba(57, 255, 20, 0.3);
}

.btn-glow:hover {
    background: var(--neon-green);
    color: #000;
    transform: translateY(-2px);
    box-shadow:
        0 0 30px rgba(57, 255, 20, 0.6),
        0  5px 15px rgba(0, 0, 0, 0.3),
        0 0  8px var(--neon-green),
        0 0 16px var(--neon-green),
        0 0 24px var(--neon-green);
}

.btn-outline-glow {
    border: 2px solid var(--neon-green);
    color: var(--neon-green);
    background: transparent;
    font-weight: 600;
    padding: 0.75rem 2rem;
    transition: all var(--transition-base);
}

.btn-outline-glow:hover {
    background: var(--neon-green);
    color: #000;
    transform: translateY(-2px);
    box-shadow:
        0 0 20px rgba(57, 255, 20, 0.5),
        0 0  8px var(--neon-green),
        0 0 16px var(--neon-green),
        0 0 24px var(--neon-green);
    border-color: var(--neon-green);
}

/* ─────────────────────────────────────────────────────────────────────────────
   10. CARDS
   ───────────────────────────────────────────────────────────────────────────── */
.project-card {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--neon-green);
    box-shadow: 0 10px 40px rgba(57, 255, 20, 0.2);
}

.project-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-base);
}

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

.project-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 5px;
}

.project-content { padding: var(--space-lg); }

.project-tagline {
    font-size: 0.9rem;
    font-style: italic;
}

.tech-stack .badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
    font-weight: 500;
}

/* Large horizontal card */
.project-card-large {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
}

.project-card-large:hover {
    border-color: var(--neon-green);
    box-shadow: 0 10px 40px rgba(57, 255, 20, 0.2);
}

.project-image-large {
    position: relative;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    max-height: 460px;
    height: 100%;
    overflow: hidden;
}

.project-image-large img {
    max-width: 85%;
    max-height: 380px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 0 18px rgba(57, 255, 20, 0.12));
    transition: filter 0.3s ease, transform 0.3s ease;
}

.project-card-large:hover .project-image-large img {
    filter: drop-shadow(0 0 28px rgba(57, 255, 20, 0.28));
    transform: scale(1.03);
}

.project-overlay-large {
    position: absolute;
    top: 10px;
    left: 10px;
}

.project-content-large { padding: var(--space-xl); }

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.feature-list i { flex-shrink: 0; }

/* ─────────────────────────────────────────────────────────────────────────────
   11. PAGE-LEVEL COMPONENTS
   ───────────────────────────────────────────────────────────────────────────── */
.page-header {
    padding-top: 100px;
    background: linear-gradient(135deg, #121212 0%, #1a1a1a 100%);
}

.about-box,
.donation-card,
.crypto-box,
.contribute-box {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: all var(--transition-base);
}

.about-box:hover,
.donation-card:hover {
    border-color: var(--neon-green);
    box-shadow: 0 5px 25px rgba(57, 255, 20, 0.1);
}

.value-card,
.support-card {
    background: rgba(26, 26, 26, 0.5);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.value-card:hover,
.support-card:hover {
    border-color: var(--neon-green);
    transform: translateY(-5px);
}

/* ─────────────────────────────────────────────────────────────────────────────
   12. STATS
   ───────────────────────────────────────────────────────────────────────────── */
.stat-box { padding: var(--space-xl); }

.stat-icon {
    font-size: 3rem;
    color: var(--neon-green);
    margin-bottom: var(--space-md);
}

/* ─────────────────────────────────────────────────────────────────────────────
   13. DONATION / CRYPTO
   ───────────────────────────────────────────────────────────────────────────── */
.donation-header {
    text-align: center;
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--dark-border);
    margin-bottom: var(--space-lg);
}

.donation-header i { color: var(--neon-green); }

.crypto-card {
    background: rgba(26, 26, 26, 0.5);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    text-align: center;
    transition: all var(--transition-base);
}

.crypto-card:hover {
    border-color: var(--neon-green);
    transform: translateY(-5px);
    box-shadow: 0 0 20px var(--neon-green), 0 0 40px var(--neon-green) inset;
}

.crypto-icon {
    font-size: 3rem;
    color: var(--neon-green);
    margin-bottom: var(--space-md);
}

.qr-placeholder {
    background: rgba(57, 255, 20, 0.05);
    border: 2px dashed var(--dark-border);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.wallet-address code {
    background: rgba(57, 255, 20, 0.1);
    padding: var(--space-sm);
    border-radius: var(--radius-sm);
    color: var(--neon-green);
    display: block;
    word-break: break-all;
}

.crypto-card i,
.support-card i {
    transition: text-shadow var(--transition-base), color var(--transition-base);
}

.crypto-card:hover i,
.support-card:hover i {
    text-shadow:
        0 0  8px var(--neon-green),
        0 0 16px var(--neon-green),
        0 0 24px var(--neon-green);
    color: var(--neon-green);
}

.crypto-card:hover .wallet-address code {
    text-shadow: 0 0 6px var(--neon-green), 0 0 12px var(--neon-green);
    color: var(--neon-green);
}

/* ─────────────────────────────────────────────────────────────────────────────
   14. FOOTER
   ───────────────────────────────────────────────────────────────────────────── */
.footer {
    position: relative;
    background: linear-gradient(180deg, rgba(10,10,10,0.85), rgba(15,15,15,0.95));
    border-top: 1px solid rgba(0, 255, 150, 0.3);
    box-shadow: 0 -2px 25px rgba(0, 255, 150, 0.35);
    backdrop-filter: blur(6px) saturate(140%);
    transition: all var(--transition-base);
}

.footer:hover {
    box-shadow: 0 -2px 35px rgba(0, 255, 180, 0.5);
    border-top-color: rgba(0, 255, 180, 0.4);
}

.footer::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #00ff9d, #00bfff, #ffff00, #00ff9d);
    background-size: 300% 100%;
    animation: neonFlow 6s linear infinite;
    filter: blur(4px);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li { margin-bottom: var(--space-sm); }

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
}

.footer-links a:hover {
    color: var(--neon-green);
    transform: translateX(5px);
}

/* ─────────────────────────────────────────────────────────────────────────────
   15. SOCIAL ICONS
   ───────────────────────────────────────────────────────────────────────────── */
.social-links {
    display: flex;
    gap: var(--space-md);
}

.social-icon {
    width: 40px;
    height: 40px;
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: all var(--transition-base);
    text-decoration: none;
}

.social-icon:hover {
    border-color: var(--neon-green);
    color: var(--neon-green);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(57, 255, 20, 0.3);
}

/* ─────────────────────────────────────────────────────────────────────────────
   16. TECH BADGES
   ───────────────────────────────────────────────────────────────────────────── */
.tech-badges .badge {
    font-size: 1rem;
    padding: 1rem 1.5rem;
    position: relative;
    color: var(--neon-green);
    border-color: var(--neon-green);
    background-color: #111;
    box-shadow: 0 0 5px var(--neon-green), 0 0 10px var(--neon-green);
    transition: all var(--transition-fast);
    animation: techPulse 2.5s infinite ease-in-out;
}

.tech-badges .badge:hover {
    box-shadow:
        0 0 20px var(--neon-green),
        0 0 40px var(--neon-green),
        0 0 60px var(--neon-green);
    transform: scale(1.1);
    color: var(--neon-green);
}

.hero-features .badge {
    font-size: 1rem;
    padding: 0.7rem 1.2rem;
}

/* ─────────────────────────────────────────────────────────────────────────────
   17. SERVICES / TOOL / BLOG CARD NEON EFFECTS
   ───────────────────────────────────────────────────────────────────────────── */
.card.border-neon {
    transition: all var(--transition-base);
    box-shadow: 0 0 5px #0f0, 0 0 10px #0f0;
}

.card.border-neon:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 0 15px #00ff00, 0 0 30px #00ff00, 0 0 45px #00ff00;
    border-color: #00ff00;
}

.card.border-neon i.text-neon { transition: all var(--transition-base); }

.card.border-neon:hover i.text-neon {
    text-shadow: 0 0 5px #00ff00, 0 0 10px #00ff00, 0 0 15px #00ff00;
}

.tool-card.border-neon {
    transition: all var(--transition-base);
    box-shadow: 0 0 5px #0f0, 0 0 10px #0f0;
    border: 1px solid #0f0;
}

.tool-card.border-neon:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 0 15px #0f0, 0 0 30px #0f0, 0 0 45px #0f0;
    border-color: #0f0;
}

.tool-card.border-neon i.text-neon { transition: all var(--transition-base); }

.tool-card.border-neon:hover i.text-neon {
    text-shadow: 0 0 5px #0f0, 0 0 10px #0f0, 0 0 15px #0f0;
}

.post-card {
    transition: all var(--transition-base);
    border: 1px solid #0f0;
    box-shadow: 0 0 5px #0f0, 0 0 10px #0f0;
}

.post-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 0 15px #0f0, 0 0 30px #0f0, 0 0 45px #0f0;
    border-color: #0f0;
}

.post-card i { transition: all var(--transition-base); }

.post-card:hover i {
    text-shadow: 0 0 5px #0f0, 0 0 10px #0f0, 0 0 15px #0f0;
}

/* ─────────────────────────────────────────────────────────────────────────────
   18. FILTER PILL  (Fixed_3 addition — preserved)
   ───────────────────────────────────────────────────────────────────────────── */
.filter-pill {
    font-size: .75rem;
    padding: .28rem .85rem;
    border-radius: 2rem;
    border: 1px solid var(--dark-border);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: all .2s;
    font-family: 'Roboto Mono', monospace;
    text-decoration: none;
    white-space: nowrap;
    display: inline-block;
}

.filter-pill:hover,
.filter-pill.active {
    border-color: var(--neon-green);
    color: var(--neon-green);
    background: rgba(57, 255, 20, .06);
    text-decoration: none;
}

/* ─────────────────────────────────────────────────────────────────────────────
   19. TOOLTIPS
   ───────────────────────────────────────────────────────────────────────────── */
.tooltip-inner {
    background-color: var(--neon-green) !important;
    color: #000 !important;
    font-weight: bold;
    font-size: 0.9rem;
    text-shadow: 0 0 5px var(--neon-green);
}

.tooltip.bs-tooltip-top .tooltip-arrow::before {
    border-top-color: var(--neon-green) !important;
}

/* ─────────────────────────────────────────────────────────────────────────────
   20. RESPONSIVE
   ───────────────────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .hero-icon { font-size: 3rem; }
    .display-3 { font-size: 2.5rem; }
    .display-4 { font-size: 2rem; }
    .display-5 { font-size: 1.75rem; }
    .project-content-large { padding: var(--space-lg); }
    .social-links { justify-content: center; }

    /* Projects page: image column stacks on mobile — give it a fixed height */
    .project-image-large {
        min-height: 240px;
        max-height: 280px;
    }

    .project-image-large img {
        max-height: 220px;
        max-width: 75%;
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   21. REDUCED MOTION
   ───────────────────────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration:        0.01ms !important;
        animation-iteration-count: 1      !important;
        transition-duration:       0.01ms !important;
    }
}