/* ===== جعل كل قسم يغطي الشاشة كحد أدنى بدون تغيير تنسيق المحتوى ===== */
section {
  min-height: 100vh;         /* يغطي الشاشة كاملة على الأقل */
  scroll-snap-align: start;  /* يوقف السكشن عند بداية الشاشة */
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden; /* يمنع السكول الجانبي */
}


/* Reset and Base Styles */
:root {
    --primary-color: #2563eb;
    --secondary-color: #3b82f6;
    --accent-color: #3b82f6;
    --text-color: #1f2937;
    --light-text: #6b7280;
    --background: #ffffff;
    --light-background: #f3f4f6;
    --border-color: #e5e7eb;
    --success-color: #10b981;
    --error-color: #ef4444;
    --transition: all 0.3s ease;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background);
    text-align: right;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: 'Cairo', sans-serif;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--background);
    box-shadow: var(--shadow);
    z-index: 1000;
    padding: 1rem 0;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding: 160px 0 100px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* About Section */
.about {
    padding: 100px 0;
    background-color: var(--light-background);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header p {
    color: var(--light-text);
    font-size: 1.1rem;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h3 {
    margin-bottom: 1.5rem;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    color: var(--light-text);
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 280px;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

/* Services Section */
.services {
    padding: 100px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    padding: 2rem;
    background-color: var(--background);
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    margin-bottom: 1rem;
}

/* Testimonials Section */
.testimonials {
    padding: 100px 0;
    background-color: var(--light-background);
}

.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.testimonial-card {
    background-color: var(--background);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.testimonial-content {
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    margin-bottom: 0.25rem;
}

.author-info p {
    color: var(--light-text);
    margin: 0;
}

/* Contact Section */
.contact {
    padding: 100px 0;
}
.creative-work-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 50px 100px;
  background-color: #f8f8f8; /* يمكنك تغيير اللون ليناسب تصميمك */
  font-family: 'Arial', sans-serif; /* استخدم خطًا مناسبًا */
  direction: rtl; /* لجعل النص يبدأ من اليمين */
}

.content-text {
  flex: 1;
  max-width: 50%;
  text-align: right;
  padding-left: 50px;
}

.content-text h2 {
  font-size: 3rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 20px;
}

.content-text p {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #666;
  margin-bottom: 30px;
}

.view-gallery-link {
  display: inline-block;
  color: #007bff; /* لون رابط معرض الأعمال */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.view-gallery-link:hover {
  color: #0056b3;
}

.view-gallery-link span {
  margin-left: 10px;
}

.images-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  min-height: 500px; /* لضمان وجود مساحة كافية للصور المتداخلة */
}

.image-stack {
  position: relative;
  width: 400px; /* عرض الحاوية */
  height: 400px; /* ارتفاع الحاوية */
}

.stacked-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15); /* ظل للصور */
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  border-radius: 10px;
}

/* يمكنك تعديل قيم التحويل للحصول على التداخل المطلوب */
.stacked-image:nth-child(1) {
  z-index: 1;
  transform: rotate(-10deg) translateX(-20px) scale(0.9);
}

.stacked-image:nth-child(2) {
  z-index: 2;
  transform: rotate(-5deg) translateX(-10px) scale(0.95);
}

.stacked-image:nth-child(3) {
  z-index: 3;
  transform: rotate(0deg) translateX(0px) scale(1);
}

@media (max-width: 768px) {
  .creative-work-section {
    flex-direction: column;
    padding: 30px;
    text-align: center;
  }
  
  .content-text, .images-container {
    max-width: 100%;
    padding: 0;
  }
  
  .content-text {
    margin-bottom: 30px;
  }
}
.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.contact-form {
    display: grid;
    gap: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    text-align: right;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Footer */
.footer {
    background-color: var(--text-color);
    color: white;
    padding: 80px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    color: white;
    margin-bottom: 1rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    color: white;
    margin-bottom: 1.5rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.75rem;
}

.footer-column a {
    color: var(--light-text);
    text-decoration: none;
    transition: var(--transition);
}

.footer-column a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: white;
    font-size: 1.25rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* RTL Specific Styles */
[dir="rtl"] .nav-links {
    padding-right: 0;
}

[dir="rtl"] .contact-item i {
    margin-left: 1rem;
    margin-right: 0;
}

[dir="rtl"] .social-links {
    justify-content: flex-start;
}

[dir="rtl"] .mobile-menu-btn {
    margin-right: 0;
    margin-left: 1rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2rem;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        width: 100%;
        background-color: var(--background);
        padding: 1rem;
        flex-direction: column;
        align-items: center;
        box-shadow: var(--shadow);
    }

    .nav-links.active {
        display: flex;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .service-card,
    .testimonial-card {
        padding: 1.5rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content,
.about-content,
.service-card,
.testimonial-card {
    animation: fadeIn 1s ease-out;
}

/* Form Validation Styles */
.form-group input.error,
.form-group textarea.error {
    border-color: var(--error-color);
}

.form-group input.success,
.form-group textarea.success {
    border-color: var(--success-color);
} .site-header {
    text-align: center; /* لتوسيط الشعار */
    padding: 10px 0;    /* مسافة حول الشعار */
}

.logo {
    height: 80px; /* حجم الشعار، عدّل حسب الحاجة */
    width: auto;
}
body {
  font-family: 'IBM Plex Sans Arabic', sans-serif;
}
/* تغيير الخط لجميع النصوص بدون التأثير على الأيقونات */
body, h1, h2, h3, h4, h5, h6, p, span, a, li, div, section {
    font-family: 'IBM Plex Sans Arabic', sans-serif !important;
}
/* تغيير الخط لجميع النصوص بما فيها الأزرار */
body, h1, h2, h3, h4, h5, h6, p, span, a, li, div, section, button {
    font-family: 'IBM Plex Sans Arabic', sans-serif !important;
}

/* حركة ظهور لمربعات معرض الأعمال */
.gallery-item {
    opacity: 0;
    transform: translateY(40px) scale(0.96);
    transition: opacity 0.7s cubic-bezier(.77,0,.18,1), transform 0.7s cubic-bezier(.77,0,.18,1);
    will-change: opacity, transform;
}
.gallery-item.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}
:root {
    --primary-bg-color: #ffffff; /* لون الخلفية الرئيسي */
    --card-bg-color: #ffffff;
    --text-color-dark: #333;
    --text-color-light: #666;
    --main-font: 'Arial', sans-serif;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --button-color: #3b9e9b;
    --button-hover-color: #2e7d7a;
}
/* شاشة الافتتاح */
#intro {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f39c12, #d35400); /* مثال: تدرج برتقالي */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 1s ease;
  flex-direction: column;
}
