/* استيراد الخطوط */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700&display=swap');

/* متغيرات CSS */
:root {
    --primary-color: #1a3a5f;
    --secondary-color: #e63946;
    --accent-color: #f1faee;
    --text-color: #2b2d42;
    --light-gray: #f8f9fa;
    --dark-gray: #343a40;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

/* إعدادات عامة */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tajawal', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* رأس الصفحة */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 70px;
    margin-left: 10px;
}

.logo h2 {
    color: var(--primary-color);
    font-weight: 700;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-right: 25px;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--secondary-color);
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

/* قسم البطل */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding: 0 20px;
}

.hero-content {
    max-width: 800px;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    animation: fadeInDown 1s ease;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--secondary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    transition: var(--transition);
    border: 2px solid var(--secondary-color);
    animation: fadeInUp 1.2s ease;
}

.btn:hover {
    background-color: transparent;
    color: var(--white);
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.btn-secondary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.btn-whatsapp {
    background-color: #25D366;
    border-color: #25D366;
}

.btn-whatsapp:hover {
    background-color: transparent;
    color: #25D366;
}

/* قسم من نحن */
.about {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* قسم المميزات */
.features {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--white);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.feature-card p {
    color: var(--dark-gray);
}

/* قسم الوجهات السياحية */
.destinations {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--dark-gray);
    margin-bottom: 50px;
}

.destinations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.destination-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    height: 300px;
}

.destination-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.destination-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.destination-card:hover img {
    transform: scale(1.1);
}

.destination-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: var(--white);
}

.destination-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* قسم المعرض */
.gallery {
    padding: 80px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    height: 250px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: var(--white);
    font-size: 2rem;
    transform: translateY(20px);
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay i {
    transform: translateY(0);
}

/* قسم الفيديوهات */
.videos {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.video-item {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.video-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.video-placeholder {
    height: 200px;
    background-color: var(--dark-gray);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    font-size: 3rem;
    cursor: pointer;
}

.video-item h3 {
    padding: 20px;
    text-align: center;
    color: var(--primary-color);
}

/* قسم آراء العملاء */
.testimonials {
    padding: 80px 0;
}

.testimonials-slider {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 50px;
}

.testimonial-card {
    background-color: var(--white);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    max-width: 400px;
    text-align: center;
}

.stars {
    color: #ffc107;
    margin-bottom: 15px;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 20px;
}

.client-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.client-info img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--light-gray);
    padding: 30px;
    border-radius: 10px;
}

.testimonial-form h3 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.testimonial-form input,
.testimonial-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Tajawal', sans-serif;
}

.testimonial-form textarea {
    resize: vertical;
    min-height: 120px;
}

/* تذييل الصفحة */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 15px;
}

.footer-logo h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.footer-links h4,
.footer-contact h4,
.footer-social h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
}

.footer-links h4::after,
.footer-contact h4::after,
.footer-social h4::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 40px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-links ul,
.footer-contact ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--accent-color);
}

.footer-contact ul li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.footer-contact ul li i {
    margin-left: 10px;
}

.footer-social .social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social .social-icons a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: var(--transition);
}

.footer-social .social-icons a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
}

