/* ========================================
   RASAYD ERP - Complete Light Design System
   ======================================== */

/* 1. CSS Variables - Light Theme */
:root {
    /* Primary Brand Colors */
    --primary: #10B981;
    --primary-dark: #059669;
    --primary-light: #34D399;
    --primary-lighter: #A7F3D0;
    --primary-lightest: #ECFDF5;

    /* Accent Colors */
    --accent-blue: #3B82F6;
    --accent-purple: #8B5CF6;
    --accent-orange: #F59E0B;
    --accent-red: #EF4444;

    /* Neutral Palette */
    --white: #FFFFFF;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;

    /* Text Colors */
    --text-primary: #1F2937;
    --text-secondary: #4B5563;
    --text-muted: #6B7280;
    --text-light: #9CA3AF;

    /* Background Colors */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F9FAFB;
    --bg-tertiary: #F3F4F6;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #10B981 0%, #34D399 100%);
    --gradient-light: linear-gradient(180deg, #FFFFFF 0%, #F9FAFB 100%);
    --gradient-radial: radial-gradient(circle at top right, #ECFDF5 0%, #FFFFFF 50%);

    /* Shadows */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 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);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-soft: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
    --shadow-colored: 0 10px 40px -10px rgba(16, 185, 129, 0.2);

    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;
    --radius-full: 9999px;

    /* Spacing */
    --section-padding: 6rem;
    --container-padding: 2rem;
}

/* 2. Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* RTL Support */
[dir="rtl"] body {
    font-family: 'Cairo', 'Inter', sans-serif;
}

/* 3. Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
}

p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.lead {
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1.8;
}

/* 4. Loading Screen */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

.loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 5. Navigation */
.navbar-custom {
    background: var(--bg-primary);
    box-shadow: var(--shadow-xs);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-custom.scrolled {
    box-shadow: var(--shadow-sm);
    padding: 0.75rem 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.navbar-brand img {
    height: 36px;
    width: auto;
    transition: all 0.3s ease;
}

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-nav .nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    padding: 0.5rem 1.25rem !important;
    margin: 0 0.25rem;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--primary) !important;
    background-color: var(--primary-lightest);
}

.navbar-nav .nav-link.active {
    color: var(--primary) !important;
    background-color: var(--primary-lightest);
}

.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-lg);
    padding: 0.5rem;
    margin-top: 0.5rem;
}

.dropdown-item {
    border-radius: var(--radius-md);
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
    color: var(--text-secondary);
}

.dropdown-item:hover {
    background: var(--gray-100);
    color: var(--primary);
}

/* 6. Buttons */
.btn {
    font-weight: 600;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-lg);
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn i {
    font-size: 1.125rem;
}

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

.btn-primary-custom:hover,
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -10px rgba(16, 185, 129, 0.3);
    color: white;
}

.btn-secondary {
    background: var(--gray-100);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: var(--gray-200);
    transform: translateY(-2px);
}

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

