:root {
    --primary-color: #6e45e2;
    --primary-dark: #4a2d9a;
    --primary-light: #8d6ce7;
    --accent-color: #88d3ce;
    --dark-color: #121212;
    --darker-color: #0a0a0a;
    --text-main: #ffffff;
    --text-secondary: #aaaaaa;
    --transition: all 0.4s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--dark-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    direction: rtl;
    unicode-bidi: embed;
    font-variant-numeric: lining-nums;
}

a {
color: var(--primary-light)
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.phone-number {
    direction: ltr;
    unicode-bidi: bidi-override;
    text-align: right;
    font-variant-numeric: lining-nums;
    font-family: sans-serif;
    font-size: 16px;
}


/* شريط التنقل - تم التعديل بشكل كامل */
.navbar {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    padding: 5px 0;
    background-color: transparent; /* بدلاً من transparent فقط */
    backdrop-filter: blur(8px); /* شفاف + بلور */
    -webkit-backdrop-filter: blur(8px);
    z-index: 999;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    height: 140px;
    display: flex;
    align-items: center;
    box-shadow: none;
}

.navbar.scrolled {
    background:rgba(0, 0, 0, 0.8) !important;
    backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4)
}

.navbar.transparent {
    background-color: rgba(10, 10, 10, 0.3);
}

.navbar.hide {
    transform: translateY(-100%);
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo-img {
    height: 120px !important;
    width: auto !important;
    transition: var(--transition);
    object-fit: contain;
}

.navbar.scrolled .logo-img {
    height: 120px !important;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    height: 100%;
}

.nav-links li {
    margin-left: 40px;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    transition: var(--transition);
    position: relative;
    padding: 10px 0;
    display: block;
}

.nav-links a.active {
    color: var(--primary-light);
}

.nav-links a:hover {
    color: var(--primary-light);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary-light);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 35px;
    height: 25px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 4px;
    background-color: var(--text-main);
    transition: var(--transition);
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}
.featured-projects .btn-outline {
    margin-top: 40px; /* يمكنك تعديل هذه القيمة حسب احتياجك */
}

/* زر واتساب دائري */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 70px;
    height: 70px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    box-shadow: 0 5px 25px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
    text-decoration: none;
    border: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background: #128C7E;
    animation: none;
}

.whatsapp-float i {
    font-size: 34px;
}

/* قسم البطل */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    background-color: #000;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 30px;
    text-align: center;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 25px;
    line-height: 1.2;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.6);
}

.hero h1 span {
    color: var(--primary-light);
}

.hero p {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

.hero-btns {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 18px 45px;
    border-radius: 35px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.1rem;
    cursor: pointer;
    border: none;
    outline: none;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--text-main);
    box-shadow: 0 5px 20px rgba(110, 69, 226, 0.5);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(110, 69, 226, 0.7);
    background: var(--primary-dark);
}

.btn-outline {
    border: 2px solid var(--primary-light);
    color: var(--primary-light);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--primary-light);
    color: var(--text-main);
    transform: translateY(-5px);
}

.btn-small {
    padding: 12px 30px;
    font-size: 1rem;
}

/* دعم فيديو الهيدر على iPhone */
video.hero-bg {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    -webkit-mask-image: none;
    mask-image: none;
}


/* قسم الخدمات */
.featured-services {
    padding: 120px 0;
    background: var(--darker-color);
}

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 70px;
    color: var(--text-main);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -20px;
    right: 50%;
    transform: translateX(50%);
    width: 70px;
    height: 4px;
    background: var(--primary-light);
    border-radius: 3px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 35px;
}

.service-card {
    background: #111;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255,255,255,0.08);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: var(--transition);
    box-sizing: border-box;
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 35px rgba(110, 69, 226, 0.25);
}

.service-img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    margin-bottom: 25px;
    border-radius: 10px;
    object-fit: contain; /* ضمان عدم القص */
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-light);
    margin-bottom: 25px;
}

