/* R-POS Modern Design - Polosys Premium UI */
:root {
    --rpos-primary: #FFD700; /* Polosys Yellow */
    --rpos-secondary: #002B5B; /* Deep Blue */
    --rpos-accent: #00A8E8;
    --rpos-bg: #f8faff;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-premium: 0 15px 35px rgba(0, 43, 91, 0.1);
}

/* Cinematic Hero Section */
.rpos-hero {
    position: relative;
    padding: 180px 0 120px;
    background: linear-gradient(135deg, #001f3f 0%, #004080 100%);
    overflow: hidden;
    color: white;
}

.rpos-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/bg-pattern.png') center/cover opacity 0.1;
    pointer-events: none;
}

.rpos-hero .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.rpos-hero-content {
    flex: 1;
    max-width: 600px;
}

.rpos-hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 215, 0, 0.15);
    color: var(--rpos-primary);
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    backdrop-filter: blur(5px);
}

.rpos-hero-title {
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 25px;
}

.rpos-hero-title span.highlight {
    color: var(--rpos-primary);
}

.rpos-hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 40px;
    line-height: 1.6;
}

.rpos-hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.rpos-hero-image img {
    max-width: 100%;
    filter: drop-shadow(0 30px 60px rgba(0,0,0,0.5));
    transform: rotateY(-10deg) rotateX(10deg);
    transition: transform 0.5s ease;
}

.rpos-hero-image:hover img {
    transform: rotateY(0deg) rotateX(0deg) scale(1.05);
}

/* Quick Features Grid - Glassmorphism */
.rpos-quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: -80px;
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px 80px;
}

.rpos-feature-card {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 24px;
    box-shadow: var(--shadow-premium);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.rpos-feature-card:hover {
    transform: translateY(-15px);
    background: white;
}

.rpos-icon-wrapper {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--rpos-secondary) 0%, var(--rpos-accent) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    box-shadow: 0 10px 20px rgba(0, 43, 91, 0.2);
}

.rpos-icon-wrapper img {
    width: 35px;
    height: 35px;
    filter: brightness(0) invert(1);
}

.rpos-feature-card h3 {
    font-size: 1.5rem;
    color: var(--rpos-secondary);
    font-weight: 700;
    margin-bottom: 15px;
}

.rpos-feature-card p {
    color: #64748b;
    line-height: 1.6;
    font-size: 1.05rem;
}

/* Interactive Features List */
.rpos-details-section {
    padding: 100px 0;
    background: #fff;
}

.section-tag {
    display: block;
    text-align: center !important;
    color: var(--rpos-accent);
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.section-title {
    text-align: center !important;
    font-size: 2.8rem;
    color: var(--rpos-secondary);
    font-weight: 900;
    margin-bottom: 60px;
}

/* RTL Specific Overrides for Centering Items */
.rtl .section-title, 
.rtl .section-tag {
    text-align: center !important;
}

.rpos-split-view {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.features-list-wrapper {
    flex: 1;
}

.rpos-key-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    list-style: none;
    padding: 0;
}

.rpos-key-features li {
    background: #f1f5f9;
    padding: 15px 25px;
    border-radius: 12px;
    color: var(--rpos-secondary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.rpos-key-features li::before {
    content: '\f00c';
    font-family: FontAwesome;
    color: var(--rpos-accent);
}

.rpos-key-features li:hover {
    background: var(--rpos-secondary);
    color: white;
    transform: translateX(10px);
}

.features-image-wrapper {
    flex: 1;
    position: relative;
}

.features-image-wrapper img {
    max-width: 100%;
    border-radius: 30px;
    box-shadow: 0 40px 80px rgba(0,0,0,0.15);
}

.floating-stats {
    position: absolute;
    bottom: -30px;
    left: -30px;
    background: var(--rpos-primary);
    padding: 30px;
    border-radius: 20px;
    color: var(--rpos-secondary);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.floating-stats .number {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
}

.floating-stats .label {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* Buttons */
.btn-primary-modern {
    background: var(--rpos-primary);
    color: var(--rpos-secondary) !important;
    padding: 16px 36px;
    border-radius: 12px;
    font-weight: 800;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.2);
}

.btn-primary-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255, 215, 0, 0.3);
}

/* Mobile Adjustments */
@media (max-width: 992px) {
    .rpos-hero { text-align: center; }
    .rpos-hero .container { flex-direction: column; }
    .rpos-hero-content { margin-bottom: 50px; }
    .rpos-split-view { flex-direction: column; }
    .rpos-key-features { grid-template-columns: 1fr; }
}

/* Animations from Polosys Design System */
.animate-up {
    animation: fadeInUp 1s both;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