.btn-white:hover {
    background: var(--gray-50);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

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

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

.btn-outline-light {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.btn-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
}

/* 7. Hero Section */
.hero-section {
    background: var(--gradient-radial);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%2310B981' fill-opacity='0.03'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-lightest);
    color: var(--primary);
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-badge i {
    font-size: 1rem;
}

.hero-title {
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

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

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2rem;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.hero-feature i {
    width: 20px;
    height: 20px;
    background: var(--primary-lightest);
    color: var(--primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    height: auto;
    filter: drop-shadow(var(--shadow-2xl));
    border-radius: var(--radius-lg);
}

/* Floating Cards */
.floating-card {
    position: absolute;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-100);
    animation: float 6s ease-in-out infinite;
    z-index: 20;
}

.floating-card-1 {
    top: 10%;
    left: -20px;
    animation-delay: 0s;
}

.floating-card-2 {
    bottom: 20%;
    right: -20px;
    animation-delay: 3s;
}

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

.floating-card .d-flex {
    align-items: center;
    gap: 1rem;
}

.floating-card .feature-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-lightest);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.floating-card small {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: block;
}

.floating-card strong {
    font-size: 1.25rem;
    color: var(--text-primary);
    font-weight: 700;
}

/* 8. Features Section */
.features-section {
    padding: var(--section-padding) 0;
    background: var(--bg-secondary);
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-lightest);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.feature-card {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    transition: all 0.3s ease;
    border: 1px solid var(--gray-100);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon i {
    font-size: 1.75rem;
    color: white;
}

.feature-card h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

/* 9. Stats Section */
.stats-section {
    padding: 4rem 0;
    background: var(--bg-primary);
    position: relative;
}

.stats-container {
    background: var(--gradient-light);
    border-radius: var(--radius-2xl);
    padding: 3rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--gray-100);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.5rem;
    font-family: 'Inter', monospace;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

/* 10. Pricing Section */
/* Pricing Table Styles */
.pricing-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.pricing-table-wrapper {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-top: 40px;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
}

.pricing-table th,
.pricing-table td {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
}

.feature-column {
    text-align: left !important;
    width: 30%;
    background-color: #f8f9fa;
}

.plan-column {
    width: 23.33%;
    vertical-align: top;
    border-left: 1px solid #e9ecef;
}

.plan-column.featured {
    background-color: #f0f6ff;
}

.plan-header {
    padding: 30px 20px;
}

.plan-name {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
}

.best-value {
    display: inline-block;
    background: #28a745;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 15px;
}

.plan-price {
    margin-bottom: 10px;
}

.price-amount {
    font-size: 48px;
    font-weight: 700;
    color: #333;
}

.price-currency {
    font-size: 18px;
    color: #666;
}

.price-period {
    font-size: 16px;
    color: #666;
}

.yearly-price {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.yearly-amount {
    font-weight: 600;
    color: #333;
}

.plan-description {
    font-size: 14px;
    color: #666;
    margin-top: 10px;
}

/* Billing Toggle */
.billing-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
}

.billing-label {
    font-size: 14px;
    color: #666;
}

.billing-yearly {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.save-text {
    display: block;
    font-size: 12px;
    color: #28a745;
    font-weight: 500;
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

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

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: #28a745;
}

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

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Section Headers */
.section-header-row td {
    background-color: #f8f9fa;
    padding: 15px 20px;
    font-weight: 600;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

.section-title {
    margin: 0;
    font-size: 18px;
    color: #333;
}

/* Features */
.feature-name {
    text-align: left !important;
    font-weight: 500;
    color: #333;
    padding-left: 30px !important;
}

.bi-check-lg {
    font-size: 20px;
}

.bi-x-lg {
    font-size: 18px;
    opacity: 0.3;
}

.bi-info-circle {
    font-size: 14px;
    color: #666;
    margin-left: 5px;
    cursor: help;
}

/* Action Row */
.action-row {
    background-color: #f8f9fa;
}

.action-row td {
    padding: 30px 20px;
    border-bottom: none;
}

/* Responsive */
@media (max-width: 991px) {
    .pricing-table-wrapper {
        overflow-x: auto;
    }

    .pricing-table {
        min-width: 800px;
    }
}

.billing-info {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.billing-amount {
    font-weight: 600;
    color: #333;
}

.monthly-price, .yearly-price-main {
    transition: opacity 0.3s ease;
}

/* Ensure proper display when hidden/shown */
.monthly-price[style*="display: none"],
.yearly-price-main[style*="display: none"],
.monthly-billing-info[style*="display: none"],
.yearly-billing-info[style*="display: none"] {
    display: none !important;
}

/* Billing Toggle */
.billing-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-start;
    padding: 10px 20px;
}

.billing-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.billing-yearly {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
}

.save-text {
    display: block;
    font-size: 12px;
    color: #28a745;
    font-weight: 500;
}

/* Price Display */
.price-decimal {
    font-size: 18px;
}

.billing-info {
    font-size: 14px;
    color: #666;
    margin-top: 10px;
}

.billing-text {
    color: #666;
}

.billing-amount {
    font-weight: 600;
    color: #333;
}

.billing-period {
    color: #666;
}

[dir="rtl"] .section-header-row td, [dir="rtl"] .feature-name {
    text-align: right !important;
}

/* 11. CTA Section */
.cta-section {
    padding: var(--section-padding) 0;
    background: var(--gradient-radial);
    text-align: center;
}

.cta-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0.5;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%2310B981' fill-opacity='0.05'%3E%3Cpath d='M0 0h100v100H0z'/%3E%3C/g%3E%3C/svg%3E");
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.cta-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* 11. Contact Section */
.contact-section {
    padding: var(--section-padding) 0;
    background: var(--bg-secondary);
}

.contact-info-card {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    height: 100%;
    box-shadow: var(--shadow-soft);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-lightest);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.contact-form {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-soft);
}

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

.form-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.form-control {
    background: var(--bg-secondary);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.2s ease;
    width: 100%;
}

.form-control:focus {
    background: var(--bg-primary);
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* 13. Footer */
.footer {
    background: var(--bg-secondary);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--gray-200);
}

.footer-content {
    padding-bottom: 2rem;
}

.footer-brand img {
    height: 40px;
    margin-bottom: 1rem;
}

.footer-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.footer-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 0.875rem;
}

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

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--gray-100);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    text-decoration: none;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid var(--gray-200);
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* 14. Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* 15. Utilities */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%2310B981' fill-opacity='0.03'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
}

/* Skip to content link */
.skip-to-content {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    z-index: 9999;
    transition: top 0.3s ease
}

.skip-to-content:focus {
    top: 20px;
}

/* 16. Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.6s ease;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.6s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* 17. AOS Custom Animations */
[data-aos="fade-up"] {
    transform: translateY(30px);
}

[data-aos="fade-down"] {
    transform: translateY(-30px);
}

[data-aos="fade-right"] {
    transform: translateX(-30px);
}

[data-aos="fade-left"] {
    transform: translateX(30px);
}

[data-aos="zoom-in"] {
    transform: scale(0.9);
}

/* 18. Form Validation States */
.was-validated .form-control:valid {
    border-color: var(--primary);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2310B981' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.was-validated .form-control:invalid {
    border-color: var(--accent-red);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23EF4444'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23EF4444' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: var(--accent-red);
}

.was-validated .form-control:invalid ~ .invalid-feedback {
    display: block;
}

/* 19. Responsive Design */
@media (max-width: 1199px) {
    .pricing-card.featured {
        transform: none;
    }

    .floating-card-1 {
        left: -10px;
    }

    .floating-card-2 {
        right: -10px;
    }
}

@media (max-width: 991px) {
    .navbar-collapse {
        background: var(--bg-primary);
        padding: 1rem;
        margin-top: 1rem;
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-lg);
    }

    .navbar-nav {
        padding: 1rem 0;
    }

    .navbar-nav .nav-link {
        margin: 0.25rem 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-section {
        text-align: center;
    }

    .hero-features {
        justify-content: center;
    }

    .pricing-card.featured {
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 4rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .floating-card {
        display: none;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .pricing-price {
        font-size: 2.5rem;
    }

    .cta-title {
        font-size: 2rem;
    }

    .footer-content {
        text-align: center;
    }

    .social-links {
        justify-content: center;
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    .btn-lg {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 0.375rem 0.875rem;
    }

    .feature-card {
        padding: 2rem;
    }

    .pricing-header {
        padding: 1.5rem;
    }

    .pricing-body {
        padding: 1.5rem;
    }

    .contact-info,
    .contact-form {
        padding: 2rem;
    }
}

/* 20. Print Styles */
@media print {
    .navbar,
    .hero-pattern,
    .floating-card,
    .cta-section,
    .footer,
    .btn,
    .social-links,
    #back-to-top {
        display: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
        color: black;
    }

    .container {
        max-width: 100%;
    }

    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
        color: black;
    }

    .pricing-card,
    .feature-card {
        page-break-inside: avoid;
    }
}

/* 21. Accessibility */
*:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

*:focus:not(:focus-visible) {
    outline: none;
}

*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary: #0E7854;
        --text-primary: #000000;
        --bg-primary: #FFFFFF;
        --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.3);
    }

    .btn-primary-custom {
        border: 2px solid transparent;
    }

    .feature-card,
    .pricing-card {
        border-width: 2px;
        border-color: var(--gray-400);
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .floating-card {
        animation: none;
    }
}

