/* ============================================
   IRON EMPIRE GYM - PREMIUM ENHANCEMENTS
   Final polish and advanced effects
   ============================================ */

/* === CUSTOM CURSOR === */
* {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><circle cx="12" cy="12" r="8" fill="rgba(196,30,58,0.3)" stroke="rgba(196,30,58,0.8)" stroke-width="2"/></svg>') 12 12, auto;
}

a,
button,
.btn,
.card,
.image-card {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" viewBox="0 0 28 28"><circle cx="14" cy="14" r="10" fill="rgba(196,30,58,0.5)" stroke="rgba(196,30,58,1)" stroke-width="2"/></svg>') 14 14, pointer;
}

/* === ADVANCED IMAGE FILTERS === */
.hero-background img,
.intro-image img,
.facility-image img {
    filter: contrast(1.1) saturate(1.2) brightness(0.95);
    transition: filter 0.6s ease;
}

.hero:hover .hero-background img {
    filter: contrast(1.15) saturate(1.3) brightness(1);
}

/* === BACKGROUND PATTERNS === */
.section-pattern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        repeating-linear-gradient(45deg,
            transparent,
            transparent 10px,
            rgba(196, 30, 58, 0.02) 10px,
            rgba(196, 30, 58, 0.02) 20px);
    pointer-events: none;
    z-index: 0;
}

/* === FLOATING ACTION BUTTON === */
.fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #c41e3a, #a01828);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 10px 30px rgba(196, 30, 58, 0.5),
        0 0 20px rgba(196, 30, 58, 0.3);
    cursor: pointer;
    z-index: 9998;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fabPulse 2s ease-in-out infinite;
}

.fab i {
    font-size: 1.5rem;
    color: white;
}

.fab:hover {
    transform: scale(1.15) rotate(90deg);
    box-shadow:
        0 15px 40px rgba(196, 30, 58, 0.7),
        0 0 30px rgba(196, 30, 58, 0.5);
}

@keyframes fabPulse {

    0%,
    100% {
        box-shadow:
            0 10px 30px rgba(196, 30, 58, 0.5),
            0 0 20px rgba(196, 30, 58, 0.3);
    }

    50% {
        box-shadow:
            0 15px 40px rgba(196, 30, 58, 0.7),
            0 0 30px rgba(196, 30, 58, 0.5);
    }
}

/* === ENHANCED CARD BORDERS === */
.card,
.tier-card,
.trainer-card {
    position: relative;
    overflow: hidden;
}

.card::before,
.tier-card::before,
.trainer-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg,
            #c41e3a,
            #ff4757,
            #c41e3a,
            #a01828,
            #c41e3a);
    background-size: 400% 400%;
    border-radius: inherit;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
    animation: borderGradient 3s ease infinite;
}

.card:hover::before,
.tier-card:hover::before,
.trainer-card:hover::before {
    opacity: 1;
}

@keyframes borderGradient {

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

    50% {
        background-position: 100% 50%;
    }
}

/* === SECTION DIVIDERS === */
.section-divider {
    position: relative;
    height: 100px;
    overflow: hidden;
    background: linear-gradient(180deg, transparent, rgba(196, 30, 58, 0.1), transparent);
}

.section-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
            transparent,
            #c41e3a,
            transparent);
    box-shadow: 0 0 10px rgba(196, 30, 58, 0.6);
}

.section-divider::after {
    content: '⚡';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: #c41e3a;
    text-shadow: 0 0 20px rgba(196, 30, 58, 0.8);
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
    }
}

/* === ENHANCED BUTTONS === */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::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: width 0.6s, height 0.6s;
}

.btn:active::before {
    width: 300px;
    height: 300px;
}

/* === TOOLTIP SYSTEM === */
[data-tooltip] {
    position: relative;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    padding: 0.5em 1em;
    background: rgba(13, 13, 13, 0.95);
    color: #f5f5f5;
    font-size: 0.85rem;
    white-space: nowrap;
    border-radius: 4px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    border: 1px solid #c41e3a;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    z-index: 10000;
}