.service-content h3 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.7rem;
}

.service-content p {
    color: var(--text-secondary);
    margin-bottom: 25px;
    line-height: 1.9;
    font-size: 1.1rem;
}


/* قسم اعمالنا */
.featured-projects {
    padding: 120px 0;
    background: #0a0a0a;
    position: relative;
}

.featured-projects::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: url('../images/projects-bg.webp') no-repeat center center/cover;
    opacity: 0.2;
    z-index: 0;
}

.featured-projects .container {
    position: relative;
    z-index: 1;
}

.projects-showcase {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
    align-items: center;
}

.project-item {
    background: #111;
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.08);
    text-align: center;
    display: inline-block;
    width: fit-content;
    height: fit-content;
}

.project-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(110, 69, 226, 0.25);
}

.project-item img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    border-radius: 12px;
}

/* صفحة المشاريع */
.projects-page {
    padding: 120px 0;
    background: #0a0a0a;
    position: relative;
    min-height: 100vh;
}

.projects-page::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: url('../images/projects-bg.webp') no-repeat center center/cover;
    opacity: 0.2;
    z-index: 0;
}

.projects-page .container {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
}

.page-title {
    text-align: center;
    font-size: 3.5rem;
    margin-bottom: 70px;
    color: var(--text-main);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 35px;
}

.gallery-item {
    background: #111;
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.08);
    display: inline-block;
    width: fit-content;
    height: fit-content;
}

.gallery-item img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    border-radius: 12px;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(110, 69, 226, 0.25);
}


/* صفحة من نحن */
.about-page {
    padding: 120px 0;
    background: #0a0a0a;
    position: relative;
    min-height: 100vh;
}

.about-page::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: url('../images/about-bg.webp') no-repeat center center/cover;
    opacity: 0.2;
    z-index: 0;
}

.about-page .container {
    position: relative;
    z-index: 1;
}

.about-header {
    text-align: center;
    margin-bottom: 70px;
}

.about-header h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: #fff;
}

.about-header p {
    color: var(--text-secondary);
    font-size: 1.4rem;
}

.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 35px;
}

/* === START BUTTON === */
.about-start .btn {
    margin-top: 25px;
}

/* === CARDS === */
.about-story,
.about-vision,
.about-mission,
.about-values {
    background: #111;
    padding: 35px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 440px;
}

.about-story:hover,
.about-vision:hover,
.about-mission:hover,
.about-values:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(110, 69, 226, 0.25);
}

/* === ICON === */
.about-icon {
    font-size: 3rem;
    color: var(--primary-light);
    margin-bottom: 15px;
}

/* === TITLES === */
.about-story h2,
.about-vision h2,
.about-mission h2,
.about-values h2 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.7rem;
    text-align: center;
}

/* === PARAGRAPH TEXT === */
.about-story p,
.about-vision p,
.about-mission p,
.about-start p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 2;
    margin-bottom: 16px;
    text-align: justify;
    direction: rtl;
}

/* === LIST STYLES === */
.about-values ul {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-top: auto;
    direction: rtl;
}

.about-values li {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 16px;
    line-height: 2;
    padding-right: 24px;
    text-align: justify;
    position: relative;
}

/* === CUSTOM BULLET === */
.about-values li::before {
    content: "•";
    position: absolute;
    right: 0;
    top: 0;
    color: var(--primary-light);
    font-size: 1.2rem;
    line-height: 1.8;
}

/* === STATS === */
.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 70px;
}

.stat-item {
    background: #111;
    padding: 35px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: var(--transition);
    text-align: center;
}

.stat-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(110, 69, 226, 0.25);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-light);
    margin-bottom: 15px;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 1.1rem;
}


/* صفحة الخدمات */
.services-page {
    padding: 120px 0;
    background: #0a0a0a;
    position: relative;
    min-height: 100vh;
}

.services-page::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: url('../images/services-bg.webp') no-repeat center center/cover;
    opacity: 0.2;
    z-index: 0;
}

