/* SpinRent.pl — Modern Dynamic Styles */

html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0F0F1A; }
::-webkit-scrollbar-thumb { background: #FF6B00; border-radius: 3px; }

/* ===== ANIMATIONS ===== */

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(1deg); }
}

@keyframes pulse-orange {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 107, 0, 0.5); }
    50% { box-shadow: 0 0 0 20px rgba(255, 107, 0, 0); }
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes slide-up {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slide-in-left {
    from { opacity: 0; transform: translateX(-60px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slide-in-right {
    from { opacity: 0; transform: translateX(60px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes scale-in {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes counter-text {
    from { opacity: 0; transform: translateY(20px) scale(0.5); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes blob {
    0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
}

/* Animation utilities */
.animate-float { animation: float 4s ease-in-out infinite; }
.animate-pulse-orange { animation: pulse-orange 2.5s ease-in-out infinite; }
.animate-gradient {
    background-size: 200% 200%;
    animation: gradient-shift 4s ease infinite;
}
.animate-spin-slow { animation: spin-slow 20s linear infinite; }
.animate-blob { animation: blob 8s ease-in-out infinite; }
.animate-shimmer {
    background: linear-gradient(90deg, transparent, rgba(255,107,0,0.1), transparent);
    background-size: 200% 100%;
    animation: shimmer 3s infinite;
}

/* Scroll-triggered animations — smooth & universal */
.reveal,
.reveal-left,
.reveal-right,
.reveal-scale {
    opacity: 0;
    transition: opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: opacity, transform;
}

.reveal { transform: translateY(30px); }
.reveal-left { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }
.reveal-scale { transform: scale(0.92); }

.reveal.visible,
.reveal-left.visible,
.reveal-right.visible,
.reveal-scale.visible {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

/* Stagger children — cascading entrance */
.reveal.visible:nth-child(2),
.reveal-left.visible:nth-child(2),
.reveal-right.visible:nth-child(2) { transition-delay: 0.12s; }
.reveal.visible:nth-child(3),
.reveal-left.visible:nth-child(3),
.reveal-right.visible:nth-child(3) { transition-delay: 0.24s; }
.reveal.visible:nth-child(4),
.reveal-left.visible:nth-child(4),
.reveal-right.visible:nth-child(4) { transition-delay: 0.36s; }
.reveal.visible:nth-child(5),
.reveal-left.visible:nth-child(5),
.reveal-right.visible:nth-child(5) { transition-delay: 0.48s; }
.reveal.visible:nth-child(6),
.reveal-left.visible:nth-child(6),
.reveal-right.visible:nth-child(6) { transition-delay: 0.6s; }

/* ===== GRADIENT TEXT ===== */
.text-gradient {
    background: linear-gradient(135deg, #FF6B00, #FF8533, #FFa040);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-white {
    background: linear-gradient(135deg, #ffffff, #e0e0e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== HERO ===== */
.hero-bg {
    position: relative;
    overflow: hidden;
}
.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15,15,26,0.92), rgba(26,26,46,0.85), rgba(15,15,26,0.9));
    z-index: 1;
}
.hero-bg > img, .hero-bg > video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.hero-content {
    position: relative;
    z-index: 2;
}

/* ===== GLOW EFFECTS ===== */
.glow-orange {
    box-shadow: 0 0 40px rgba(255, 107, 0, 0.3), 0 0 80px rgba(255, 107, 0, 0.1);
}
.glow-orange-sm {
    box-shadow: 0 0 20px rgba(255, 107, 0, 0.2);
}

.hover-glow {
    transition: box-shadow 0.4s ease, transform 0.4s ease;
}
.hover-glow:hover {
    box-shadow: 0 20px 60px rgba(255, 107, 0, 0.15), 0 8px 20px rgba(0,0,0,0.1);
    transform: translateY(-6px);
}

/* ===== CARDS ===== */
.card-3d {
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    transform-style: preserve-3d;
}
.card-3d:hover {
    transform: translateY(-8px) rotateX(2deg);
    box-shadow: 0 30px 60px rgba(0,0,0,0.12);
}

.card-glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== MODERN BUTTON ===== */
.btn-modern {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.btn-modern::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.btn-modern:hover::before {
    opacity: 1;
}
.btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(255, 107, 0, 0.4);
}
.btn-modern:active {
    transform: translateY(0);
}

/* ===== MARQUEE / TICKER ===== */
.ticker {
    display: flex;
    overflow: hidden;
    white-space: nowrap;
}
.ticker-content {
    display: flex;
    animation: ticker 25s linear infinite;
}
@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===== IMAGE OVERLAY ===== */
.img-overlay {
    position: relative;
    overflow: hidden;
}
.img-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(15,15,26,0.8) 100%);
    pointer-events: none;
}
.img-overlay img {
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.img-overlay:hover img {
    transform: scale(1.08);
}

/* ===== NUMBER COUNTER ===== */
.counter {
    display: inline-block;
    font-variant-numeric: tabular-nums;
}

/* ===== DECORATIVE ===== */
.dot-pattern {
    background-image: radial-gradient(circle, rgba(255,107,0,0.15) 1px, transparent 1px);
    background-size: 24px 24px;
}

.line-pattern {
    background-image: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 10px,
        rgba(255,107,0,0.03) 10px,
        rgba(255,107,0,0.03) 20px
    );
}

/* ===== NAVIGATION ===== */
nav {
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                background-color 0.3s ease,
                box-shadow 0.3s ease,
                border-color 0.3s ease;
}
nav.nav-hidden {
    transform: translateY(-100%);
}
nav.nav-scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
nav.nav-scrolled .nav-link {
    color: #374151 !important;
}
nav.nav-scrolled .nav-link:hover {
    color: #FF6B00 !important;
}
nav.nav-scrolled .nav-logo-text {
    color: #1A1A2E !important;
}
nav.nav-scrolled .nav-strefa {
    color: #FF6B00 !important;
}
nav.nav-scrolled #mobile-menu-btn {
    color: #1A1A2E !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .overflow-x-auto {
        -webkit-overflow-scrolling: touch;
    }
    table { min-width: 600px; }
}

/* ===== PANEL KLIENTA ===== */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
}
.status-active { background: #dcfce7; color: #166534; }
.status-pending { background: #fef9c3; color: #854d0e; }
.status-expired { background: #fee2e2; color: #991b1b; }

/* ===== PARTICLE CANVAS ===== */
#particles {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}
