/* Enhanced Styles for Fatoorix - Saudi-focused ERP */

/* Updated Color Palette for Saudi Market */
:root {
    --primary-color: #4f46e5;
    --primary-dark: #3730a3;
    --secondary-color: #10b981;
    --secondary-dark: #059669;
    --accent-color: #f59e0b;
    --accent-dark: #d97706;
    --saudi-green: #006c35;
    --saudi-gold: #ffd700;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --bg-color: #ffffff;
    --bg-light: #f9fafb;
    --bg-dark: #111827;
    --border-color: #e5e7eb;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius: 0.5rem;
    --radius-lg: 1rem;
    
    /* RTL Support */
    --font-family-en: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-family-ar: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

body {
    font-family: var(--font-family-en);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-light);
}

html[lang="ar"] body {
    font-family: var(--font-family-ar);
    direction: rtl;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Enhanced Header */
#main-header {
    background-color: var(--bg-color);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.3s ease;
}

#main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
}

.logo h1 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-color);
}

.logo span {
    color: var(--primary-color);
}

nav ul {
    display: flex;
    gap: 2rem;
    align-items: center;
}

nav a {
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:hover, nav a.active {
    color: var(--primary-color);
}

.btn-portal, .btn-login {
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-portal {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-portal:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-login {
    background-color: var(--primary-color);
    color: white;
}

.btn-login:hover {
    background-color: var(--primary-dark);
}

/* Language Selector */
.language-select {
    padding: 0.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    background-color: var(--bg-color);
    font-size: 0.875rem;
    cursor: pointer;
    outline: none;
    transition: border-color 0.3s ease;
}

.language-select:focus {
    border-color: var(--primary-color);
}

/* Enhanced Hero Section */
.hero {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--bg-color) 0%, var(--bg-light) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(45deg, rgba(79, 70, 229, 0.05) 0%, rgba(16, 185, 129, 0.05) 100%);
    z-index: 1;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: var(--radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
    box-shadow: var(--shadow);
}

.btn-secondary:hover {
    background-color: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Hero Features */
.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.feature-tag {
    display: flex;
    align-items: center;
    background-color: rgba(79, 70, 229, 0.1);
    padding: 0.75rem 1.25rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-color);
    border: 1px solid rgba(79, 70, 229, 0.2);
    transition: all 0.3s ease;
}

.feature-tag:hover {
    background-color: rgba(79, 70, 229, 0.15);
    transform: translateY(-2px);
}

.feature-tag i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

/* Trust Badges */
.trust-badges {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    align-items: center;
}

.badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    font-size: 0.875rem;
    font-weight: 500;
}

.trust-logo {
    width: 24px;
    height: 24px;
}

/* ZATCA Compliance Section */
.zatca-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--saudi-green) 0%, var(--primary-color) 100%);
    color: white;
}

.zatca-section .section-header h2,
.zatca-section .section-header p {
    color: white;
}

.zatca-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.zatca-card {
    background-color: white;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.zatca-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.zatca-card.featured {
    border: 3px solid var(--saudi-gold);
    transform: scale(1.05);
}

.featured-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--saudi-gold);
    color: var(--text-color);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.zatca-icon {
    font-size: 3rem;
    color: var(--saudi-green);
    margin-bottom: 1.5rem;
}

.zatca-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.zatca-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.zatca-features {
    list-style: none;
}

.zatca-features li {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.zatca-features i {
    color: var(--saudi-green);
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

/* Saudi Features Section */
.saudi-features {
    padding: 6rem 0;
    background-color: var(--bg-light);
}

.saudi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.saudi-card {
    background-color: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
    border-top: 4px solid var(--saudi-green);
}

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

.saudi-icon {
    font-size: 2.5rem;
    color: var(--saudi-green);
    margin-bottom: 1.5rem;
}

.saudi-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.saudi-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Enhanced Features Section */
.features {
    padding: 6rem 0;
    background-color: var(--bg-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: white;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-color);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-left-color: var(--secondary-color);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Enhanced Pricing Section */
.pricing {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--bg-light) 0%, white 100%);
}

.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2rem;
    gap: 1rem;
    background-color: white;
    padding: 0.5rem;
    border-radius: 2rem;
    box-shadow: var(--shadow);
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.toggle {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-color);
    transition: 0.4s;
    border-radius: 30px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(30px);
}

.discount {
    background-color: var(--accent-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.pricing-card {
    background-color: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

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

.pricing-card.popular {
    border: 3px solid var(--primary-color);
    transform: scale(1.05);
}

.popular-tag {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 2rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 0 0 1rem 1rem;
}

.pricing-header {
    padding: 2rem;
    text-align: center;
    background: linear-gradient(135deg, var(--bg-light) 0%, white 100%);
}

.pricing-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
}

.currency {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-light);
}

.amount {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
}

.period {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-light);
}