.services-page .container {
    position: relative;
    z-index: 1;
}

.service-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 45px;
    align-items: center;
    margin-bottom: 90px;
}

.service-img {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.35);
}

.service-img img {
    width: 100%;
    height: auto;
    transition: var(--transition);
}

.service-img img:hover {
    transform: scale(1.08);
}

.service-content h2 {
    color: #fff;
    font-size: 2.3rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 20px;
}

.service-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 70px;
    height: 4px;
    background: var(--primary-light);
}

.service-content p {
    color: var(--text-secondary);
    line-height: 1.9;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.service-content ul {
    margin: 25px 0;
    list-style-position: inside;
    padding-right: 20px;
}

.service-content li {
    margin-bottom: 15px;
    color: var(--text-secondary);
    position: relative;
    padding-right: 25px;
    font-size: 1.1rem;
}

/* صفحة الاتصال */
.contact-page {
    padding: 120px 0;
    background: #0a0a0a;
    position: relative;
    min-height: 100vh;
}

.contact-page::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    opacity: 0.2;
    z-index: 0;
}

.contact-page .container {
    position: relative;
    z-index: 1;
}

.contact-header {
    text-align: center;
    margin-bottom: 70px;
}

.contact-header h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: #fff;
}

.contact-header p {
    color: var(--text-secondary);
    font-size: 1.4rem;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 45px;
}

.contact-form {
    background: #111;
    padding: 45px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
}

.form-group {
    margin-bottom: 30px;
    text-align: right;
}

.form-group label {
    display: block;
    margin-bottom: 15px;
    font-weight: 700;
    color: #fff;
    font-size: 1.1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    background: #222;
    border: 1px solid #333;
    border-radius: 8px;
    color: #fff;
    font-family: 'Cairo', sans-serif;
    transition: var(--transition);
    text-align: right;
    direction: rtl;
    font-size: 1.1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(110, 69, 226, 0.3);
    outline: none;
}

.form-group textarea {
    height: 180px;
    resize: vertical;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.info-item {
    background: #111;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    transition: var(--transition);
}

.info-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(110, 69, 226, 0.25);
}

.info-icon {
    font-size: 1.8rem;
    color: var(--primary-light);
    margin-bottom: 20px;
}

.info-item h3 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.info-item p, 
.info-item a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.1rem;
}

.info-item a:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

/* قسم Call to Action */
.cta-section {
    padding: 120px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    text-align: center;
    color: #fff;
}

.cta-content h2 {
    font-size: 3rem;
    margin-bottom: 25px;
}

.cta-content p {
    font-size: 1.4rem;
    margin-bottom: 40px;
    color: rgba(255,255,255,0.85);
}

/* الفوتر */
.footer {
    background-color: #111;
    padding: 25px 0 10px;
    border-top: none;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.footer-logo {
    height: 70px;
    margin-bottom: 15px;
}

.footer-brand p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-size: 1rem;
    line-height: 1.6;
}

.footer-links h3,
.footer-contact h3 {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
}

.footer-links h3::after,
.footer-contact h3::after {
    width: 50px;
    height: 2px;
}

.footer-links ul {
    list-style-type: disc; /* الحفاظ على النقاط في قسم الروابط */
    padding-left: 20px; /* مسافة بادئة مناسبة للنقاط */
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    font-size: 1rem;
    text-decoration: none;
}

.footer-contact ul {
    list-style-type: none; /* إزالة النقاط من قسم جهات الاتصال */
    padding-left: 0;
}

.footer-contact ul li {
    margin-bottom: 12px;
    font-size: 1rem;
}

.footer-contact ul li i {
    font-size: 1.1rem;
    margin-left: 10px;
}

