
/* Enhanced Base Styles with Brand Colors */
:root {
    --primary: #0052A2; /* Main brand blue */
    --primary-light: #1E90FF; /* Light blue */
    --primary-dark: #003366; /* Dark blue */
    --secondary: #F8F9FA; /* Light background */
    --secondary-dark: #E8F0F9; /* Slightly darker background */
    --accent: #FFD700; /* Gold accent */
    --accent-light: #FFE55C; /* Light gold */
    --dark: #2B2B2B; /* Dark text */
    --dark-light: #4A5568; /* Light text */ 
    --light: #FFFFFF; /* White */
    --success: #4BB543;
    --warning: #FFCC00;
    --danger: #FF3333;
    --gray: #718096;
    --gray-light: #E2E8F0;
    --border-radius: 12px;
    --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Typography */
body {
    font-family: 'Tajawal', sans-serif;
    color: white; /* Changed to white */
    background-color: var(--secondary);
    line-height: 1.6;
}
h1, h2, h3, h4, h5, h6 {
    color: white; /* Changed to white */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
p {
    margin-bottom: 1.5rem;
    color: white; /* Changed to white */
}
/* Marquee Animation */
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.marquee {
    display: flex;
    align-items: center;
    gap: 4rem;
    animation: marquee 30s linear infinite;
    padding: 1.5rem 0;
    width: max-content;
}

.marquee-container {
    position: relative;
    overflow: hidden;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
    border-top: 1px solid rgba(255,255,255,0.2);
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.marquee img {
    height: 50px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%) brightness(1.5);
    transition: all 0.4s ease;
    opacity: 0.8;
}

.marquee img:hover {
    filter: grayscale(0) brightness(1);
    opacity: 1;
    transform: scale(1.15);
}

.marquee:after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, transparent 10%, transparent 90%, var(--primary) 100%);
    pointer-events: none;
}
/* AI Assistant Button */
#aiAssistant {
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 82, 162, 0.3);
}

#aiAssistant:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 8px 25px rgba(0, 82, 162, 0.4);
}
/* Category Cards */
.category-card {
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,82,162,0.1);
}

.category-card:hover {
    box-shadow: 0 10px 25px rgba(0,82,162,0.1);
    border-color: rgba(0,82,162,0.2);
}
:root {
    --primary: #009E60;
    --primary-light: #00C48C;
    --secondary: #1D6D4F;
    --secondary-light: #2D8F65;
    --accent: #FFD700;
    --accent-light: #FFE55C;
    --dark: #2B2B2B;
    --light: #F9F9F9;
    --success: #4BB543;
    --warning: #FFCC00;
    --danger: #FF3333;
    --gray: #718096;
    --gray-light: #e2e8f0;
}
.active {
    color: var(--primary);
    font-weight: 500;
}

body {
    font-family: 'Tajawal', sans-serif;
    background-color: var(--light);
}
/* Header & Navigation */
header {
    background-color: var(--light);
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-logo-icon {
    background-color: var(--primary);
    color: var(--light);
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: var(--transition);
}

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

.nav-logo-text span {
    color: var(--accent);
}

.nav-menu {
    display: flex;
    gap: 2rem;
}
.nav-link {
    color: white; /* Changed to white */
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}
.nav-link:hover {
    color: var(--primary);
}

.nav-link.active {
    color: var(--primary);
    font-weight: 700;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
}
/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
color: var(--light);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-text {
    z-index: 2;
}

.hero-title {
    font-size: 3rem;
    color: var(--light);
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

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

.hero-media {
    position: relative;
    z-index: 2;
}

.hero-image {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

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

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path fill="white" d="M0,0 L100,0 L100,100 L0,100 Z"></path></svg>');
    background-size: cover;
}
.app-screen {
    background: white;
    padding: 0.5rem;
    border-radius: 40px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
    transform-style: preserve-3d;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.app-screen:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.3);
}

.app-screen img {
    border-radius: 36px;
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

.app-screen:hover img {
    transform: scale(1.02);
}
/* Stats Section */
.stats-section {
    padding: 4rem 0;
    background-color: var(--light);
    position: relative;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}
.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--primary-light));
transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-light);
}

.stat-card:hover::before {
    width: 6px;
}

.stat-card .number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.stat-card:hover .number {
    color: var(--secondary);
}
/* Features Section */
.feature-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    margin: 0 auto 1.5rem;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 5px 15px rgba(0, 82, 162, 0.3);
}

.feature-icon:hover {
    transform: rotateY(180deg) scale(1.1);
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
}
.service-card {
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--gray-light);
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--primary-light));
transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-light);
}

.service-card:hover::after {
    transform: scaleX(1);
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}
/* How It Works Section */
.how-it-works {
    background-color: var(--light);
    position: relative;
    overflow: hidden;
}