.copyright {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* رسوم متحركة */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* تصميم متجاوب للأجهزة المحمولة */
@media (max-width: 1200px) {
    .container {
        width: 95%;
    }
}

@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
    }

    .about-text,
    .about-image {
        flex: 1;
        width: 100%;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links h4::after,
    .footer-contact h4::after,
    .footer-social h4::after {
        right: 50%;
        transform: translateX(50%);
    }

    .footer-social .social-icons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    nav ul {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        text-align: center;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        transform: translateY(-100vh);
        transition: var(--transition);
    }

    nav ul.active {
        transform: translateY(0);
    }

    nav ul li {
        margin: 10px 0;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .testimonials-slider {
        flex-direction: column;
        align-items: center;
    }

    .logo img {
        height: 50px;
    }

    .logo h2 {
        font-size: 1.2rem;
    }

    header {
        padding: 10px 0;
    }

    .features-grid, .destinations-grid, .gallery-grid, .videos-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .about, .features, .destinations, .gallery, .videos, .testimonials {
        padding: 50px 0;
    }

    .feature-card, .destination-card, .gallery-item, .video-item {
        margin-bottom: 20px;
    }

    .btn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .hero {
        height: 80vh;
        padding: 0 15px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .logo h2 {
        font-size: 1rem;
    }

    .logo img {
        height: 40px;
    }

    header {
        padding: 8px 0;
    }

    .container {
        width: 100%;
        padding: 0 10px;
    }

    .about-text h2 {
        font-size: 1.8rem;
    }

    .about-text p {
        font-size: 1rem;
    }

    .feature-card h3 {
        font-size: 1.3rem;
    }

    .feature-card p {
        font-size: 0.9rem;
    }

    .destination-info h3 {
        font-size: 1.2rem;
    }

    .destination-info p {
        font-size: 0.9rem;
    }

    .testimonial-card {
        padding: 20px;
    }

    .testimonial-card p {
        font-size: 0.9rem;
    }

    .testimonial-form input,
    .testimonial-form textarea {
        padding: 12px;
        font-size: 0.9rem;
    }

    .footer-logo img {
        height: 50px;
    }

    .footer-logo h3 {
        font-size: 1.3rem;
    }

    .footer-logo p {
        font-size: 0.9rem;
    }

    .footer-links h4,
    .footer-contact h4,
    .footer-social h4 {
        font-size: 1.1rem;
    }

    .footer-links ul li a,
    .footer-contact ul li {
        font-size: 0.9rem;
    }

    .copyright p {
        font-size: 0.8rem;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        right: 15px;
        bottom: 15px;
    }

    .whatsapp-float i {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .about-text h2 {
        font-size: 1.6rem;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .feature-card, .testimonial-card {
        padding: 15px;
    }

    .btn {
        padding: 8px 20px;
    }

    .testimonial-form {
        padding: 20px;
    }

    .footer-content {
        gap: 30px;
    }
}

/* زر الواتساب العائم */
.whatsapp-float{
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 60px;
  height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
  z-index: 10000;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
/* إضافة لعرض أيقونة FA */
.whatsapp-float i{ font-size:28px; color:#fff; line-height:1; }
.whatsapp-float svg{ display:block; }
.whatsapp-float:hover{ transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0,0,0,0.22); }
@media (max-width:480px){
  .whatsapp-float{ right:14px; bottom:14px; width:54px; height:54px; }
}

/* تحسينات إضافية للأجهزة المحمولة */
.image-modal, .video-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  text-align: center;
}

.modal-content img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 5px;
}

.modal-content h3 {
  color: var(--white);
  margin-bottom: 15px;
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 5px;
}

.close-modal {
  position: absolute;
  top: -40px;
  right: 0;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  transition: var(--transition);
}

.close-modal:hover {
  color: var(--secondary-color);
}

@media (max-width: 768px) {
  .modal-content {
    max-width: 95%;
  }

  .close-modal {
    top: -30px;
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .modal-content {
    max-width: 98%;
  }

  .close-modal {
    top: -25px;
    font-size: 1.2rem;
  }

  .modal-content h3 {
    font-size: 1.2rem;
  }
}

/* تحسينات إضافية للأزرار والنماذج */
.btn, button[type="submit"] {
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

input, textarea, select {
  font-size: 16px; /* منع التكبير التلقائي في iOS */
}

/* تحسينات للأداء على الأجهزة المحمولة */
* {
  -webkit-tap-highlight-color: transparent;
}

body {
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

/* تحسينات للتمرير السلس */
html {
  scroll-behavior: smooth;
}

/* تحسينات للصور */
img {
  max-width: 100%;
  height: auto;
}