.annual-note {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

.pricing-body {
    padding: 2rem;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
}

.pricing-features li {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.pricing-features i {
    color: var(--secondary-color);
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

.pricing-action {
    text-align: center;
}

/* About Section */
.about {
    padding: 6rem 0;
    background-color: var(--bg-color);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.about-text p {
    font-size: 1.125rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.stat {
    text-align: center;
    padding: 1.5rem;
    background-color: var(--bg-light);
    border-radius: var(--radius-lg);
}

.stat h3 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat p {
    color: var(--text-light);
    font-weight: 600;
}

.about-image {
    display: flex;
    justify-content: center;
}

.team-img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 100%;
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background-color: var(--bg-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    background-color: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.contact-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-item h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.contact-item p {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.contact-form {
    background-color: white;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: border-color 0.3s ease;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Footer */
footer {
    background-color: var(--bg-dark);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-about h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.footer-about span {
    color: var(--primary-color);
}

.footer-about p {
    color: #9ca3af;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.footer-certifications {
    display: flex;
    gap: 1rem;
}

.cert-logo {
    width: 60px;
    height: 40px;
    object-fit: contain;
}

.footer-links h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #9ca3af;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(79, 70, 229, 0.1);
    border-radius: 50%;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.footer-contact p {
    color: #9ca3af;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-badges {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-badges .badge {
    background-color: rgba(79, 70, 229, 0.1);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(79, 70, 229, 0.2);
}

/* WhatsApp Widget */
.whatsapp-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
}

.whatsapp-widget a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

.whatsapp-widget a:hover {
    transform: scale(1.1);
    box-shadow: 0 20px 25px -5px rgba(37, 211, 102, 0.4);
}

/* Mobile Menu */
.mobile-menu-button {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    z-index: 200;
    padding: 2rem;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.mobile-menu.show {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.mobile-menu-close {
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
}

.mobile-menu ul {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-menu a {
    font-size: 1.25rem;
    color: var(--text-color);
    font-weight: 500;
    display: block;
    padding: 0.5rem 0;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.reveal.show {
    opacity: 1;
    transform: translateY(0);
}

.stagger-fade-in > * {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.stagger-fade-in.show > * {
    opacity: 1;
    transform: translateY(0);
}

.stagger-fade-in.show > *:nth-child(1) { transition-delay: 0.1s; }
.stagger-fade-in.show > *:nth-child(2) { transition-delay: 0.2s; }
.stagger-fade-in.show > *:nth-child(3) { transition-delay: 0.3s; }
.stagger-fade-in.show > *:nth-child(4) { transition-delay: 0.4s; }
.stagger-fade-in.show > *:nth-child(5) { transition-delay: 0.5s; }
.stagger-fade-in.show > *:nth-child(6) { transition-delay: 0.6s; }
.stagger-fade-in.show > *:nth-child(7) { transition-delay: 0.7s; }
.stagger-fade-in.show > *:nth-child(8) { transition-delay: 0.8s; }

/* Floating Elements */
.floating-element-1 {
    animation: float 6s ease-in-out infinite;
}

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

.floating-element {
    position: absolute;
    background-color: white;
    padding: 1rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-color);
    animation: float 4s ease-in-out infinite;
}

.floating-element-2 {
    top: 20%;
    right: 10%;
    animation-delay: -2s;
}

.floating-element-3 {
    bottom: 20%;
    right: 20%;
    animation-delay: -4s;
}

.floating-element i {
    color: var(--primary-color);
    font-size: 1.25rem;
}

/* RTL Support */
html[dir="rtl"] .feature-tag i {
    margin-right: 0;
    margin-left: 0.5rem;
}

html[dir="rtl"] .zatca-features i,
html[dir="rtl"] .pricing-features i {
    margin-right: 0;
    margin-left: 0.75rem;
}

html[dir="rtl"] .hero .container {
    grid-template-columns: 1fr 1fr;
}

html[dir="rtl"] .about-content {
    grid-template-columns: 1fr 1fr;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero .container,
    .about-content,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .pricing-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .zatca-grid,
    .saudi-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    nav {
        display: none;
    }
    
    .mobile-menu-button {
        display: block;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .hero {
        padding: 4rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .hero-features {
        justify-content: center;
    }
    
    .trust-badges {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .whatsapp-widget {
        bottom: 1rem;
        right: 1rem;
    }
    
    .whatsapp-widget a {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }
    
    .feature-card,
    .zatca-card,
    .saudi-card {
        padding: 1.5rem;
    }
    
    .pricing-card {
        margin: 0 1rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
}

/* Print Styles */
@media print {
    .whatsapp-widget,
    .mobile-menu-button,
    .mobile-menu {
        display: none !important;
    }
    
    body {
        background-color: white !important;
        color: black !important;
    }
    
    .hero,
    .features,
    .zatca-section,
    .saudi-features,
    .pricing,
    .about,
    .contact {
        page-break-inside: avoid;
    }
}


/* Enhanced Pricing Section Styles - 6 Tiles Layout */
.pricing {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 100px 0;
    position: relative;
}

.pricing::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 200"><polygon fill="%23ffffff" fill-opacity="0.1" points="0,200 1000,0 1000,200"/></svg>') no-repeat center;
    background-size: cover;
}

.pricing .container {
    position: relative;
    z-index: 2;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 25px;
    max-width: 1500px;
    margin: 0 auto;
}

/* First row - 3 cards */
.pricing-card:nth-child(1),
.pricing-card:nth-child(2),
.pricing-card:nth-child(3) {
    grid-row: 1;
}

/* Second row - 3 cards */
.pricing-card:nth-child(4),
.pricing-card:nth-child(5),
.pricing-card:nth-child(6) {
    grid-row: 2;
}

.pricing-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    max-width: none;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pricing-card:hover::before {
    opacity: 1;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(79, 70, 229, 0.15);
    border-color: #4f46e5;
}

.pricing-card.popular {
    border-color: #4f46e5;
    transform: scale(1.02);
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.pricing-card.popular::before {
    opacity: 1;
    height: 8px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed, #ec4899);
}

.pricing-card.popular .pricing-header {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
}

.pricing-header {
    padding: 25px;
    text-align: center;
    background: #f8fafc;
    position: relative;
}

.pricing-header h3 {
    margin: 0 0 8px;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.pricing-card.popular .pricing-header h3 {
    color: white;
}

.pricing-price {
    font-size: 2rem;
    font-weight: 800;
    color: #4f46e5;
    line-height: 1;
}

.pricing-card.popular .pricing-price {
    color: white;
}

.pricing-price span {
    font-size: 0.9rem;
    font-weight: 500;
    color: #6b7280;
    margin-left: 5px;
}

.pricing-card.popular .pricing-price span {
    color: rgba(255, 255, 255, 0.8);
}

.popular-badge {
    background: linear-gradient(135deg, #ec4899, #f59e0b);
    color: white;
    font-size: 0.7rem;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3);
    animation: pulse 2s infinite;
}

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

.pricing-body {
    padding: 0 25px 25px;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 380px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #4f46e5 #f1f5f9;
}

.pricing-features::-webkit-scrollbar {
    width: 6px;
}

.pricing-features::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.pricing-features::-webkit-scrollbar-thumb {
    background: #4f46e5;
    border-radius: 3px;
}

.pricing-features li {
    display: flex;
    align-items: center;
    padding: 5px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.9rem;
    color: #4b5563;
    transition: all 0.2s ease;
    line-height: 1.3;
}

.pricing-features li:hover {
    background-color: #f8fafc;
    padding-left: 8px;
    color: #1e293b;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features i {
    color: #10b981;
    margin-right: 10px;
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* Highlight key differences */
.pricing-features li.highlight {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    border-radius: 6px;
    padding: 8px 12px;
    margin: 3px 0;
    font-weight: 600;
    box-shadow: 0 3px 12px rgba(79, 70, 229, 0.2);
    animation: glow 3s ease-in-out infinite alternate;
}

.pricing-features li.highlight i {
    color: #fbbf24;
}

@keyframes glow {
    from { box-shadow: 0 3px 12px rgba(79, 70, 229, 0.2); }
    to { box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4); }
}

.pricing-action {
    padding: 0 25px 25px;
}

.pricing-action .btn {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.pricing-action .btn-primary {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.3);
}

.pricing-action .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(79, 70, 229, 0.4);
    background: linear-gradient(135deg, #4338ca, #6d28d9);
}

.pricing-action .btn-secondary {
    background: #f8fafc;
    color: #4f46e5;
    border: 2px solid #4f46e5;
}

.pricing-action .btn-secondary:hover {
    background: #4f46e5;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.3);
}

.pricing-footer {
    margin-top: 50px;
    padding: 35px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.pricing-footer p {
    color: #6b7280;
    margin-bottom: 12px;
    font-size: 1.05rem;
}

.pricing-footer .text-primary {
    color: #4f46e5;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.2s ease;
}

.pricing-footer .text-primary:hover {
    color: #7c3aed;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1400px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto auto auto;
        gap: 20px;
    }
    
    .pricing-card:nth-child(1) { grid-column: 1; grid-row: 1; }
    .pricing-card:nth-child(2) { grid-column: 2; grid-row: 1; }
    .pricing-card:nth-child(3) { grid-column: 1; grid-row: 2; }
    .pricing-card:nth-child(4) { grid-column: 2; grid-row: 2; }
    .pricing-card:nth-child(5) { grid-column: 1; grid-row: 3; }
    .pricing-card:nth-child(6) { grid-column: 2; grid-row: 3; }
    
    .pricing-card.popular {
        transform: none;
    }
}

@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(6, auto);
        gap: 15px;
    }
    
    .pricing-card:nth-child(n) {
        grid-column: 1;
    }
    
    .pricing-card:nth-child(1) { grid-row: 1; }
    .pricing-card:nth-child(2) { grid-row: 2; }
    .pricing-card:nth-child(3) { grid-row: 3; }
    .pricing-card:nth-child(4) { grid-row: 4; }
    .pricing-card:nth-child(5) { grid-row: 5; }
    .pricing-card:nth-child(6) { grid-row: 6; }
    
    .pricing-card.popular {
        transform: none;
    }
    
    .pricing-features {
        max-height: 250px;
    }
    
    .pricing {
        padding: 60px 0;
    }
    
    .pricing-header h3 {
        font-size: 1.2rem;
    }
    
    .pricing-price {
        font-size: 1.8rem;
    }
}
