:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-color: #333;
    --background-color: #f4f6f7;
    --white: #ffffff;
}

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

body {
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    background-color: var(--background-color);
    line-height: 1.6;
    overscroll-behavior-y: contain;
    overflow-x: hidden;
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to right, #2c3e50, #3498db);
    color: var(--white);
    padding: 20px 50px;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    height: 90px;
    background-image: none;
    background-size: initial;
    animation: none;
}

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

.logo img {
    max-height: 70px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.1);
}

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

.nav-links {
    display: flex;
    align-items: center;
    list-style-type: none;
    gap: 20px;
}

.nav-links li a {
    display: inline-flex;
    align-items: center;
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    padding: 10px 15px;
    gap: 15px;
    transition: all 0.3s ease;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background-color: #d5939d;
    transition: all 0.3s ease;
}

.nav-links li a:hover::after {
    width: 100%;
    left: 0;
    background-color: #d5939d;
}

.contact-btn {
    background-color: #d5939d;
    color: var(--white);
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    background-color: #c77f8b;
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    width: 30px;
}

.mobile-menu-toggle span {
    height: 3px;
    width: 100%;
    background-color: var(--white);
    margin: 4px 0;
    transition: 0.4s;
}

@media (max-width: 1024px) {
    .header {
        padding: 15px 30px;
        background: linear-gradient(to right, #2c3e50, #3498db);
    }
}

@media (max-width: 768px) {
    .header {
        padding: 15px 20px;
        height: 80px;
        background: linear-gradient(to right, #2c3e50, #3498db);
    }

    .nav-menu {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100%;
        background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
        transition: 0.5s;
        z-index: 1100;
        padding: 30px 20px;
    }

    .mobile-menu.active {
        right: 0;
    }

    .mobile-menu-close {
        position: absolute;
        top: 15px;
        left: 15px;
        color: var(--white);
        font-size: 30px;
        cursor: pointer;
    }

    .mobile-nav-links {
        display: flex;
        flex-direction: column;
        gap: 20px;
        margin-top: 50px;
    }

    .mobile-nav-links a {
        color: var(--white);
        text-decoration: none;
        display: flex;
        align-items: center;
        gap: 15px;
        padding: 15px;
        border-radius: 10px;
        transition: background-color 0.3s ease;
    }

    .mobile-nav-links a:hover {
        background-color: rgba(255,255,255,0.2);
    }

    .mobile-contact-btn {
        margin-top: 30px;
        background-color: #d5939d;
        color: var(--white);
        padding: 15px 30px;
        border-radius: 30px;
        text-decoration: none;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 10px;
    }

    .mobile-contact-btn:hover {
        background-color: #c77f8b;
    }

    .logo img {
        max-height: 65px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 10px 15px;
        background: linear-gradient(to right, #2c3e50, #3498db);
    }

    .logo img {
        max-height: 60px;
    }
}

@media (min-width: 769px) {
    .header {
        padding: 25px 50px;
        height: 110px;
        background: linear-gradient(to right, #2c3e50, #3498db);
    }

    .logo img {
        max-height: 90px;
        width: auto;
        transition: transform 0.3s ease;
    }

    .logo img:hover {
        transform: scale(1.05);
    }

    .nav-links li a {
        padding: 15px 20px;
    }

    .header-container {
        justify-content: center;
        position: relative;
    }

    .logo {
        position: absolute;
        right: 50px;
    }

    .nav-menu {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-grow: 1;
    }

    .nav-links {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 30px;
    }

    .contact-btn {
        position: absolute;
        left: 50px;
    }
}

/* تصميم قسم الشرائح */
.slider-section {
    position: relative;
    overflow: hidden;
    padding: 100px 0;
}

.slider-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

.slider {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    display: none;
    opacity: 0;
    transition: all 0.7s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 50px;
    direction: rtl;
}

.slide.active {
    display: flex;
    opacity: 1;
    position: relative;
    z-index: 10;
}

.slide.prev, .slide.next {
    opacity: 0.5;
    transform: scale(0.9);
    z-index: 5;
}

.slide.prev {
    transform: translateX(50%) scale(0.9);
}

.slide.next {
    transform: translateX(-50%) scale(0.9);
}

.slide-content {
    flex: 1;
    padding-right: 50px;
    max-width: 50%;
}

.slide-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 50%;
}

.slide-image img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
}

.slide-content h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    line-height: 1.2;
}

.slide-content p {
    font-size: 1.1em;
    margin-bottom: 30px;
    line-height: 1.6;
}

.slider-btn {
    align-self: flex-start;
    display: inline-block;
    background-color: #d5939d;
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(52,152,219,0.3);
}

.slider-btn:hover {
    background: linear-gradient(to right, #2c3e50, #3498db);
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(231,76,60,0.4);
}

.slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}

.slider-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}