.how-it-works::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(0, 82, 162, 0.05) 0%, rgba(255,255,255,0) 70%);
transform: translate(-50%, -50%);
    z-index: 0;
}

.step-item {
    position: relative;
    z-index: 1;
}
.step-item::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 50%;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--primary-light));
transform: translateX(-50%);
    z-index: -1;
}

.step-item:last-child::before {
    display: none;
}
.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
    box-shadow: 0 5px 15px rgba(0, 82, 162, 0.3);
transition: all 0.3s ease;
}

.step-item:hover .step-number {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 8px 20px rgba(29, 109, 79, 0.4);
}
/* SmartPay AI Styles */
smartpay-ai {
  animation: fadeInUp 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

/* Calculator Styles */
installment-calculator {
    display: block;
    margin: 2rem 0;
}

.calculator-container {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}
.calculator-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, #009E60, #00C48C);
}

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

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

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-light);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(29, 109, 79, 0.2);
    outline: none;
}

.btn-calculate {
    background: var(--primary);
    color: white;
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-calculate:hover {
    background: var(--primary-light);
}

.results {
    background: var(--light);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-top: 1.5rem;
    display: none;
    animation: fadeIn 0.5s ease-out;
}

.results p {
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
}

.results p span:first-child {
    font-weight: 600;
    color: var(--dark);
}

.results p span:last-child {
    color: var(--primary);
    font-weight: 600;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
installment-calculator {
    display: block;
    margin: 3rem auto;
    max-width: 500px;
    perspective: 1000px;
}

.installment-calculator .calculator-container {
    animation: fadeInUp 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    transition: all 0.5s ease;
}

.installment-calculator .calculator-container:hover {
    transform: translateY(-5px) rotateX(3deg);
}

@keyframes fadeInUp {
    from { 
        opacity: 0; 
        transform: translateY(30px) rotateX(-10deg);
    }
    to { 
        opacity: 1; 
        transform: translateY(0) rotateX(0);
    }
}

.calculator-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.calculator-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
}
/* Companies Styles */
custom-companies {
    display: block;
    margin: 3rem 0;
    position: relative;
}

.companies-container {
    position: relative;
    z-index: 1;
}

.company-card {
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid var(--gray-light);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.company-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(29, 109, 79, 0.1) 0%, rgba(255,255,255,0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.company-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-light);
}

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

.category-btn {
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-weight: 600;
}

.category-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.category-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary-light);
    box-shadow: 0 5px 15px rgba(29, 109, 79, 0.3);
}
/* Feature Cards */
.feature-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #1D6D4F 0%, #2D8F65 100%);
}

.feature-card {
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}
/* Section Styling */
.section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

.section-title p {
    max-width: 700px;
    margin: 0 auto;
    color: var(--dark-light);
}
/* Testimonials */
.testimonial-card {
    background: var(--light);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 5rem;
    color: rgba(0, 82, 162, 0.05);
font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-content {
    position: relative;
    z-index: 1;
}
.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    color: white; /* Changed to white */
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}
.testimonial-name {
    font-weight: 700;
    color: white; /* Changed to white */
}
.testimonial-role {
    font-size: 0.875rem;
    color: var(--gray);
}
/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
color: white;
}
.download-btn {
    transition: all 0.3s ease;
}
.installment-btn {
    background: var(--primary);
    color: white;
    transition: all 0.3s ease;
}

.installment-btn:hover {
    background: var(--primary-light);
transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(29, 109, 79, 0.3);
}
.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 82, 162, 0.3);
}
/* Footer */
footer {
    background-color: var(--dark);
    color: white;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path fill="rgba(255,255,255,0.05)" d="M0,0 L100,0 L100,100 L0,100 Z"></path></svg>');
    background-size: cover;
}

.footer-logo {
    position: relative;
    z-index: 1;
}

.footer-logo::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
}

.footer-links a {
    position: relative;
    transition: all 0.3s ease;
}

.footer-links a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: white;
    transition: width 0.3s ease;
}

.footer-links a:hover {
    padding-right: 10px;
}

.footer-links a:hover::before {
    width: 20px;
}
/* Responsive Adjustments */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-media {
        order: -1;
    }

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

    .nav-menu {
        display: none;
    }

    .mobile-menu-button {
        display: block;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.25rem;
    }

    .section {
        padding: 3rem 0;
    }

    .section-title h2 {
        font-size: 1.75rem;
    }
}

@media (max-width: 576px) {
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }
}
/* Video Styles */
video {
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: perspective(1000px) rotateX(5deg) rotateY(5deg);
}

video:hover {
    transform: perspective(1000px) rotateX(0) rotateY(0) scale(1.02);
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}

/* Animations */
@keyframes float {
0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

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

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

/* Transitions */
.smooth-transition {
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}
