/* ========================================
   برنت شيك - التصميم الرئيسي
   PrintCheque Professional Website
   Version: 2.0 - SEO Optimized
   ======================================== */

/* CSS Variables */
:root {
    --primary-color: #c41e3a;
    --primary-dark: #9a1830;
    --secondary-color: #1a2332;
    --accent-color: #d35400;
    --online-color: #2d4373;
    --online-dark: #1a2a47;
    --success-color: #1a5d2e;
    --text-color: #1a1a1a;
    --text-light: #333333;
    --bg-light: #f8f9fa;
    --bg-cream: #fdf8e3;
    --white: #ffffff;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --border-radius: 12px;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Cairo', sans-serif;
    font-display: swap;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}

/* Screen Reader Only */
.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;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 15px;
}

p {
    margin-bottom: 15px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

address {
    font-style: normal;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
    font-family: inherit;
}

.btn:focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(196, 30, 58, 0.4);
}

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

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

.btn-online {
    background: linear-gradient(135deg, var(--online-color), var(--online-dark));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(59, 89, 152, 0.3);
}

.btn-online:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(59, 89, 152, 0.4);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: var(--shadow);
    padding: 15px 0;
    transition: var(--transition);
}

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

.nav-brand {
    display: flex;
    align-items: center;
}

.nav-brand a {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-brand .logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 8px;
}

.brand-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-link {
    padding: 10px 18px;
    border-radius: 25px;
    font-weight: 500;
    color: var(--text-color);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    background: var(--primary-color);
    color: var(--white);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--primary-color);
    cursor: pointer;
    padding: 10px;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--bg-cream) 0%, #fff5cc 100%);
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-overlay {
    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 100 100"><circle cx="50" cy="50" r="1" fill="%23c41e3a" opacity="0.1"/></svg>');
    background-size: 30px 30px;
}

.hero-content {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 60px 0;
}

.hero-title {
    font-size: 60px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.hero-subtitle {
    font-size: 28px;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.hero-description {
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 35px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

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

.hero-image img {
    max-width: 400px;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.2));
    animation: float 3s ease-in-out infinite;
}

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

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.hero-wave svg {
    display: block;
    width: 100%;
    height: 120px;
    fill: var(--white);
}

/* Section Styles */
section {
    padding: 100px 0;
}

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

.section-title {
    font-size: 42px;
    color: var(--secondary-color);
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-light);
    margin-top: 15px;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    margin: 20px auto 0;
    border-radius: 2px;
}

/* About Section */
.about {
    background: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    font-size: 18px;
    color: var(--text-light);
    text-align: justify;
}

.about-highlights {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.highlight-item:hover {
    transform: translateX(-10px);
    box-shadow: var(--shadow);
}

.highlight-item i {
    font-size: 28px;
    color: var(--primary-color);
}

.highlight-item span {
    font-weight: 600;
    color: var(--secondary-color);
}

/* Features Section */
.features {
    background: var(--bg-light);
}

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

.feature-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.feature-icon i {
    font-size: 32px;
    color: var(--white);
}

.feature-card h3 {
    font-size: 22px;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--text-light);
    margin: 0;
}

/* Programs Section */
.programs {
    background: var(--white);
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.program-card {
    position: relative;
    background: var(--bg-light);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.program-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.program-card.featured {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
}

.program-card.featured h3,
.program-card.featured p {
    color: var(--white);
}

.program-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--primary-color);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(196, 30, 58, 0.3);
}

.program-icon {
    width: 70px;
    height: 70px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: var(--shadow);
}

.program-card.featured .program-icon {
    background: rgba(255, 255, 255, 0.2);
}

.program-icon i {
    font-size: 28px;
    color: var(--primary-color);
}

.program-card.featured .program-icon i {
    color: var(--white);
}

.program-card h3 {
    font-size: 20px;
    color: var(--secondary-color);
}

.program-card p {
    color: var(--text-light);
    margin: 0;
    font-size: 14px;
}

/* ========================================
   Final CSS - Matched with Original Site Structure
   ======================================== */

/* 1. Section Header - Inheriting from original site */
.products .section-header {
    text-align: center;
    margin-bottom: 60px;
}

.products .section-subtitle {
    font-size: 18px;
    color: var(--text-light);
    margin-top: 15px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* 2. Grid Layout */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* 3. Product Card - Matching program-card style */
.product-card {
    position: relative;
    background: var(--bg-light);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow);
}

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

/* Featured Card - Matching original featured style */
.product-card.featured {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
}

.product-card.featured h3,
.product-card.featured .price,
.product-card.featured .product-desc,
.product-card.featured .product-features li {
    color: var(--white) !important;
}

