/* ============================================
   Modern Design System - Ready Money
   ============================================ */

/* CSS Variables */
:root {
    --primary-color: #FF6B35;
    --primary-dark: #E55A2B;
    --primary-light: #FF8C5A;
    --secondary-color: #4ECDC4;
    --accent-color: #FFE66D;
    --dark-bg: #1A1A2E;
    --dark-secondary: #16213E;
    --text-primary: #2C3E50;
    --text-secondary: #7F8C8D;
    --text-light: #ECF0F1;
    --bg-light: #F8F9FA;
    --bg-white: #FFFFFF;
    --border-color: #E1E8ED;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.20);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Font System */
body,
ul,
li,
p,
a,
label,
input,
div,
textarea {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-primary);
}

body {
    background-color: var(--bg-light);
    overflow-x: hidden;
}

/* Heading Styles */
.h1 {
    font-family: 'Inter', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.h2 {
    font-family: 'Inter', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

.h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-primary);
}

.h4 {
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.5;
    color: var(--text-primary);
}

.h5 {
    font-family: 'Inter', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.5;
    color: var(--text-primary);
}

/* Logo Styles */
.logo {
    font-weight: 800 !important;
    letter-spacing: -0.02em;
}

/* Color Utility Classes */
.text-primary {
    color: var(--primary-color) !important;
}

.text-secondary {
    color: var(--text-secondary) !important;
}

.text-light {
    color: var(--text-light) !important;
}

.text-muted {
    color: var(--text-secondary) !important;
}

.text-success {
    color: var(--primary-color) !important;
}

.bg-dark {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-secondary) 100%) !important;
}

.bg-light {
    background-color: var(--bg-light) !important;
}

.bg-white {
    background-color: var(--bg-white) !important;
}

.bg-black {
    background-color: #000000 !important;
}

.bg-success {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
}

.bg-success,
.bg-success * {
    color: white !important;
}

/* Button Styles */
.btn-success {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border: none;
    color: white !important;
    font-weight: 600;
    padding: 14px 32px;
    border-radius: var(--radius-md);
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.btn-success::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-success:hover::before {
    width: 300px;
    height: 300px;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
}

.btn-success:active {
    transform: translateY(0);
}

/* Navigation Bar */
#rm_nav_top {
    min-height: 44px;
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-secondary) 100%) !important;
}

#rm_nav_top * {
    font-size: 0.875rem !important;
    color: var(--text-light) !important;
}

#rm_main_nav a {
    color: var(--text-primary);
    font-weight: 500;
    transition: var(--transition);
}

#rm_main_nav a:hover {
    color: var(--primary-color);
}

#rm_main_nav .nav-link.active {
    color: var(--primary-color) !important;
    font-weight: 700 !important;
    position: relative;
}

/* Carousel */
#rm-hero-carousel {
    background: var(--bg-white) !important;
}

#rm-hero-carousel .carousel-indicators li {
    margin-top: -50px;
    background-color: var(--primary-color);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    transition: var(--transition);
}

#rm-hero-carousel .carousel-indicators li.active {
    width: 32px;
    border-radius: 6px;
}

/* Card Styles */
.card {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

/* Service Cards */
.rm-service-card {
    transition: var(--transition);
    border-radius: var(--radius-lg);
    padding: 2rem;
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
}

.rm-service-card:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.rm-service-card:hover,
.rm-service-card:hover *,
.rm-service-card:hover i,
.rm-service-card:hover h2,
.rm-service-card:hover h5,
.rm-service-card:hover p {
    color: white !important;
}

/* Form Controls */
.form-control {
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    transition: var(--transition);
    background: var(--bg-white);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.1);
    outline: none;
}

.form-control:hover {
    border-color: var(--primary-light);
}

/* Footer */
#rm_footer {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-secondary) 100%) !important;
    position: relative;
    overflow: hidden;
}

#rm_footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light), var(--primary-color));
    background-size: 200% 100%;
    animation: gradientMove 3s linear infinite;
}

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

#rm_footer a {
    color: var(--text-light);
    transition: var(--transition);
}

#rm_footer a:hover {
    color: var(--primary-light);
    transform: translateX(4px);
    display: inline-block;
}

#rm_footer ul.rm-footer-links li {
    padding-top: 12px;
}

#rm_footer .border-light {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Pagination */
.pagination .page-link:hover,
.pagination .page-link.active {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: white !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .h1 {
        font-size: 2.25rem;
    }

    .h2 {
        font-size: 1.875rem;
    }

    .h3 {
        font-size: 1.5rem;
    }

    body,
    ul,
    li,
    p,
    a,
    label,
    input,
    div {
        font-size: 15px;
    }
}

@media (min-width: 992px) {
    #rm-hero-carousel .carousel-item {
        min-height: 32rem !important;
    }
}

/* Utility Classes */
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }

.rounded-sm { border-radius: var(--radius-sm); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-180deg) scale(0.8);
    }
    to {
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }
}

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

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

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

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

.slide-up {
    animation: slideUp 0.6s ease-out;
}

.slide-down {
    animation: slideDown 0.6s ease-out;
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

.zoom-in {
    animation: zoomIn 0.6s ease-out;
}

.rotate-in {
    animation: rotateIn 0.6s ease-out;
}

.bounce {
    animation: bounce 1s ease-in-out;
}

.shake {
    animation: shake 0.5s ease-in-out;
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

.float {
    animation: float 3s ease-in-out infinite;
}

/* Page Load Animation */
body:not(.loaded) {
    opacity: 0;
}

body.loaded {
    opacity: 1;
    transition: opacity 0.5s ease-in;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Animation Performance Optimization */
.animate-on-scroll,
.service-card,
.feature-card,
.rm-service-card,
.form-container {
    will-change: transform, opacity;
}
