:root {
    --primary-color: #7E2D96;
    --primary-dark: #5C216E;
    --primary-light: #9755AA;
    --accent-color: #88d3ce;
    --dark-color: #121212;
    --darker-color: #0a0a0a;
    --text-main: #F2F0D9;
    --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: 60px !important;
    width: auto !important;
    transition: var(--transition);
    object-fit: contain;
}

.navbar.scrolled .logo-img {
    height: 55px !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: #F2F0D9;
    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(min(100%, 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: #F2F0D9;
    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: none;
    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: none;
    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(min(100%, 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: #F2F0D9;
}

.about-header p {
    color: var(--text-secondary);
    font-size: 1.4rem;
}

.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 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: #F2F0D9;
    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: #F2F0D9;
    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: #F2F0D9;
}

.contact-header p {
    color: var(--text-secondary);
    font-size: 1.4rem;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 45px;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.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: #F2F0D9;
    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: #F2F0D9;
    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: #F2F0D9;
    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: #F2F0D9;
}

.cta-content h2 {
    font-size: 3rem;
    margin-bottom: 25px;
}

.cta-content p {
    font-size: 1.4rem;
    margin-bottom: 40px;
    color: rgba(242,240,217,0.85);
}

/* الفوتر */
.footer {
    background-color: #111;
    padding: 25px 0 10px;
    border-top: none;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.footer-logo {
    height: 45px;
    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: #F2F0D9;
    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;
}

.chat-header-buttons {
    display: flex;
    gap: 10px;
}

.close-chat,
.clear-chat {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 5px;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.close-chat:hover,
.clear-chat:hover {
    opacity: 1;
    transform: scale(1.1);
}

.clear-chat {
    font-size: 1rem;
}

.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: 1rem;
    line-height: 1.6;
}

.message p {
    margin: 0;
}

.message a {
    color: #007bff;
    text-decoration: underline;
    font-weight: 600;
}

.message b,
.message strong {
    font-weight: 700;
    color: #000000;
}

.message.bot {
    background: #f8f9fa;
    align-self: flex-start;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    color: #000000;
}

.message.bot p {
    color: #000000;
}

.message.bot a {
    color: #0056b3;
}

.message.user {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    align-self: flex-end;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.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);
}

/* Typing Indicator */
.typing-indicator p {
    display: flex;
    gap: 4px;
    align-items: center;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    display: inline-block;
    animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.7;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* Message Animation */
.message {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

/* Quick Replies */
.quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px;
    margin-top: 10px;
    animation: fadeInUp 0.4s ease;
}

.quick-reply-btn {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
}

.quick-reply-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 123, 255, 0.4);
    background: linear-gradient(135deg, #0056b3 0%, #003d82 100%);
}

.quick-reply-btn:active {
    transform: translateY(-1px);
}

@media (max-width: 600px) {
    .quick-reply-btn {
        padding: 8px 14px;
        font-size: 0.8rem;
    }
}

/* Hero height handled in main responsive section below */


/* تأثيرات الحركة */
@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);
    }
}

/* ============================== */
/* التجاوب مع جميع أحجام الشاشات  */
/* ============================== */

/* --- Large Desktop (1440px+) --- */
@media (min-width: 1441px) {
    .container {
        max-width: 1400px;
    }
}

/* --- Desktop (1200px) --- */
@media (max-width: 1200px) {
    .container {
        width: 95%;
    }

    .hero {
        position: static;
    }
    
    .hero h1 {
        font-size: 3.8rem;
    }
    
    .section-title {
        font-size: 2.8rem;
    }
}

/* --- Small Desktop / Laptop (1024px) --- */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .hero p {
        font-size: 1.3rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .service-details {
        gap: 30px;
    }
    
    .contact-container {
        gap: 30px;
    }
    
    .about-stats {
        gap: 20px;
    }
    
    .cta-content h2 {
        font-size: 2.5rem;
    }
}