[data-tooltip]:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

/* === ENHANCED STATS === */
.stat-item {
    position: relative;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #c41e3a, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-item:hover::before {
    opacity: 1;
}

/* === IMAGE OVERLAY EFFECTS === */
.image-card-overlay {
    background: linear-gradient(180deg,
            transparent 0%,
            rgba(13, 13, 13, 0.7) 50%,
            rgba(13, 13, 13, 0.95) 100%);
    backdrop-filter: blur(5px);
}

/* === ENHANCED FOOTER === */
.footer {
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
            transparent,
            #c41e3a,
            transparent);
    box-shadow: 0 0 10px rgba(196, 30, 58, 0.6);
}

/* === SOCIAL LINKS ENHANCEMENT === */
.social-link {
    position: relative;
    transition: all 0.3s ease;
}

.social-link::before {
    content: '';
    position: absolute;
    inset: -5px;
    background: linear-gradient(135deg, #c41e3a, transparent);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.social-link:hover::before {
    opacity: 0.3;
}

.social-link:hover {
    transform: translateY(-5px) rotate(360deg);
}

/* === ENHANCED FORM INPUTS === */
.form-input,
.form-textarea,
.form-select {
    position: relative;
    background: rgba(42, 45, 52, 0.5);
    backdrop-filter: blur(10px);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    background: rgba(42, 45, 52, 0.8);
    box-shadow:
        0 0 0 3px rgba(196, 30, 58, 0.3),
        0 10px 30px rgba(0, 0, 0, 0.5),
        inset 0 0 20px rgba(196, 30, 58, 0.1);
}

/* === ENHANCED NAVBAR === */
.navbar-menu a {
    position: relative;
    padding: 0.5em 1em;
}

.navbar-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #c41e3a;
    transform: translateX(-50%);
    transition: width 0.3s ease;
    box-shadow: 0 0 5px rgba(196, 30, 58, 0.8);
}

.navbar-menu a:hover::after,
.navbar-menu a.active::after {
    width: 80%;
}

/* === ENHANCED TESTIMONIALS === */
.testimonial {
    position: relative;
    padding-left: calc(var(--space-xl) + 20px);
}

.testimonial::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg,
            #c41e3a,
            #ff4757,
            #c41e3a);
    background-size: 100% 200%;
    animation: borderFlow 3s ease infinite;
}

@keyframes borderFlow {

    0%,
    100% {
        background-position: 0% 0%;
    }

    50% {
        background-position: 0% 100%;
    }
}

/* === SCROLL INDICATOR === */
.scroll-indicator {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 50px;
    border: 2px solid rgba(196, 30, 58, 0.5);
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 9997;
}

.scroll-indicator.visible {
    opacity: 1;
}

.scroll-indicator::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: #c41e3a;
    border-radius: 2px;
    animation: scrollDot 2s ease-in-out infinite;
}

@keyframes scrollDot {

    0%,
    100% {
        top: 8px;
        opacity: 1;
    }

    50% {
        top: 30px;
        opacity: 0.3;
    }
}

/* === ENHANCED TIER CARDS === */
.tier-card.featured {
    transform: scale(1.05);
    z-index: 2;
}

.tier-card.featured::after {
    content: '⭐ BEST VALUE ⭐';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%) rotate(-2deg);
    background: linear-gradient(135deg, #c41e3a, #ff4757);
    color: white;
    padding: 0.3em 1.5em;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(196, 30, 58, 0.5);
    animation: badgeBounce 2s ease-in-out infinite;
}

@keyframes badgeBounce {

    0%,
    100% {
        transform: translateX(-50%) rotate(-2deg) translateY(0);
    }

    50% {
        transform: translateX(-50%) rotate(-2deg) translateY(-5px);
    }
}

/* === PERFORMANCE OPTIMIZATIONS === */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* === MOBILE OPTIMIZATIONS === */
@media (max-width: 768px) {
    .fab {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }

    .fab i {
        font-size: 1.2rem;
    }

    * {
        cursor: auto !important;
    }
}