.product-card.featured .price span {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* 4. Typography inside cards */
.product-card h3 {
    font-size: 24px;
    margin-bottom: 10px;
    font-family: 'Cairo', sans-serif;
    font-display: swap;
}

.product-desc {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.price {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 25px;
    font-family: 'Cairo', sans-serif;
    font-display: swap;
}

.price span {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-light);
}

/* 5. Features List */
.product-features {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
    text-align: right;
    flex-grow: 1;
}

.product-features li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: var(--text-light);
}

.product-features li i {
    color: var(--success-color);
}

.product-card.featured .product-features li i {
    color: var(--white);
}

/* 6. Buttons - Using original site classes */
.product-card .btn {
    width: 100%;
    justify-content: center;
}

/* Ensuring secondary button visibility on light background */
.product-card:not(.featured) .btn-secondary {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.product-card:not(.featured) .btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Button style when inside a featured card */
.product-card.featured .btn-primary {
    background: var(--white);
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.product-card.featured .btn-primary:hover {
    background: var(--bg-cream);
    transform: translateY(-3px);
}

/* 7. Badge Styling - Improved for clarity */
.program-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent-color);
    color: var(--white);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 10;
    font-family: 'Cairo', sans-serif;
    font-display: swap;
    border: 1px solid rgba(255, 255, 255, 0.3);
    line-height: 1;
}

/* Screenshots Section */
.screenshots {
    background: var(--bg-light);
}

.screenshots-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.screenshot-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
    margin: 0;
}

.screenshot-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.screenshot-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(196, 30, 58, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.screenshot-overlay i {
    font-size: 40px;
    color: var(--white);
}

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

.screenshot-item:hover .screenshot-overlay {
    opacity: 1;
}

/* Online Section (Sister Website) */
.online-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.online-section::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 100 100"><circle cx="50" cy="50" r="2" fill="%23ffffff" opacity="0.05"/></svg>');
    background-size: 50px 50px;
}

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

.online-section .section-title {
    color: var(--white);
}

.online-section .section-title i {
    margin-left: 15px;
    color: var(--accent-color);
}

.online-section .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.online-section .title-underline {
    background: linear-gradient(90deg, var(--accent-color), #e74c3c);
}

.online-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.online-info {
    padding: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
}

.online-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--success-color);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.online-info h3 {
    font-size: 28px;
    margin-bottom: 15px;
}

.online-info p {
    font-size: 16px;
    opacity: 0.9;
    line-height: 1.8;
}

.online-stats {
    display: flex;
    gap: 30px;
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

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

.stat-number {
    display: block;
    font-size: 32px;
    font-weight: 800;
    color: var(--accent-color);
}

.stat-label {
    font-size: 14px;
    opacity: 0.8;
}

.online-features {
    padding: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
}

.online-features h4 {
    font-size: 22px;
    margin-bottom: 25px;
    color: var(--accent-color);
}

.online-features-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

.online-features-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
}

.online-features-list i {
    color: var(--success-color);
    font-size: 18px;
}

.online-plans {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 30px;
}

.plan-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
    position: relative;
}

.plan-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.plan-card.popular {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    transform: scale(1.05);
}

.plan-card.popular:hover {
    transform: scale(1.08);
}

.popular-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-color);
    color: var(--white);
    padding: 3px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.plan-card h5 {
    font-size: 14px;
    margin-bottom: 10px;
    opacity: 0.9;
}

.plan-price {
    font-size: 28px;
    font-weight: 800;
    color: var(--accent-color);
}

.plan-card.popular .plan-price {
    color: var(--white);
}

.plan-price small {
    font-size: 14px;
    font-weight: 400;
    opacity: 0.8;
}

.plan-card p {
    font-size: 12px;
    margin: 10px 0 0;
    opacity: 0.8;
}

/* Video Section */
.video-section {
    background: var(--white);
}

.video-wrapper {
    max-width: 900px;
    margin: 0 auto;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-hover);
}

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

/* Download Section */
.download {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
}

.download-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 60px;
    align-items: center;
}

.download-text h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.download-text p {
    font-size: 18px;
    opacity: 0.9;
}

.download-features {
    list-style: none;
    margin-top: 25px;
}

.download-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 16px;
}

.download-features i {
    color: var(--accent-color);
}

.btn-download {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--white);
    color: var(--primary-color);
    padding: 25px 50px;
    border-radius: var(--border-radius);
    font-size: 20px;
    box-shadow: var(--shadow-hover);
}

.btn-download:hover {
    transform: scale(1.05);
}

.btn-download i {
    font-size: 32px;
    margin-bottom: 10px;
}

.btn-download small {
    font-size: 12px;
    opacity: 0.7;
    margin-top: 5px;
}