.social-links {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.social-links a {
    color: var(--text-main);
    background: var(--primary-dark);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    text-decoration: none;
    font-size: 1.2rem;
}

.social-links a:hover {
    background: var(--primary-light);
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 35px;
    border-top: 1px solid rgba(255,255,255,0.15);
    color: #666;
    font-size: 1rem;
}
/* شات بوت */
.chat-bot {
    position: fixed;
    bottom: 25px;
    left: 25px;
    width: 380px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 35px rgba(0,0,0,0.25);
    z-index: 1000;
    display: none;
    flex-direction: column;
    overflow: hidden;
    font-family: 'Cairo', sans-serif;
}

.chat-toggle {
    position: fixed;
    bottom: 25px;
    left: 25px;
    width: 70px;
    height: 70px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.chat-toggle:hover {
    transform: scale(1.1);
    animation: none;
}

.chat-header {
    background: var(--primary-color);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 700;
}

.close-chat {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.4rem;
}

.chat-messages {
    height: 350px;
    overflow-y: auto;
    padding: 20px;
    background: #f5f5f5;
    display: flex;
    flex-direction: column;
}

.message {
    margin-bottom: 15px;
    padding: 15px 20px;
    border-radius: 15px;
    max-width: 85%;
    position: relative;
    animation: fadeIn 0.3s ease;
    font-size: 1.1rem;
}

.message.bot {
    background: rgb(7, 7, 7);
    align-self: flex-start;
    border: 1px solid #eee;
}

.message.user {
    background: var(--primary-light);
    color: rgb(4, 4, 4);
    align-self: flex-end;
}

.chat-input {
    display: flex;
    padding: 15px;
    border-top: 1px solid #eee;
    background: white;
}

.chat-input input {
    flex: 1;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-left: 15px;
    direction: rtl;
    text-align: right;
    font-family: 'Cairo', sans-serif;
    font-size: 1.1rem;
}

.chat-input button {
    background: var(--primary-color);
    color: white;
    border: none;
    width: 50px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.2rem;
}

.chat-input button:hover {
    background: var(--primary-dark);
}
@media (max-width: 768px) {
  .hero {
    height: 70vh; /* تصغير الارتفاع على الشاشات الصغيرة */
  }
}


/* تأثيرات الحركة */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

@keyframes shadowPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(110, 69, 226, 0.4);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(110, 69, 226, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(110, 69, 226, 0);
    }
}

/* التجاوب مع الشاشات الصغيرة */
@media (max-width: 1200px) {
    .container {
        width: 95%;
    }

    .hero {
        position: static;
    }
}

@media (max-width: 992px) {
    .hero {
        position: static;
    }

    .service-details,
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .service-img {
        order: -1;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .navbar {
        height: 110px;
        padding: 10px 0;
        
    }
    
    .logo-img {
        height: 90px !important;
    }
    
    .navbar.scrolled .logo-img {
        height: 90px !important;
    }

    .nav-links {
        position: fixed;
        top: 110px;
        right: 0;
        width: 100%;
        height: calc(100vh - 110px);
        background-color: var(--darker-color);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 40px;
        align-items: center;
        clip-path: circle(0px at 90% -10%);
        transition: all 0.7s ease-out;
    }

    .nav-links.open {
        clip-path: circle(1500px at 90% -10%);
    }

    .nav-links li {
        margin: 20px 0;
    }

    .hamburger {
        display: flex;
    }

    .hero {
        margin-top: 110px;
        position: static;
    }
    
    .hero h1 {
        font-size: 3rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .contact-hero .hero-bg {
        background-position: -250px;
    }

    .section-title,
    .page-title {
        font-size: 2.5rem;
    }
    
    .hero-btns {
        flex-direction: column;
        gap: 20px;
    }
    
    .featured-services {
        padding: 175px 0;
        background: var(--darker-color);
    }

    .projects-grid,
    .projects-showcase,
    .services-grid,
    .about-content {
        grid-template-columns: 1fr;
    }

    .projects-page .container {
        padding: 75px 0;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .navbar {
        height: 100px;
    }
    
    .logo-img {
        height: 80px !important;
    }
    
    .navbar.scrolled .logo-img {
        height: 80px !important;
    }

    .nav-links {
        top: 100px;
        height: calc(100vh - 100px);
    }

    .hero {
        margin-top: 100px;
        position: static;
    }

    .contact-hero .hero-bg {
        background-position: -325px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }

    .featured-services {
        padding: 175px 0;
        background: var(--darker-color);
    }

    .section-title,
    .page-title {
        font-size: 2.2rem;
    }

    .chat-bot {
        width: 90%;
        left: 5%;
    }
    
    .chat-toggle {
        width: 60px;
        height: 60px;
    }
    
    .whatsapp-float {
        width: 60px;
        height: 60px;
    }
    
    .whatsapp-float i {
        font-size: 30px;
    }
}

@media (max-width: 375px) {
    .gallery-grid {
        justify-items: center;
    }

    .gallery-item {
        width: 350px;
    }

    .contact-hero .hero-bg {
        background-position: -350px;
    }
 }

/* تحسين عرض محتوى صفحة من نحن على الموبايل */
@media (max-width: 768px) {
  .about-page .container {
    padding: 15px;
  }

  .about-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
  }

  .about-content > div {
    width: 100%;
    padding: 15px;
    text-align: center;
  }

  .about-icon {
    font-size: 2rem;
    margin-bottom: 10px;
  }

  .about-values ul {
    padding-right: 0;
    text-align: right;
  }

  .about-values li {
    font-size: 1rem;
    margin-bottom: 10px;
    line-height: 1.6;
  }

  .about-stats {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
  }

  .stat-item {
    text-align: center;
  }

  .about-start {
    text-align: center;
    padding: 15px;
  }

  .about-start h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
  }

  .about-start p {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .about-start .btn {
    font-size: 1rem;
    padding: 10px 20px;
  }
}
/* إصلاحات iOS المخصصة لموقع برق */
@supports (-webkit-touch-callout: none) {
  /* تحسينات عامة */
  html {
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: rgba(110, 69, 226, 0.3); /* لون Primary مع opacity */
    height: 100%;
  }
  
  body {
    overflow-x: hidden;
    overscroll-behavior-y: none;
    -webkit-overflow-scrolling: touch;
    min-height: 100%;
    background-color: #0a0a0a; /* لون الخلفية الداكن */
  }

  /* إصلاحات الشريط العلوي */
  .navbar {
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    position: -webkit-sticky;
    padding-top: env(safe-area-inset-top);
  }

  /* إصلاحات قسم البطل */
  .hero {
    height: 100vh;
    height: -webkit-fill-available;
  }
  
  .hero-bg {
    object-position: center top;
  }

  /* إصلاحات صفحة من نحن */
  .about-page {
    padding-bottom: env(safe-area-inset-bottom);
  }
  
  .about-content > div {
    transform: translateZ(0);
    -webkit-transform-style: preserve-3d;
    will-change: transform;
  }

  /* إصلاحات العدادات */
  .stat-item {
    -webkit-font-smoothing: antialiased;
  }

  /* إصلاحات الصور */
  img:not([src*=".svg"]) {
    -webkit-user-drag: none;
    user-select: none;
  }
  
  /* إصلاحات الفيديو */
  video {
    object-fit: cover;
    object-position: center;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
  }

  /* إصلاحات الأزرار */
  .btn {
    -webkit-appearance: none;
    transform: translateZ(0);
  }
  
  /* إصلاحات التمرير اللطيف */
  [data-wow-delay] {
    transition-delay: 0s !important;
    animation-delay: 0s !important;
  }

  /* إصلاحات منطقة الأمان */
  @supports (padding-bottom: env(safe-area-inset-bottom)) {
    body {
      padding-left: env(safe-area-inset-left);
      padding-right: env(safe-area-inset-right);
    }
    
    .footer {
      padding-bottom: calc(30px + env(safe-area-inset-bottom));
    }
  }
}