/* 22. Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: var(--radius-full);
    border: 3px solid var(--gray-100);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--gray-400) var(--gray-100);
}

/* 23. Additional Components */

/* Badges */
.badge {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-primary {
    background: var(--primary-lightest);
    color: var(--primary);
}

.badge-secondary {
    background: var(--gray-100);
    color: var(--text-secondary);
}

/* Cards */
.card {
    background: var(--bg-primary);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-md);
}

/* Tooltips */
.tooltip-custom {
    position: relative;
}

.tooltip-custom::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) scale(0);
    background: var(--gray-800);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    white-space: nowrap;
    pointer-events: none;
    transition: transform 0.2s ease;
    z-index: 1000;
}

.tooltip-custom:hover::after {
    transform: translateX(-50%) scale(1);
}

/* Progress Bars */
.progress {
    height: 8px;
    background: var(--gray-200);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: width 1s ease;
}

/* Dividers */
.divider {
    height: 1px;
    background: var(--gray-200);
    margin: 3rem 0;
    position: relative;
}

.divider-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-primary);
    padding: 0 1rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* 24. Hero Gradient Overlay */
.hero-section::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    top: -300px;
    right: -300px;
    z-index: 1;
}

.hero-section::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -200px;
    left: -200px;
    z-index: 1;
}

/* 25. Final Touch-ups */

/* Logo Easter Egg */
.logo-easter-egg {
    transition: transform 0.3s ease;
}

.logo-easter-egg:hover {
    transform: rotate(360deg) scale(1.1);
}

/* Smooth transitions for all interactive elements */
a,
button,
input,
textarea,
select {
    transition: all 0.2s ease;
}

/* Better image rendering */
img {
    max-width: 100%;
    height: auto;
    image-rendering: -webkit-optimize-contrast;
}

/* Prevent text selection on buttons */
.btn,
.nav-link,
.navbar-brand {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Custom selection colors */
::selection {
    background: var(--primary-light);
    color: white;
}

::-moz-selection {
    background: var(--primary-light);
    color: white;
}

/* Ensure proper spacing for last elements */
section:last-child {
    margin-bottom: 0;
}

p:last-child {
    margin-bottom: 0;
}

/* Fix for iOS tap highlight */
* {
    -webkit-tap-highlight-color: transparent;
}

/* Ensure forms look good on all browsers */
input,
textarea,
select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* RTL Support Adjustments */
[dir="rtl"] .floating-card-1 {
    left: auto;
    right: -20px;
}

[dir="rtl"] .floating-card-2 {
    right: auto;
    left: -20px;
}

[dir="rtl"] .hero-feature i {
    margin-right: 0;
    margin-left: 0.5rem;
}

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

[dir="rtl"] .contact-icon {
    margin-right: 0;
    margin-left: 1.5rem;
}

[dir="rtl"] .form-check-label {
    margin-left: 0;
    margin-right: 0.5rem;
}