/* FAQ Section */
.faq {
    background: var(--bg-light);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.faq-item summary {
    padding: 20px 25px;
    font-weight: 600;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    transition: var(--transition);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 24px;
    color: var(--primary-color);
    transition: var(--transition);
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item summary:hover {
    background: var(--bg-light);
}

.faq-item p {
    padding: 0 25px 20px;
    color: var(--text-light);
    line-height: 1.8;
}

/* Contact Section */
.contact {
    background: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateX(-5px);
}

.contact-item > i {
    font-size: 24px;
    color: var(--primary-color);
    width: 50px;
    height: 50px;
    background: rgba(196, 30, 58, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 16px;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

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

.contact-item a {
    color: var(--primary-color);
}

.contact-item a:hover {
    text-decoration: underline;
}

.contact-form {
    background: var(--bg-light);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #eee;
    border-radius: 8px;
    font-family: inherit;
    font-size: 16px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-form .btn {
    width: 100%;
    justify-content: center;
}

/* Footer */
.footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 60px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 10px;
    margin-bottom: 20px;
}

.footer-brand p {
    opacity: 0.8;
    margin-bottom: 20px;
}

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

.social-links a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

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

.footer-links h4,
.footer-programs h4 {
    font-size: 18px;
    margin-bottom: 25px;
    position: relative;
}

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

.footer-links li,
.footer-programs li {
    margin-bottom: 12px;
}

.footer-links a,
.footer-programs a {
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links a:hover,
.footer-programs a:hover {
    opacity: 1;
    color: var(--accent-color);
    padding-right: 10px;
}

.footer-bottom {
    text-align: center;
    padding: 25px 0;
    opacity: 0.7;
    font-size: 14px;
}

.footer-bottom p {
    margin: 5px 0;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow);
}

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

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

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: var(--border-radius);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--white);
    font-size: 40px;
    cursor: pointer;
    transition: var(--transition);
    background: none;
    border: none;
}

.modal-close:hover {
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-image {
        order: -1;
    }
    
    .hero-image img {
        max-width: 300px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .features-grid,
    .programs-grid,
    .screenshots-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-highlights {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .online-content {
        grid-template-columns: 1fr;
    }
    
    .online-plans {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow);
        transform: translateY(-150%);
        transition: var(--transition);
    }
    
    .nav-menu.active {
        transform: translateY(0);
    }
    
    .nav-toggle {
        display: block;
    }
    
    .hero-title {
        font-size: 40px;
    }
    
    .hero-subtitle {
        font-size: 22px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .features-grid,
    .programs-grid,
    .screenshots-gallery {
        grid-template-columns: 1fr;
    }
    
    .download-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .online-features-list {
        grid-template-columns: 1fr;
    }
    
    .online-plans {
        grid-template-columns: 1fr;
    }
    
    .plan-card.popular {
        transform: scale(1);
    }
    
    .online-stats {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 36px; /* تصغير طفيف لتجنب التداخل */
    }
    .hero-subtitle {
        font-size: 22px;
    }
    .hero-description {
        font-size: 18px;
    }
    .btn {
        width: 100%; /* أزرار كاملة العرض على الجوال لسهولة النقر */
        justify-content: center;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .highlight-item {
        flex-direction: column;
        text-align: center;
    }
    
    .online-info,
    .online-features {
        padding: 25px;
    }
    
    .faq-item summary {
        font-size: 16px;
        padding: 15px 20px;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .back-to-top,
    .modal,
    .hero-wave,
    .btn {
        display: none !important;
    }
    
    .hero {
        min-height: auto;
        padding: 20px 0;
    }
    
    section {
        padding: 30px 0;
    }
}


/* CLS Reduction & Performance Optimization */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Prevent Layout Shift for Images */
img {
    aspect-ratio: auto;
}

.hero-image img,
.screenshot-item img,
.footer-logo {
    aspect-ratio: auto;
}

/* Font Display Optimization */
@font-face {
    font-family: 'Cairo';
    font-display: swap;
    src: url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;800&display=swap');
}

/* Optimize FontAwesome Loading */
.fas, .fab {
    font-display: swap;
}

/* Reduce CLS in Hero Section */
.hero-content {
    min-height: 500px;
}

.hero-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Optimize Button Rendering */
.btn {
    will-change: transform;
}

.btn:hover {
    will-change: auto;
}

/* Preload Critical Resources */
link[rel="preload"] {
    font-display: swap;
}

/* Optimize Modal Performance */
.modal {
    will-change: opacity;
}

.modal.active {
    will-change: auto;
}

/* Improve Text Rendering */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Optimize Scroll Performance */
.navbar {
    will-change: background, box-shadow;
}

/* Reduce Repaints */
.screenshot-item {
    contain: layout style paint;
}

.feature-card,
.program-card {
    contain: layout style paint;
}

/* Oval Button Style for Back to Tools */
.btn-oval {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 35px;
    background: white;
    color: #c41e3a;
    border: 2px solid #c41e3a;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(196, 30, 58, 0.1);
}

.btn-oval:hover {
    background: #c41e3a;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(196, 30, 58, 0.2);
}