.slider-btn-prev,
.slider-btn-next {
    background-color: #d5939d;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-btn-prev:hover,
.slider-btn-next:hover {
    background-color: #c77f8b;
}

.slider-btn-prev i {
    transform: rotate(180deg);
}

.slider-btn-next i {
    transform: rotate(180deg);
}

.slider-dots {
    display: flex;
    gap: 15px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    background-color: #ddd;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    width: 25px;
    background-color: #d5939d;
    border-radius: 15px;
}

/* استجابة الشاشات */
@media (max-width: 1200px) {
    .slide {
        padding: 40px 30px;
        gap: 30px;
    }
}

@media (max-width: 992px) {
    .slider-section {
        padding: 60px 0;
    }

    .slide {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
    }

    .slide-content {
        padding-right: 0;
        align-items: center;
    }

    .slide-image {
        margin-top: 30px;
        order: 1;
    }

    .slide-content {
        order: 2;
    }

    .slide-content h2 {
        font-size: 2em;
    }

    .slide-content p {
        font-size: 1em;
    }

    .slider-btn {
        align-self: center;
    }
}

@media (max-width: 576px) {
    .slide {
        padding: 30px 15px;
    }

    .slide-content h2 {
        font-size: 1.6em;
    }

    .slide-image img {
        max-height: 250px;
    }
}

/* قسم من نحن */
.about-section {
    background-color: var(--background-color);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.about-hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-align: center;
    padding: 80px 20px;
    margin-bottom: 50px;
    border-radius: 15px;
}

.hero-content h1 {
    font-size: 3em;
    margin-bottom: 20px;
}

.about-story-section {
    background-color: white;
    border-radius: 15px;
    padding: 50px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    margin-bottom: 50px;
}

.timeline-header {
    text-align: center;
    margin-bottom: 50px;
}

.timeline-header h2 {
    color: var(--primary-color);
    font-size: 2.5em;
}

.timeline-container {
    position: relative;
}

.timeline-item {
    display: flex;
    margin-bottom: 40px;
    align-items: center;
    position: relative;
}

.timeline-marker {
    width: 100px;
    height: 100px;
    background: linear-gradient(to right, #2c3e50, #3498db);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 30px;
    position: relative;
    z-index: 2;
}

.timeline-marker span {
    font-weight: bold;
    font-size: 1.2em;
}

.timeline-content {
    background-color: var(--background-color);
    padding: 30px;
    border-radius: 15px;
    flex-grow: 1;
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 20px solid transparent;
    border-bottom: 20px solid transparent;
    border-left: 20px solid var(--background-color);
}

.about-achievements {
    background-color: white;
    border-radius: 15px;
    padding: 50px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    margin-bottom: 50px;
}

.achievements-header {
    text-align: center;
    margin-bottom: 50px;
}

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

.achievement-item {
    display: flex;
    align-items: center;
    background-color: var(--background-color);
    padding: 30px;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.achievement-item:hover {
    transform: translateY(-10px);
}

.achievement-item .achievement-icon {
    background: linear-gradient(to right, #2c3e50, #3498db);
    color: white;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 20px;
}

.achievement-content h3 {
    color: var(--primary-color);
    font-size: 2em;
    margin-bottom: 10px;
}

.about-mission-vision {
    display: flex;
    gap: 50px;
    background-color: white;
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.mission-section, .vision-section {
    flex: 1;
    text-align: center;
}

.mission-section h2, .vision-section h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* استجابة الشاشات */
@media (max-width: 1024px) {
    .achievements-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-mission-vision {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2em;
    }

    .timeline-item {
        flex-direction: column;
        text-align: center;
    }

    .timeline-marker {
        margin-left: 0;
        margin-bottom: 20px;
    }

    .achievements-grid {
        grid-template-columns: 1fr;
    }
}

/* إضافة في نهاية الملف */
html, body {
    touch-action: pan-y;
    -ms-touch-action: manipulation;
    max-width: 100%;
    overflow-x: hidden;
}

input, textarea {
    font-size: 16px;
}

/* قسم المنتجات */
.products-section {
    background-color: var(--background-color);
    padding: 80px 0;
}

.products-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

.products-header {
    text-align: center;
    margin-bottom: 50px;
}

.products-header h2 {
    color: var(--primary-color);
    font-size: 2.5em;
    margin-bottom: 15px;
}

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

.product-card {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

.product-image {
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--accent-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8em;
}

.product-details {
    padding: 25px;
    text-align: center;
}

.product-details h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.5em;
}

.product-features {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
    color: var(--text-color);
}

.product-features span {
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.product-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.btn-details, .btn-buy {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-details {
    border: 1px solid #d5939d;
    color: #d5939d;
}

.btn-details:hover {
    background-color: #d5939d;
    color: var(--white);
}

.btn-buy {
    background-color: #d5939d;
    color: var(--white);
}

.btn-buy:hover {
    background-color: #c77f8b;
}

.products-cta {
    text-align: center;
    margin-top: 50px;
}

.btn-view-all {
    display: inline-block;
    background-color: #d5939d;
    color: white;
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-view-all:hover {
    background-color: #c77f8b;
}

/* تحديثات قسم المنتجات */
.products-categories {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.category-tabs {
    display: flex;
    background-color: var(--background-color);
    border-radius: 30px;
    overflow: hidden;
}

.category-tab {
    background: none;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-color);
    font-weight: bold;
}

.category-tab.active {
    background-color: #d5939d;
    color: white;
}

.product-card .product-image {
    position: relative;
}

.product-quick-actions {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-quick-actions {
    opacity: 1;
}

.quick-view, .quick-add {
    background-color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.quick-view:hover, .quick-add:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: scale(1.1);
}

.product-rating {
    color: #ffc107;
    margin: 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-rating span {
    margin-right: 10px;
    color: var(--text-color);
}

.product-price {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.current-price {
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1.2em;
}

.old-price {
    color: var(--text-color);
    text-decoration: line-through;
    font-size: 0.9em;
}

.product-sizes {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.product-sizes span {
    background-color: var(--background-color);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-sizes span:hover {
    background-color: var(--secondary-color);
    color: white;
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8em;
    color: white;
}

.product-badge.new {
    background-color: #2ecc71;
}

.product-badge.offer {
    background-color: #e74c3c;
}

.product-badge.eco {
    background-color: #27ae60;
}

/* استجابة الشاشات */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .category-tabs {
        flex-wrap: wrap;
        justify-content: center;
    }

    .category-tab {
        margin: 5px;
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .category-tabs {
        flex-direction: column;
        align-items: center;
    }

    .category-tab {
        width: 100%;
        text-align: center;
        margin: 5px 0;
    }
}

/* قسم التواصل */
.contact-section {
    background-color: var(--background-color);
    padding: 80px 0;
}

.contact-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

.contact-header {
    text-align: center;
    margin-bottom: 50px;
}

.contact-header h2 {
    color: var(--primary-color);
    font-size: 2.5em;
    margin-bottom: 15px;
}

.contact-content {
    display: flex;
    gap: 50px;
    background-color: white;
    border-radius: 15px;
    padding: 50px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.contact-info {
    flex: 1;
}

.contact-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

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

.contact-item i {
    background: linear-gradient(to right, #2c3e50, #3498db);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5em;
    aspect-ratio: 1 / 1;
}

.contact-item div h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.contact-social {
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.social-link {
    color: var(--text-color);
    font-size: 1.5em;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: var(--secondary-color);
}

.contact-form {
    flex: 1;
}

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

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
}

.form-group textarea {
    resize: vertical;
}

.privacy-consent {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background-color: #d5939d;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #c77f8b;
}

.contact-map {
    margin-top: 50px;
    text-align: center;
    width: 100%;
}

.contact-map h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.map-container {
    width: 100%;
    height: 500px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* استجابة الشاشات */
@media (max-width: 992px) {
    .contact-content {
        flex-direction: column;
        gap: 30px;
    }

    .contact-details {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .contact-header h2 {
        font-size: 2em;
    }

    .social-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* الفوتر */
.main-footer {
    background: linear-gradient(to right, #2c3e50, #3498db);
    color: white;
    padding: 60px 0 20px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.footer-logo {
    flex: 1;
    max-width: 300px;
}

.footer-logo img {
    max-width: 150px;
    margin-bottom: 15px;
}

.footer-logo p {
    color: rgba(255,255,255,0.7);
}

.footer-links {
    display: flex;
    justify-content: space-between;
    flex: 2;
}

.footer-section {
    margin-right: 30px;
}

.footer-section h4 {
    color: white;
    margin-bottom: 15px;
    font-size: 1.2em;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 3px;
    background-color: white;
}

.footer-section ul {
    list-style-type: none;
}

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

.footer-section ul li a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-section ul li i {
    margin-left: 10px;
    color: white;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

.social-icon {
    color: white;
    font-size: 1.5em;
    transition: color 0.3s ease;
}

.social-icon:hover {
    color: rgba(255,255,255,0.8);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.7);
}

/* استجابة الشاشات */
@media (max-width: 992px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-logo {
        margin: 0 auto 30px;
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
    }

    .footer-section {
        margin: 0 0 30px;
        text-align: center;
    }

    .footer-section h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 576px) {
    .footer-social {
        flex-wrap: wrap;
        gap: 20px;
    }
}

/* قسم الصفحة الرئيسية */
.home-section {
    padding: 100px 0;
    background-color: var(--background-color);
    margin-top: 100px;
}

.home-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

.home-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.home-text {
    flex: 1;
}

.home-text h1 {
    color: var(--primary-color);
    font-size: 3em;
    margin-bottom: 20px;
    line-height: 1.2;
}

.home-text p {
    color: var(--text-color);
    font-size: 1.2em;
    margin-bottom: 30px;
    line-height: 1.6;
}

.home-cta {
    display: flex;
    gap: 20px;
}

.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(to right, #2c3e50, #3498db);
    color: white;
}

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

.btn-primary:hover {
    background-color: #c77f8b;
    transform: translateY(-5px);
}

.btn-secondary:hover {
    background-color: #d5939d;
    color: white;
}

.home-image {
    flex: 1;
}

.home-image img {
    max-width: 100%;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* استجابة الشاشات */
@media (max-width: 992px) {
    .home-content {
        flex-direction: column;
        text-align: center;
    }

    .home-text {
        margin-bottom: 30px;
    }

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

    .home-text h1 {
        font-size: 2.5em;
    }
}

@media (max-width: 576px) {
    .home-section {
        padding: 60px 0;
    }

    .home-text h1 {
        font-size: 2em;
    }

    .home-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        text-align: center;
        margin-bottom: 15px;
    }
}

/* للتأكد من عدم وجود تمرير غير مرغوب فيه */
.container {
    touch-action: pan-y;
    overscroll-behavior: none;
}

/* تطبيق على جميع الأجهزة */
html, body {
    max-width: 100%;
    overflow-x: hidden;
    overscroll-behavior-y: contain;
    touch-action: pan-y;
    margin: 0;
    padding: 0;
}

/* للشاشات الصغيرة والمتوسطة */
@media screen and (max-width: 1024px) {
    body {
        overscroll-behavior-y: contain;
        overflow-x: hidden;
        touch-action: pan-y;
    }
}

/* للشاشات الكبيرة */
@media screen and (min-width: 1025px) {
    body {
        overscroll-behavior-y: contain;
        touch-action: pan-y;
    }
}

/* حل إضافي للمحتوى الداخلي */
.main-container {
    overscroll-behavior: none;
    touch-action: pan-y;
    max-width: 100%;
}

@media screen and (max-width: 767px) {
    html, body {
        overflow-x: hidden; /* إخفاء التمرير الأفقي */
        max-width: 100%;
        overscroll-behavior-x: none; /* منع التمرير الأفقي الزائد */
    }

    .main-container {
        width: 100%;
        overflow-x: hidden;
    }
}

@media screen and (max-width: 768px) {
    html, body {
        position: relative;
        width: 100%;
        height: 100%;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-y: contain;
        touch-action: pan-y;
    }

    .home-section, 
    .main-container {
        width: 100%;
        overflow-y: scroll;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-y: contain;
    }

    body > * {
        touch-action: pan-y;
        overscroll-behavior-y: contain;
    }
}

/* حذف جميع الأنماط المتعلقة بزر التمرير للأعلى */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #d5939d;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: none;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.scroll-to-top:hover {
    background-color: #c77f8b;
}

/* استجابة للشاشات الصغيرة */
@media (max-width: 768px) {
    .scroll-to-top {
        width: 40px;
        height: 40px;
        bottom: 15px;
        right: 15px;
    }
}
