:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #06b6d4;
    --accent: #3b82f6;
    --background: #f8fafc;
    --card-bg: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --border-radius: 12px;
    --box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

/* Optimize transitions for better performance */
* {
    transition: transform 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease;
}

/* Prevent forced reflows */
* {
    will-change: auto;
}

/* Removed deprecated font-size-adjust API (H1UserAgentFontSizeInSection) */
/* Use font-size property directly instead */

/* Optimize animations */
.floating {
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform;
}

/* Optimize DOM performance */
.container {
    contain: layout style;
}

.feature-card {
    contain: layout style;
}

.windows-image-container {
    contain: layout style;
}

/* Image optimization styles */
img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Prevent layout shifts */
img[width][height] {
    aspect-ratio: attr(width) / attr(height);
}

/* Logo specific styling */
.logo img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    display: block;
}

/* Responsive image sizing */
.feature-card img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.windows-screenshot {
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

/* Optimize image loading */
img[loading="lazy"] {
    content-visibility: auto;
}

/* Prevent CLS for all image containers */
.feature-card {
    min-height: 400px;
}

.windows-image-container {
    min-height: 400px;
}

.hero-image {
    min-height: 745px;
}

/* Ensure proper aspect ratios */
.feature-card img {
    aspect-ratio: 307 / 683;
}

.windows-screenshot {
    aspect-ratio: 531 / 287;
}

.hero-image img {
    aspect-ratio: 350 / 745;
}

/* Disable transitions for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none;
        animation: none;
    }
}

body {
    font-family: 'Tajawal', 'Arial', 'Helvetica', sans-serif;
    background-color: var(--background);
    color: var(--text-primary);
    line-height: 1.7;
    font-display: swap;
}

/* Font loading optimization */
@font-face {
    font-family: 'Tajawal';
    font-display: swap;
    font-style: normal;
    font-weight: 300 900;
}

/* Font Awesome optimization */
.fas, .fab, .far, .fal, .fad {
    font-display: swap;
}

.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styling */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    transition: all 0.4s ease;
}

header.scrolled {
    padding: 10px 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    width: 50px;
    height: auto;
}

.logo-text h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
}

.logo-text p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 1.1rem;
    position: relative;
    padding-bottom: 5px;
}

nav ul li a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary);
    left: 0;
    bottom: 0;
    transition: width 0.3s ease;
}

nav ul li a:hover:after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
}

/* Hero Section Styling */
.hero {
    padding-top: 120px;
    padding-bottom: 80px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    position: relative;
    overflow: hidden;
}