/* --- Tablet Landscape (992px) --- */
@media (max-width: 992px) {
    .hero {
        position: static;
    }

    .service-details,
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .service-img {
        order: -1;
    }
    
    .projects-showcase {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .hero h1 {
        font-size: 3.2rem;
    }
    
    .hero-content {
        padding: 0 20px;
    }
    
    .btn {
        padding: 15px 35px;
        font-size: 1rem;
    }
    
    .featured-services,
    .featured-projects {
        padding: 80px 0;
    }
    
    .cta-section {
        padding: 80px 0;
    }
    
    .cta-content h2 {
        font-size: 2.2rem;
    }
    
    .cta-content p {
        font-size: 1.2rem;
    }
    
    .about-header h1,
    .contact-header h1 {
        font-size: 3rem;
    }
    
    .service-content h2 {
        font-size: 2rem;
    }
}

/* --- Tablet Portrait (768px) --- */
@media (max-width: 768px) {
    .navbar {
        height: 90px;
        padding: 8px 0;
    }
    
    .logo-img {
        height: 40px !important;
    }
    
    .navbar.scrolled .logo-img {
        height: 35px !important;
    }

    .nav-links {
        position: fixed;
        top: 90px;
        right: 0;
        width: 100%;
        height: calc(100vh - 90px);
        height: calc(100dvh - 90px);
        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;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-links.open {
        clip-path: circle(1500px at 90% -10%);
    }

    .nav-links li {
        margin: 15px 0;
    }
    
    .nav-links a {
        font-size: 1.3rem;
        padding: 12px 20px;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .hamburger {
        display: flex;
    }

    .hero {
        margin-top: 90px;
        position: static;
        height: 70vh;
        height: 70dvh;
        min-height: 400px;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }

    .hero p {
        font-size: 1.15rem;
        margin-bottom: 30px;
    }

    .contact-hero .hero-bg {
        background-position: center;
    }

    .section-title,
    .page-title {
        font-size: 2.3rem;
        margin-bottom: 50px;
    }
    
    .hero-btns {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .hero-btns .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    .featured-services,
    .featured-projects {
        padding: 60px 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .projects-grid,
    .projects-showcase,
    .about-content {
        grid-template-columns: 1fr;
    }

    .projects-page .container {
        padding: 40px 0;
    }
    
    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .stat-item {
        padding: 20px 10px;
    }
    
    .stat-number {
        font-size: 2.2rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .cta-section {
        padding: 60px 0;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-content p {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
    
    .contact-header h1,
    .about-header h1 {
        font-size: 2.5rem;
    }
    
    .contact-header p,
    .about-header p {
        font-size: 1.1rem;
    }
    
    .service-content h2 {
        font-size: 1.8rem;
    }
    
    .service-content p,
    .service-content li {
        font-size: 1rem;
    }
    
    .services-page,
    .about-page,
    .contact-page {
        padding: 80px 0;
    }
    
    .chat-bot {
        width: 92%;
        left: 4%;
        bottom: 80px;
        border-radius: 12px;
    }
    
    .chat-messages {
        height: 300px;
    }
}

/* --- Large Phone (576px) --- */
@media (max-width: 576px) {
    .navbar {
        height: 80px;
        padding: 5px 0;
    }
    
    .logo-img {
        height: 35px !important;
    }
    
    .navbar.scrolled .logo-img {
        height: 30px !important;
    }

    .nav-links {
        top: 80px;
        height: calc(100vh - 80px);
        height: calc(100dvh - 80px);
        padding-top: 30px;
    }

    .hero {
        margin-top: 80px;
        position: static;
        height: 65vh;
        height: 65dvh;
        min-height: 350px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }
    
    .hero p {
        font-size: 1.05rem;
        margin-bottom: 25px;
    }
    
    .hero-content {
        padding: 0 15px;
    }

    .section-title,
    .page-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    .section-title::after {
        width: 50px;
    }
    
    .btn {
        padding: 14px 30px;
        font-size: 0.95rem;
    }
    
    .btn-small {
        padding: 10px 22px;
        font-size: 0.9rem;
    }

    .featured-services,
    .featured-projects {
        padding: 50px 0;
    }
    
    .service-card {
        padding: 18px;
    }
    
    .service-content h3 {
        font-size: 1.4rem;
    }
    
    .service-content p {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .service-icon {
        font-size: 2.5rem;
        margin-bottom: 18px;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stat-item {
        padding: 25px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .about-header h1,
    .contact-header h1 {
        font-size: 2.2rem;
    }
    
    .about-header p,
    .contact-header p {
        font-size: 1rem;
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
    
    .cta-section {
        padding: 50px 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom p {
        font-size: 0.85rem;
        line-height: 1.8;
    }

    .chat-bot {
        width: 94%;
        left: 3%;
        bottom: 75px;
    }
    
    .chat-toggle {
        width: 56px;
        height: 56px;
    }
    
    .chat-toggle i {
        font-size: 1.4rem;
    }
    
    .whatsapp-float {
        width: 56px;
        height: 56px;
        bottom: 25px;
        right: 15px;
    }
    
    .whatsapp-float i {
        font-size: 28px;
    }
    
    .contact-form {
        padding: 25px 15px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-group label {
        font-size: 1rem;
        margin-bottom: 10px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 12px 15px;
        font-size: 1rem;
    }
    
    .info-item {
        padding: 20px;
    }
    
    .info-item h3 {
        font-size: 1.2rem;
    }
    
    .services-page,
    .about-page,
    .contact-page {
        padding: 60px 0;
    }
    
    .service-details {
        margin-bottom: 50px;
        gap: 25px;
    }
    
    .service-content h2 {
        font-size: 1.6rem;
    }
    
    .chat-messages {
        height: 280px;
    }
    
    .chat-input input {
        padding: 12px;
        font-size: 1rem;
    }
}

/* --- Medium Phone (480px) --- */
@media (max-width: 480px) {
    .container {
        width: 92%;
        padding: 0 10px;
    }
    
    .hero h1 {
        font-size: 1.9rem;
        line-height: 1.3;
    }
    
    .hero p {
        font-size: 0.95rem;
    }
    
    .section-title,
    .page-title {
        font-size: 1.8rem;
        margin-bottom: 35px;
    }
    
    .service-content h3 {
        font-size: 1.3rem;
    }
    
    .about-story,
    .about-vision,
    .about-mission,
    .about-values {
        padding: 25px 18px;
        min-height: auto;
    }
    
    .about-story h2,
    .about-vision h2,
    .about-mission h2,
    .about-values h2 {
        font-size: 1.4rem;
    }
    
    .about-story p,
    .about-vision p,
    .about-mission p,
    .about-start p {
        font-size: 1rem;
    }
    
    .about-values li {
        font-size: 1rem;
    }
    
    .gallery-grid {
        gap: 20px;
    }
    
    .gallery-item {
        width: 100%;
    }
}

/* --- Small Phone (390px - iPhone 14/15, common Android) --- */
@media (max-width: 390px) {
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .hero p {
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
    
    .section-title,
    .page-title {
        font-size: 1.65rem;
    }
    
    .cta-content h2 {
        font-size: 1.5rem;
    }
    
    .cta-content p {
        font-size: 0.9rem;
    }
    
    .navbar {
        height: 75px;
    }
    
    .nav-links {
        top: 75px;
        height: calc(100vh - 75px);
        height: calc(100dvh - 75px);
    }
    
    .hero {
        margin-top: 75px;
    }
    
    .logo-img {
        height: 32px !important;
    }
}

/* --- Extra Small Phone (360px - many Android phones) --- */
@media (max-width: 360px) {
    .hero h1 {
        font-size: 1.6rem;
    }
    
    .hero p {
        font-size: 0.85rem;
    }
    
    .section-title,
    .page-title {
        font-size: 1.5rem;
    }
    
    .service-card {
        padding: 15px;
    }
    
    .service-content h3 {
        font-size: 1.2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
    
    .footer-brand p {
        font-size: 0.9rem;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 12px;
    }
    
    .whatsapp-float i {
        font-size: 24px;
    }
    
    .chat-toggle {
        width: 50px;
        height: 50px;
        bottom: 20px;
        left: 12px;
    }
    
    .chat-bot {
        width: 96%;
        left: 2%;
    }
}

/* --- Tiny Phone (320px - iPhone SE 1st gen, old Android) --- */
@media (max-width: 320px) {
    .container {
        width: 95%;
        padding: 0 8px;
    }
    
    .hero h1 {
        font-size: 1.4rem;
    }
    
    .hero p {
        font-size: 0.8rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
    
    .section-title,
    .page-title {
        font-size: 1.35rem;
    }
    
    .about-story h2,
    .about-vision h2,
    .about-mission h2,
    .about-values h2 {
        font-size: 1.2rem;
    }
    
    .cta-content h2 {
        font-size: 1.3rem;
    }
    
    .navbar {
        height: 70px;
    }
    
    .nav-links {
        top: 70px;
        height: calc(100vh - 70px);
        height: calc(100dvh - 70px);
    }
    
    .hero {
        margin-top: 70px;
        min-height: 280px;
    }
    
    .logo-img {
        height: 28px !important;
    }
}

/* --- Landscape Phone (short height) --- */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        height: auto;
        min-height: 100vh;
        min-height: 100dvh;
        padding: 100px 0 40px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }
    
    .hero-btns {
        flex-direction: row;
        gap: 15px;
    }
    
    .nav-links {
        padding-top: 10px;
    }
    
    .nav-links li {
        margin: 8px 0;
    }
}

/* --- Tablet Landscape (landscape orientation, tablet widths) --- */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
    .hero {
        height: 100vh;
        height: 100dvh;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-stats {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .contact-container {
        grid-template-columns: 1fr 1fr;
    }
}

/* تحسين عرض محتوى صفحة من نحن على الموبايل */
@media (max-width: 768px) {
  .about-page .container {
    padding: 15px;
  }

  .about-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
  }

  .about-content > div {
    width: 100%;
    text-align: center;
  }

  .about-icon {
    font-size: 2.2rem;
    margin-bottom: 12px;
  }

  .about-values ul {
    padding-right: 0;
    text-align: right;
  }

  .about-values li {
    font-size: 1rem;
    margin-bottom: 10px;
    line-height: 1.7;
  }

  .about-stats {
    margin-top: 30px;
  }

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

  .about-start {
    text-align: center;
    padding: 20px;
  }

  .about-start h2 {
    font-size: 1.6rem;
    margin-bottom: 12px;
  }

  .about-start p {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .about-start .btn {
    font-size: 1rem;
    padding: 12px 25px;
  }
}

@media (max-width: 576px) {
  .about-page .container {
    padding: 10px;
  }
  
  .about-icon {
    font-size: 2rem;
  }
}

/* صفحات السياسات والشروط */
.policy-page {
    padding: 80px 0;
    background: #0a0a0a;
    position: relative;
    min-height: 100vh;
}

.policy-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.1;
    z-index: 0;
}

.policy-page .container {
    position: relative;
    z-index: 1;
}

.policy-content {
    max-width: 900px;
    margin: 0 auto;
}

.policy-section {
    background: #111;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 30px;
    transition: var(--transition);
}

.policy-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(110, 69, 226, 0.15);
}

.policy-icon {
    font-size: 2.5rem;
    color: var(--primary-light);
    margin-bottom: 20px;
    text-align: center;
}

.policy-section h2 {
    color: #F2F0D9;
    font-size: 2rem;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-light);
}

.policy-section h3 {
    color: var(--primary-light);
    font-size: 1.4rem;
    margin: 25px 0 15px;
}

.policy-section p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 2;
    margin-bottom: 20px;
    text-align: justify;
}

.policy-section ul {
    list-style-type: none;
    padding: 0;
    margin: 20px 0;
}

.policy-section ul li {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 15px;
    padding-right: 30px;
    position: relative;
    line-height: 1.8;
}

.policy-section ul li::before {
    content: "✓";
    position: absolute;
    right: 0;
    color: var(--primary-light);
    font-weight: bold;
    font-size: 1.2rem;
}

.policy-section ul ul {
    margin-top: 10px;
    padding-right: 20px;
}

.policy-section ul ul li::before {
    content: "—";
    color: var(--accent-color);
}

.policy-section strong {
    color: var(--primary-light);
    font-weight: 700;
}

.contact-list {
    background: rgba(126, 45, 150, 0.1);
    padding: 20px;
    border-radius: 8px;
    border-right: 4px solid var(--primary-light);
}

.contact-list li {
    display: flex;
    align-items: center;
    padding: 10px 0;
}

.contact-list li i {
    margin-left: 15px;
    color: var(--primary-light);
    font-size: 1.2rem;
}

.contact-list a {
    color: var(--primary-light);
    text-decoration: none;
    transition: var(--transition);
}

.contact-list a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.policy-footer {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    padding: 35px;
    border-radius: 12px;
    text-align: center;
    margin-top: 40px;
}

.policy-footer p {
    color: #F2F0D9;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.policy-footer .btn {
    margin-top: 20px;
}

@media (max-width: 768px) {
    .policy-section {
        padding: 25px 20px;
    }
    
    .policy-section h2 {
        font-size: 1.6rem;
    }
    
    .policy-section h3 {
        font-size: 1.2rem;
    }
    
    .policy-section p,
    .policy-section ul li {
        font-size: 1rem;
    }
    
    .policy-icon {
        font-size: 2rem;
    }
    
    .policy-page {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .policy-section {
        padding: 20px 15px;
    }
    
    .policy-section h2 {
        font-size: 1.4rem;
    }
    
    .policy-section h3 {
        font-size: 1.1rem;
    }
    
    .policy-section p,
    .policy-section ul li {
        font-size: 0.95rem;
    }
    
    .policy-footer {
        padding: 25px 15px;
    }
    
    .policy-footer p {
        font-size: 1rem;
    }
    
    .contact-list {
        padding: 15px;
    }
}

/* إصلاحات iOS المخصصة لموقع برق */
@supports (-webkit-touch-callout: none) {
  /* تحسينات عامة */
  html {
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: rgba(110, 69, 226, 0.3);
    height: 100%;
    height: -webkit-fill-available;
  }
  
  body {
    overflow-x: hidden;
    overscroll-behavior-y: none;
    -webkit-overflow-scrolling: touch;
    min-height: 100%;
    min-height: -webkit-fill-available;
    background-color: #0a0a0a;
  }

  /* إصلاحات الشريط العلوي */
  .navbar {
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    position: fixed;
    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);
    transform-style: preserve-3d;
    -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);
    mask-image: radial-gradient(white, black);
  }

  /* إصلاحات الأزرار */
  .btn {
    appearance: none;
    -webkit-appearance: none;
    transform: translateZ(0);
  }
  
  /* إصلاح حقول الإدخال على iOS */
  input, textarea, select {
    -webkit-appearance: none;
    appearance: none;
    border-radius: 8px;
    font-size: 16px; /* منع التكبير التلقائي على iOS */
  }
  
  /* إصلاحات التمرير اللطيف */
  [data-wow-delay] {
    transition-delay: 0s !important;
    animation-delay: 0s !important;
  }
  
  /* إصلاح الشات بوت - منع القفز عند فتح الكيبورد */
  .chat-bot {
    position: fixed;
  }
  
  .chat-input input {
    font-size: 16px; /* منع zoom على iOS */
  }

  /* إصلاحات منطقة الأمان - iPhone notch/Dynamic Island */
  @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));
    }
    
    .whatsapp-float {
      bottom: calc(25px + env(safe-area-inset-bottom));
    }
    
    .chat-toggle {
      bottom: calc(25px + env(safe-area-inset-bottom));
    }
    
    .chat-bot {
      bottom: calc(80px + env(safe-area-inset-bottom));
    }
  }
}