/* ===== RESPECT RP - ENHANCED VISUAL STYLE ===== */

/* ===== PARTICLES BACKGROUND ===== */
#particles-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: .35;
}

/* ===== HERO ENHANCEMENTS ===== */
.hero-content { position: relative; z-index: 1; }

.hero-title-main {
    text-shadow: 0 0 80px rgba(124,58,237,.6), 0 0 160px rgba(124,58,237,.2);
    animation: titlePulse 4s ease-in-out infinite;
}
@keyframes titlePulse {
    0%,100% { filter: drop-shadow(0 0 40px rgba(124,58,237,.4)); }
    50%      { filter: drop-shadow(0 0 60px rgba(124,58,237,.7)); }
}

/* ===== HERO BADGE ===== */
.hero-badge {
    animation: badgeFadeIn .8s ease both;
    position: relative;
    overflow: hidden;
}
.hero-badge::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.15), transparent);
    animation: badgeShine 3s ease-in-out infinite 1s;
}
@keyframes badgeFadeIn { from { opacity:0; transform:translateY(-10px); } to { opacity:1; transform:translateY(0); } }
@keyframes badgeShine  { 0%,100% { left:-100%; } 50% { left:150%; } }

/* ===== HERO STATS ===== */
.hstat {
    position: relative;
    overflow: hidden;
}
.hstat::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(124,58,237,.08), transparent);
    opacity: 0;
    transition: opacity .3s ease;
}
.hstat:hover::before { opacity: 1; }
.hstat-num {
    font-variant-numeric: tabular-nums;
}

/* ===== SECTION DIVIDERS ===== */
.section::before {
    content: '';
    display: block;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(124,58,237,.3), transparent);
    margin-bottom: 0;
}

/* ===== FEATURE CARDS ===== */
.feat-card {
    position: relative;
}
.feat-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(124,58,237,.2), transparent);
}
.feat-icon {
    position: relative;
}
.feat-icon::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: inherit;
    background: radial-gradient(circle, rgba(124,58,237,.15), transparent 70%);
    opacity: 0;
    transition: opacity .3s ease;
}
.feat-card:hover .feat-icon::after { opacity: 1; }

/* ===== STAT CARDS ===== */
.stat-card {
    position: relative;
    overflow: hidden;
}
.stat-card::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle at center, rgba(124,58,237,.06) 0%, transparent 60%);
    opacity: 0;
    transition: opacity .4s ease;
}
.stat-card:hover::before { opacity: 1; }

/* ===== SERVER STATUS WIDGET ===== */
.server-status {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: rgba(34,197,94,.08);
    border: 1px solid rgba(34,197,94,.25);
    border-radius: 999px;
    padding: .4rem 1rem;
    font-size: .82rem;
    font-weight: 700;
    color: #4ade80;
    margin-bottom: 1.5rem;
}
.server-status .dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #22c55e;
    animation: statusPulse 2s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes statusPulse {
    0%,100% { box-shadow: 0 0 0 0 rgba(34,197,94,.4); }
    50%      { box-shadow: 0 0 0 6px rgba(34,197,94,0); }
}

/* ===== SCROLL DOWN WHEEL ===== */
.scroll-down {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 30px; height: 50px;
    border: 2px solid rgba(124,58,237,.5);
    border-radius: 15px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 7px;
    z-index: 1;
    cursor: pointer;
    text-decoration: none;
    transition: border-color .3s ease;
}
.scroll-down:hover { border-color: rgba(139,92,246,.8); }
.scroll-down::before {
    content: '';
    width: 4px; height: 8px;
    background: var(--purple-300);
    border-radius: 2px;
    animation: scrollWheel 1.8s ease-in-out infinite;
}
.scroll-down i { display: none; }
@keyframes scrollWheel {
    0%   { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(16px); opacity: 0; }
}

/* ===== BUTTONS GLOW ===== */
.btn-primary {
    position: relative;
    overflow: hidden;
}
.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,.15), transparent);
    opacity: 0;
    transition: opacity .25s ease;
}
.btn-primary:hover::after { opacity: 1; }

/* ===== NAVBAR GLASS ===== */
.rrp-header {
    background: rgba(8,3,16,.85) !important;
    backdrop-filter: blur(24px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
}
.rrp-header.scrolled {
    background: rgba(8,3,16,.97) !important;
    box-shadow: 0 1px 0 rgba(124,58,237,.2), 0 4px 24px rgba(0,0,0,.6) !important;
}

/* ===== FOOTER GRADIENT TOP ===== */
.footer::before {
    background: linear-gradient(90deg, transparent, rgba(124,58,237,.5), transparent) !important;
}

/* ===== CARD HOVER LIFT ===== */
.feat-card:hover,
.stat-card:hover {
    transform: translateY(-3px);
    transition: transform .3s ease, background .3s ease;
}

/* ===== SECTION HEADER UNDERLINE ===== */
.sec-title::after {
    box-shadow: 0 0 12px rgba(124,58,237,.8) !important;
    animation: underlinePulse 3s ease-in-out infinite;
}
@keyframes underlinePulse {
    0%,100% { box-shadow: 0 0 8px rgba(124,58,237,.6); }
    50%      { box-shadow: 0 0 20px rgba(124,58,237,1); }
}

/* ===== GALLERY IMAGE ===== */
.single-img-wrap {
    position: relative;
}
.single-img-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 60px rgba(124,58,237,.15);
    pointer-events: none;
}

/* ===== CTA SECTION ===== */
.cta-section h2 {
    background: linear-gradient(135deg, #e9d5ff, #a78bfa, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== FADE IN ANIMATION ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
.hero-content > * {
    animation: fadeInUp .7s ease both;
}
.hero-content > *:nth-child(1) { animation-delay: .1s; }
.hero-content > *:nth-child(2) { animation-delay: .2s; }
.hero-content > *:nth-child(3) { animation-delay: .3s; }
.hero-content > *:nth-child(4) { animation-delay: .4s; }
.hero-content > *:nth-child(5) { animation-delay: .5s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero-title-main { text-shadow: 0 0 40px rgba(124,58,237,.5); }
}