.hero-shape {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 70%;
    height: 120%;
    background: var(--primary);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    opacity: 0.1;
    transform: rotate(-5deg);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 5;
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 90%;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

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

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

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

.btn-outline:hover {
    background: rgba(37, 99, 235, 0.1);
}

.btn-youtube {
    background: #ff0000;
    color: white;
    border: 2px solid #ff0000;
}

.btn-youtube:hover {
    background: #cc0000;
    border-color: #cc0000;
}

.btn-youtube i {
    margin-left: 8px;
}

.hero-image {
    position: relative;
    text-align: center;
}

.hero-image img {
    width: 75%;
    max-width: 350px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.hero-image-container {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.hero-image {
    flex: 1;
    width: 75%;
    max-width: 350px;
}

@media (max-width: 768px) {
    .hero-image-container {
        flex-direction: column;
    }

    .hero-image {
        max-width: 100%;
        margin-bottom: 20px;
    }
}

.floating {
    animation: float 3s ease-in-out infinite;
    will-change: transform;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Optimize animations for better performance */
.feature-card:hover,
.service-card:hover,
.agent-card:hover {
    will-change: transform;
}

/* Improve scrolling performance */
.hero,
.features-info,
.windows-interface,
.demo,
.youtube-tutorials,
.download,
.pricing,
.agents,
.services,
.contact {
    contain: layout style paint;
}

/* Screen reader only text */
.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;
}

/* Skip links for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 6px;
}

/* Focus styles for better accessibility */
*:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Remove focus outline for mouse users */
*:focus:not(:focus-visible) {
    outline: none;
}

/* Ensure focus is visible for keyboard users */
*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Features Section */
.features {
    padding: 100px 0;
    position: relative;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

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

.feature-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.feature-icon {
    width: 70px;
    height: 70px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 20px auto;
    font-size: 2rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.feature-card p {
    color: var(--text-secondary);
}

.feature-card img {
    width: 100%;
    border-radius: 8px;
    margin-top: 20px;
    transition: transform 0.3s ease;
}

.feature-card:hover img {
    transform: scale(1.05);
}

/* Mobile Gallery Styles */
.mobile-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.mobile-image-container {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: white;
    padding: 15px;
    cursor: pointer;
}

.mobile-image-container:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
}

.mobile-image {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.mobile-screenshot {
    width: 100%;
    height: 350px;
    object-fit: contain;
    object-position: center;
    display: block;
    transition: transform 0.3s ease;
    background: #f8f9fa;
    border-radius: 8px;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.mobile-image-container:hover .mobile-screenshot {
    transform: scale(1.05);
}

.mobile-cta {
    text-align: center;
    margin-top: 40px;
}

.mobile-cta .btn {
    padding: 15px 40px;
    font-size: 1.1rem;
}

.mobile-cta .btn i {
    margin-left: 10px;
}

/* Features Info Section */
.features-info {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

/* Windows Interface Section */
.windows-interface {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.windows-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.windows-image-container {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: white;
    padding: 15px;
}

.windows-image-container:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
}

.windows-image {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.windows-screenshot {
    width: 100%;
    height: 400px;
    object-fit: contain;
    object-position: center;
    display: block;
    transition: transform 0.3s ease;
    background: #f8f9fa;
    border-radius: 8px;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.windows-image-container:hover .windows-screenshot {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    color: white;
    padding: 40px 20px 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    border-radius: 0 0 15px 15px;
}

.windows-image-container:hover .image-overlay {
    transform: translateY(0);
}

.image-overlay h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.image-overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
}

.hover-details {
    margin-top: 15px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.mobile-image-container:hover .hover-details {
    opacity: 1;
    transform: translateY(0);
}

.hover-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hover-details li {
    margin-bottom: 8px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hover-details li i {
    color: #22c55e;
    font-size: 0.8rem;
    min-width: 12px;
}

.windows-cta {
    text-align: center;
    margin-top: 40px;
}

.windows-cta .btn {
    padding: 15px 40px;
    font-size: 1.1rem;
}

.windows-cta .btn i {
    margin-left: 10px;
}

.image-overlay i {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    opacity: 0.8;
}

.windows-image-container {
    cursor: pointer;
}

/* Image Modal */
.image-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.modal-header {
    padding: 20px;
    background: var(--primary);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.close-modal {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.close-modal:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.modal-image {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    display: block;
}

/* Services Section */
.services {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.service-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
    border-color: var(--primary);
}

.service-card.featured {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(6, 182, 212, 0.05) 100%);
    transform: scale(1.05);
}

.service-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.service-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--primary);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 25px auto;
    font-size: 2.5rem;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

.service-card h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 25px;
    line-height: 1.6;
}

.service-features {
    list-style: none;
    text-align: right;
    margin: 25px 0;
    padding: 0;
}

.service-features li {
    margin-bottom: 12px;
    padding: 8px 15px;
    background: rgba(37, 99, 235, 0.05);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.service-features li:hover {
    background: rgba(37, 99, 235, 0.1);
    transform: translateX(-5px);
}

.service-features i {
    color: var(--success);
    font-size: 1rem;
    min-width: 16px;
}

.service-price {
    margin: 25px 0;
    padding: 20px;
    background: rgba(37, 99, 235, 0.05);
    border-radius: 12px;
    border: 2px solid rgba(37, 99, 235, 0.1);
}

.service-price .price {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary);
    display: block;
    margin-bottom: 5px;
}

.service-price .currency {
    font-size: 1rem;
    color: var(--text-secondary);
}

.services-cta {
    text-align: center;
    background: var(--card-bg);
    padding: 50px 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(37, 99, 235, 0.1);
}

.services-cta h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.services-cta p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.services-cta .btn {
    padding: 15px 40px;
    font-size: 1.1rem;
}

.services-cta .btn i {
    margin-left: 10px;
}

/* Demo Section */
.demo {
    padding: 100px 0;
    background: linear-gradient(135deg, #f3f4f6 0%, #f8fafc 100%);
}

/* YouTube Tutorials Section */
.youtube-tutorials {
    padding: 100px 0;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.youtube-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.youtube-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.youtube-video {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.youtube-video:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: #000;
    overflow: hidden;
}

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

.video-info {
    padding: 20px;
    text-align: center;
    background: white;
}

.video-info h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.3;
}

.video-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin: 40px 0;
}

.carousel-btn {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.carousel-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.youtube-cta {
    text-align: center;
    margin-top: 40px;
}

.youtube-cta .btn {
    padding: 15px 40px;
    font-size: 1.1rem;
}

.youtube-cta .btn i {
    margin-left: 10px;
}

.demo-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.demo-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.demo-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.demo-video {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.demo-video video {
    width: 100%;
    display: block;
}

/* Download Section */
.download {
    padding: 100px 0;
    text-align: center;
}

.download-options {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.download-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    flex: 1;
    min-width: 300px;
    max-width: 350px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.download-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.download-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.download-card p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.pricing {
    padding: 100px 0;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.pricing .feature-card {
    position: relative;
    border: 2px solid var(--primary);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.pricing .feature-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
}

.pricing-price {
    margin: 25px 0;
    position: relative;
}

.pricing-price p:first-child {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 8px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pricing-price span {
    font-size: 1.1rem;
    color: var(--text-secondary);
    display: block;
}

.pricing-price p:last-child {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-top: 10px;
    opacity: 0.9;
}

.pricing-features {
    list-style: none;
    text-align: right;
    margin: 25px 0;
}

.pricing-features li {
    margin-bottom: 15px;
    padding: 12px 20px;
    background: rgba(37, 99, 235, 0.05);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.pricing-features li:hover {
    background: rgba(37, 99, 235, 0.1);
    transform: translateX(-10px);
}

.pricing-features i {
    color: var(--success);
    font-size: 1.2rem;
    min-width: 25px;
}

/* Ribbon Effect */
.pricing .feature-card:nth-child(2)::after {
    opacity: 1;
}

/* Agents List */
.agents {
    padding: 80px 0;
}

.agents-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.agent-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.agent-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.agent-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background-color: #2563eb;
}

.agent-card h3 {
    font-size: 22px;
    color: #13304A;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.agent-card p {
    font-size: 16px;
    color: #555;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.agent-card i {
    color: #2563eb;
    width: 20px;
}

.agent-flag {
    width: 30px;
    height: 20px;
    margin-left: 10px;
    border-radius: 3px;
    object-fit: cover;
}

.loading {
    text-align: center;
    padding: 50px;
    font-size: 18px;
    color: #666;
    grid-column: 1 / -1;
}

.error {
    background-color: #ffebee;
    color: #c62828;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
    grid-column: 1 / -1;
}

.agent-email {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.agent-money {
    font-weight: bold;
    color: #13304A;
}

.image-container {
    width: 100%;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    overflow: hidden;
}

.agent-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    border: 2px solid #2563eb;
}

.no-image {
    width: 80px;
    height: 80px;
    background-color: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.no-image:after {
    content: '\f007';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 36px;
    color: #ccc;
}

/* Loading and Error States */
.loading {
    text-align: center;
    padding: 40px;
    font-size: 1.2rem;
    color: #7f8c8d;
}

.error {
    color: #e74c3c;
    padding: 40px;
    text-align: center;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Responsive Design */

/* Contact Section */
.contact {
    padding: 100px 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.contact-info {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 15px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.3rem;
}

.contact-text h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.contact-text p,
.contact-text a {
    color: var(--text-secondary);
    text-decoration: none;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    border-radius: 50%;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

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

.contact-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Footer */
footer {
    background: var(--primary);
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    color: rgb(5, 5, 5);
    padding: 60px 0 30px;
}

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

.footer-column h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 2px;
    background: var(--secondary);
}

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

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    font-size: 1.4rem;
    color: rgba(15, 15, 15, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: rgb(5, 5, 5);
    padding-right: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
}

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

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
}

@media (max-width: 768px) {
    .pricing-price p:first-child {
        font-size: 1.8rem;
    }

    .pricing-features li {
        padding: 10px 15px;
    }

    .pricing .feature-card::after {
        font-size: 0.8rem;
        left: -45px;
    }

    /* YouTube Tutorials Responsive */
    .youtube-tutorials {
        padding: 60px 0;
    }

    .youtube-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .video-info {
        padding: 15px;
    }

    .video-info h3 {
        font-size: 1rem;
    }

    .video-info p {
        font-size: 0.8rem;
    }

    .carousel-controls {
        gap: 20px;
        margin: 30px 0;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .youtube-cta .btn {
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    /* Improve touch targets for mobile */
    .btn {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Better spacing for mobile */
    .container {
        padding: 0 15px;
    }
    
    /* Improve readability on mobile */
    body {
        font-size: 16px;
        line-height: 1.6;
    }
    
    /* Better mobile navigation */
    nav ul {
        padding: 20px 0;
        gap: 15px;
    }
    
    nav ul li a {
        padding: 15px 20px;
        display: block;
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .agents-list {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .image-container {
        height: 120px;
    }

    .windows-gallery {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .windows-cta .btn {
        width: 100%;
        padding: 15px 20px;
    }

    .windows-screenshot {
        height: 250px;
    }

    .windows-image-container {
        padding: 10px;
    }

    .mobile-gallery {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .mobile-cta .btn {
        width: 100%;
        padding: 15px 20px;
    }

    .mobile-screenshot {
        height: 250px;
    }

    .mobile-image-container {
        padding: 10px;
    }

    .hover-details {
        opacity: 1;
        transform: translateY(0);
    }

    .hover-details li {
        font-size: 0.8rem;
    }

            /* YouTube Grid Mobile */
            .youtube-grid {
                grid-template-columns: 1fr;
                gap: 20px;
            }

            /* Services Responsive */
            .services-grid {
                grid-template-columns: 1fr;
                gap: 20px;
            }

            .service-card {
                padding: 30px 20px;
            }

            .service-card.featured {
                transform: none;
            }

            .service-card.featured:hover {
                transform: translateY(-10px);
            }

            .service-icon {
                width: 60px;
                height: 60px;
                font-size: 2rem;
            }

            .service-card h3 {
                font-size: 1.5rem;
            }

            .service-price .price {
                font-size: 1.5rem;
            }

            .services-cta {
                padding: 30px 20px;
            }

            .services-cta h3 {
                font-size: 1.5rem;
            }
        }

/* Media Queries */
@media (max-width: 1200px) {
    .hero-text h1 {
        font-size: 2.5rem;
    }
}

/* Critical CSS for above-the-fold content */
.hero {
    contain: layout style paint;
}

.hero-text h1 {
    font-display: swap;
}

/* Optimize font loading */
@font-face {
    font-family: 'Tajawal';
    font-display: swap;
}

/* Critical CSS - Above the fold styles only */
.hero {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding-top: 120px;
    padding-bottom: 80px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 5;
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Loading and error messages */
.loading-spinner, .loading {
    text-align: center;
    padding: 20px;
    font-size: 1.1rem;
    color: var(--primary);
    font-weight: 500;
}

.loading-spinner::after, .loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

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

.error-message, .error {
    text-align: center;
    padding: 20px;
    color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
    border-radius: var(--border-radius);
    margin: 20px 0;
}

/* Remove unused CSS classes */

/* Improve image loading */
img {
    max-width: 100%;
    height: auto;
}

/* Optimize for Core Web Vitals */
.hero-content {
    contain: layout;
}

.features-grid,
.services-grid,
.agents-list {
    contain: layout;
}

@media (max-width: 992px) {
    .hero-content,
    .demo-container,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .windows-gallery {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .windows-screenshot {
        height: 300px;
    }

    .mobile-gallery {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .mobile-screenshot {
        height: 300px;
    }

    .hero-image {
        order: -1;
    }

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

    .hero-text p {
        max-width: 100%;
    }

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

@media (max-width: 768px) {
    nav ul {
        position: fixed;
        top: 80px;
        right: -100%;
        flex-direction: column;
        background: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
        height: calc(100vh - 80px);
        overflow-y: auto;
    }

    nav ul.active {
        right: 0;
    }

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

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

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
        margin-bottom: 10px;
    }
}

@media (max-width: 576px) {
    .hero-text h1 {
        font-size: 2rem;
    }

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

    .btn {
        width: 100%;
    }

    .demo-text div {
        flex-direction: column !important;
    }

    .demo-text div .btn {
        width: 100%;
        margin-bottom: 10px;
    }

    .logo-text h1 {
        font-size: 1.5rem;
    }
}