/* Custom Styles for APS Accounting Marketing Website */

/* Font Configuration */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

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

/* Custom animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Button hover effects */
.btn-primary {
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Card hover effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #2563eb;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1e40af;
}

/* Mobile menu transition */
#mobile-menu {
    transition: max-height 0.3s ease-out;
}

/* Feature grid responsive */
@media (max-width: 768px) {
    .feature-grid {
        grid-template-columns: 1px;
    }
}

/* Pricing card scale effect */
.pricing-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Background patterns */
.bg-pattern {
    background-color: #f8fafc;
    background-image: 
        radial-gradient(circle at 25px 25px, lightgray 2%, transparent 0%),
        radial-gradient(circle at 75px 75px, lightgray 2%, transparent 0%);
    background-size: 100px 100px;
}

/* Code block styling */
pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: 0.5rem;
    overflow-x: auto;
}

code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
}

/* Table styling */
table {
    width: 100%;
    border-collapse: collapse;
}

table th {
    background: #2563eb;
    color: white;
    padding: 0.75rem;
    text-align: left;
}

table td {
    padding: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
}

table tr:hover {
    background: #f9fafb;
}

/* Badge styling */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
}

.badge-blue {
    background: #dbeafe;
    color: #1e40af;
}

.badge-green {
    background: #d1fae5;
    color: #065f46;
}

.badge-orange {
    background: #fed7aa;
    color: #9a3412;
}

/* Loading spinner */
.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #2563eb;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Alert boxes */
.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.alert-success {
    background: #d1fae5;
    border: 1px solid #10b981;
    color: #065f46;
}

.alert-warning {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    color: #92400e;
}

.alert-error {
    background: #fee2e2;
    border: 1px solid #ef4444;
    color: #991b1b;
}

/* Testimonial cards */
.testimonial {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
}

.testimonial::before {
    content: '"';
    font-size: 4rem;
    color: #2563eb;
    position: absolute;
    top: -10px;
    left: 20px;
    font-family: Georgia, serif;
}

/* Stats counter animation */
@keyframes countUp {
    from { opacity: 0; }
    to { opacity: 1; }
}

.stat-number {
    animation: countUp 1s ease-out;
}

/* Image zoom on hover */
.img-zoom {
    overflow: hidden;
}

.img-zoom img {
    transition: transform 0.3s ease;
}

.img-zoom:hover img {
    transform: scale(1.1);
}

/* Responsive video container */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Hero Section Split Background - RTL Support */

/* Mobile: Solid blue background (no split) */
@media (max-width: 768px) {
    .hero-bg-blue {
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
    }
    .hero-bg-white {
        display: none !important;
    }
    .hero-bg-overlay {
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
    }
}

/* Desktop: Split backgrounds */
@media (min-width: 769px) {
    /* LTR (English): Blue left (text), White right (product box) */
    .hero-bg-blue {
        left: 0 !important;
        right: auto !important;
    }

    .hero-bg-white {
        left: 50% !important;
        right: 0 !important;
    }

    .hero-bg-overlay {
        left: 0 !important;
        right: auto !important;
    }

    /* RTL (Arabic): White left (product box), Blue right (text) */
    [dir="rtl"] .hero-bg-blue {
        left: 50% !important;
        right: 0 !important;
    }

    [dir="rtl"] .hero-bg-white {
        left: 0 !important;
        right: 50% !important;
    }

    [dir="rtl"] .hero-bg-overlay {
        left: 50% !important;
        right: 0 !important;
    }
}
/* Cache buster: 1762365838 */
