/* Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap");

/* Dubai Font for Arabic */
@font-face {
  font-family: "Dubai";
  src: local("Dubai");
  font-weight: 300 700;
}

/* CSS Variables - Updated Color Scheme */
:root {
  --primary-color: #160100;
  --secondary-color: #f2ce66; /* تغيير من #d4af37 */
  --secondary-gradient: linear-gradient(
    135deg,
    #f2ce66 0%,
    #a86c1e 50%,
    #f2ce66 100%
  ); /* تدرج جديد */
  --dark-color: #0d0000;
  --text-light: #f9f3e1;
  --border-color: rgba(242, 206, 102, 0.3); /* تحديث للون الحدود */
  --gold-light: #f2ce66; /* تغيير من #f2ce66 */
  --gold-dark: #a86c1e; /* تغيير من #c5a028 */
  --bg-light: #ffffff;
  --bg-alt: #f9f9f9;
  --font-en: "Montserrat", sans-serif;
  --font-ar: "Dubai", sans-serif;
  --transition: all 0.3s ease;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-en);
  color: #333333;
  background-color: var(--bg-light);
  background-image: url("../image/celine-ready.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.92);
  z-index: -1;
  pointer-events: none;
}

body[dir="rtl"] {
  font-family: var(--font-ar);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Fixed Contact Buttons */
.fixed-contact {
  position: fixed;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

body[dir="rtl"] .fixed-contact {
  right: auto;
  left: 30px;
}

.contact-btn {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 6px 20px rgba(22, 1, 0, 0.4);
}

.contact-btn.whatsapp {
  background-color: #25d366;
  color: white;
}

.contact-btn.phone {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.contact-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.5);
}

/* Header Styles */
.header {
  background-color: transparent;
  padding: 20px 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.header.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 15px rgba(22, 1, 0, 0.15);
  backdrop-filter: blur(15px);
}

.header .nav-link {
  color: var(--text-light);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.header.scrolled .nav-link {
  color: #333333;
  text-shadow: none;
}

.header .lang-switcher {
  background-color: rgba(22, 1, 0, 0.4);
  color: var(--text-light);
  border: 1px solid rgba(242, 206, 102, 0.5);
  backdrop-filter: blur(10px);
}

.header.scrolled .lang-switcher {
  background-color: var(--primary-color);
  color: var(--text-light);
  border: none;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo Styles with Two States */
.logo {
  position: relative;
}

.logo img {
  height: 70px;
  width: auto;
  transition: opacity 0.3s ease;
}

/* Hide second logo by default */
.logo .logo-scrolled {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  pointer-events: none;
}

/* Show second logo when scrolled */
.header.scrolled .logo .logo-default {
  opacity: 0;
}

.header.scrolled .logo .logo-scrolled {
  opacity: 1;
  pointer-events: auto;
}

@media (min-width: 1200px) {
  .logo img {
    height: 80px;
  }
}

@media (max-width: 768px) {
  .logo img {
    height: 55px;
  }
}

@media (max-width: 576px) {
  .logo img {
    height: 45px;
  }
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 30px;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: #333333;
  font-weight: 500;
  font-size: 15px;
  transition: var(--transition);
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #f2ce66 0%, #a86c1e 100%);
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: #f2ce66;
}

.nav-link:hover,
.nav-link.active {
  color: #f2ce66;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.lang-switcher {
  background-color: var(--primary-color);
  color: var(--text-light);
  border: none;
  padding: 10px 20px;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition);
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-switcher svg {
  flex-shrink: 0;
  stroke: var(--text-light);
}

.lang-switcher:hover {
  background: var(--secondary-gradient);
  color: #1a0a00;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(242, 206, 102, 0.5);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--text-light);
  transition: var(--transition);
}

.header.scrolled .menu-toggle span {
  background-color: var(--primary-color);
}

/* Page Header */
.page-header {
  background: linear-gradient(135deg, var(--bg-alt) 0%, var(--bg-light) 100%);
  padding: 80px 0 60px;
  text-align: center;
}

.page-header h1 {
  font-size: 48px;
  margin-bottom: 15px;
  background: var(--secondary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.page-header p {
  font-size: 18px;
  color: #555555;
  opacity: 0.9;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 16px;
}

.btn-primary {
  background: var(--secondary-gradient);
  color: #1a0a00;
  box-shadow: 0 4px 15px rgba(242, 206, 102, 0.4);
  font-weight: 700;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #f2ce66 0%, #f4e4b8 50%, #a86c1e 100%);
  color: #1a0a00;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(242, 206, 102, 0.6);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--secondary-gradient);
  color: #1a0a00;
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(242, 206, 102, 0.4);
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, #160100 0%, #0d0000 100%);
  padding: 80px 0;
  text-align: center;
  color: var(--text-light);
}

.cta-content h2 {
  font-size: 36px;
  margin-bottom: 20px;
  background: var(--secondary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.cta-content p {
  font-size: 18px;
  margin-bottom: 30px;
  color: var(--text-light);
  opacity: 0.95;
  line-height: 1.8;
}

.cta-section .btn-primary {
  background: var(--secondary-gradient);
  color: #1a0a00;
  font-weight: 700;
}

.cta-section .btn-primary:hover {
  background: linear-gradient(135deg, #f2ce66 0%, #f4e4b8 50%, #a86c1e 100%);
  color: #1a0a00;
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(242, 206, 102, 0.5);
}

/* Responsive Design */
@media (max-width: 968px) {
  .nav {
    position: fixed;
    top: 90px;
    right: -100%;
    width: 280px;
    height: calc(100vh - 90px);
    background-color: var(--bg-light);
    padding: 30px;
    transition: var(--transition);
    box-shadow: -5px 0 15px rgba(22, 1, 0, 0.2);
  }

  body[dir="rtl"] .nav {
    right: auto;
    left: -100%;
  }

  .nav.active {
    right: 0;
  }

  body[dir="rtl"] .nav.active {
    right: auto;
    left: 0;
  }

  .nav-list {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }

  .menu-toggle {
    display: flex;
  }

  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }

  .page-header h1 {
    font-size: 36px;
  }

  .page-header p {
    font-size: 16px;
  }

  .fixed-contact {
    right: 15px;
  }

  body[dir="rtl"] .fixed-contact {
    left: 15px;
  }

  .contact-btn {
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 576px) {
  .page-header {
    padding: 60px 0 40px;
  }

  .page-header h1 {
    font-size: 28px;
  }

  .cta-content h2 {
    font-size: 28px;
  }

  .btn {
    padding: 12px 25px;
    font-size: 14px;
  }

  body::before {
    background-color: rgba(255, 255, 255, 0.95);
  }
}

/* Text Direction and Alignment - Enhanced */

/* Arabic (RTL) Text Styles */
body[dir="rtl"] {
  direction: rtl;
  text-align: right;
}

/* Arabic Paragraphs - Justified with Better Spacing */
body[dir="rtl"] p,
body[dir="rtl"] .section-description,
body[dir="rtl"] .hero-description,
body[dir="rtl"] .testimonial-text,
body[dir="rtl"] .feature-card p,
body[dir="rtl"] .step-card p,
body[dir="rtl"] .audience-card p,
body[dir="rtl"] .service-card p,
body[dir="rtl"] .content-section p,
body[dir="rtl"] .blog-content p,
body[dir="rtl"] .plan-description,
body[dir="rtl"] .footer-description,
body[dir="rtl"] .form-description,
body[dir="rtl"] .contact-info-text p,
body[dir="rtl"] .service-list li,
body[dir="rtl"] .how-work-card p,
body[dir="rtl"] .feature-item p {
  text-align: justify;
  text-align-last: right;
  text-justify: inter-word;
  word-spacing: 0.05em;
  hyphens: auto;
  -webkit-hyphens: auto;
  -moz-hyphens: auto;
  line-height: 1.9;
}

/* Arabic Headings - Right Aligned with Better Weight */
body[dir="rtl"] h1,
body[dir="rtl"] h2,
body[dir="rtl"] h3,
body[dir="rtl"] h4,
body[dir="rtl"] h5,
body[dir="rtl"] h6 {
  text-align: right;
  direction: rtl;
  font-weight: 700;
  color: #f2ce66;
}

/* Centered Content in Arabic */
body[dir="rtl"] .centered,
body[dir="rtl"] .section-intro.centered,
body[dir="rtl"] .section-intro.centered p,
body[dir="rtl"] .cta-content p,
body[dir="rtl"] .section-title,
body[dir="rtl"] .hero-main-title,
body[dir="rtl"] .hero-main-subtitle {
  text-align: center;
  direction: rtl;
}

/* Lists in Arabic */
body[dir="rtl"] ul,
body[dir="rtl"] ol,
body[dir="rtl"] .features-list,
body[dir="rtl"] .plan-highlights,
body[dir="rtl"] .nav-list {
  direction: rtl;
  text-align: right;
}

body[dir="rtl"] li {
  text-align: right;
  direction: rtl;
}

/* English (LTR) Text Styles */
body[dir="ltr"] {
  direction: ltr;
  text-align: left;
}

/* English Paragraphs - Justified with Better Readability */
body[dir="ltr"] p,
body[dir="ltr"] .section-description,
body[dir="ltr"] .hero-description,
body[dir="ltr"] .testimonial-text,
body[dir="ltr"] .feature-card p,
body[dir="ltr"] .step-card p,
body[dir="ltr"] .audience-card p,
body[dir="ltr"] .service-card p,
body[dir="ltr"] .content-section p,
body[dir="ltr"] .blog-content p,
body[dir="ltr"] .plan-description,
body[dir="ltr"] .footer-description,
body[dir="ltr"] .form-description,
body[dir="ltr"] .contact-info-text p,
body[dir="ltr"] .service-list li,
body[dir="ltr"] .how-work-card p,
body[dir="ltr"] .feature-item p {
  text-align: justify;
  text-align-last: left;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  -moz-hyphens: auto;
  line-height: 1.8;
}

/* English Headings - Left Aligned */
body[dir="ltr"] h1,
body[dir="ltr"] h2,
body[dir="ltr"] h3,
body[dir="ltr"] h4,
body[dir="ltr"] h5,
body[dir="ltr"] h6 {
  text-align: left;
  direction: ltr;
  font-weight: 700;
  color: #f2ce66;
}

/* Centered Content in English */
body[dir="ltr"] .centered,
body[dir="ltr"] .section-intro.centered,
body[dir="ltr"] .section-intro.centered p,
body[dir="ltr"] .cta-content p,
body[dir="ltr"] .section-title,
body[dir="ltr"] .hero-main-title,
body[dir="ltr"] .hero-main-subtitle {
  text-align: center;
  direction: ltr;
}

/* Lists in English */
body[dir="ltr"] ul,
body[dir="ltr"] ol,
body[dir="ltr"] .features-list,
body[dir="ltr"] .plan-highlights,
body[dir="ltr"] .nav-list {
  direction: ltr;
  text-align: left;
}

body[dir="ltr"] li {
  text-align: left;
  direction: ltr;
}

/* Footer Styles - Updated Colors */
.footer {
  background-color: #160100;
  color: var(--text-light);
  padding: 80px 0 0;
  margin-top: 100px;
}
.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 50px;
  margin-bottom: 50px;
}

.footer-brand {
  max-width: 400px;
}

.footer-logo {
  height: 50px;
  margin-bottom: 20px;
}

.footer-tagline {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 15px;
  background: var(--secondary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-description {
  font-size: 14px;
  line-height: 1.8;
  opacity: 0.95;
  margin-top: 15px;
  color: var(--text-light);
}

body[dir="rtl"] .footer-description {
  text-align: right;
  line-height: 2;
}

.footer-links h4,
.footer-services h4,
.footer-contact h4 {
  font-size: 18px;
  margin-bottom: 25px;
  font-weight: 700;
  color: #f2ce66;
  position: relative;
  padding-bottom: 10px;
  display: inline-block;
}

.footer-links h4::after,
.footer-services h4::after,
.footer-contact h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #f2ce66 0%, #a86c1e 100%);
}

body[dir="rtl"] .footer-links h4,
body[dir="rtl"] .footer-services h4,
body[dir="rtl"] .footer-contact h4 {
  text-align: right;
}

.footer-links ul,
.footer-services ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li,
.footer-services li {
  margin-bottom: 12px;
}

.footer-links a,
.footer-services li {
  color: var(--text-light);
  text-decoration: none;
  opacity: 0.9;
  transition: var(--transition);
  font-size: 14px;
  display: inline-block;
}

.footer-links a:hover {
  opacity: 1;
  color: #f2ce66;
  transform: translateX(5px);
}

body[dir="rtl"] .footer-links a:hover {
  transform: translateX(-5px);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.contact-icon {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  color: #f2ce66;
}

.contact-text {
  flex: 1;
}

.contact-text strong {
  display: block;
  font-size: 13px;
  margin-bottom: 5px;
  color: #f2ce66;
  font-weight: 700;
}

.contact-text p {
  font-size: 14px;
  opacity: 0.9;
  line-height: 1.6;
  margin: 0;
  color: var(--text-light);
}

.contact-text a {
  color: var(--text-light);
  text-decoration: none;
  transition: var(--transition);
}

.contact-text a:hover {
  color: #f2ce66;
}

body[dir="rtl"] .contact-item {
  flex-direction: row-reverse;
  text-align: right;
}

body[dir="rtl"] .contact-text {
  text-align: right;
}

.footer-bottom {
  text-align: center;
  padding: 30px 0;
  border-top: 1px solid rgba(255, 215, 0, 0.2);
}

.footer-bottom p {
  font-size: 14px;
  opacity: 0.9;
  margin: 0;
  line-height: 1.8;
  color: var(--text-light);
}

.novay-link {
  color: #f2ce66;
  text-decoration: none;
  font-weight: 700;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
}

.novay-link:hover {
  background: var(--secondary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: underline;
}

.novay-link strong {
  font-weight: 700;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .footer-brand {
    max-width: 100%;
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .footer {
    padding: 60px 0 0;
    margin-top: 80px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-brand {
    text-align: center;
    max-width: 100%;
  }

  body[dir="rtl"] .footer-brand {
    text-align: center;
  }

  .footer-logo {
    margin-left: auto;
    margin-right: auto;
    display: block;
  }

  .footer-description {
    text-align: center;
  }

  body[dir="rtl"] .footer-description {
    text-align: center;
  }

  .footer-links,
  .footer-services,
  .footer-contact {
    text-align: center;
  }

  body[dir="rtl"] .footer-links,
  body[dir="rtl"] .footer-services,
  body[dir="rtl"] .footer-contact {
    text-align: center;
  }

  .footer-links h4::after,
  .footer-services h4::after,
  .footer-contact h4::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .contact-item {
    justify-content: center;
    text-align: center;
  }

  body[dir="rtl"] .contact-item {
    flex-direction: row;
    text-align: center;
  }

  .footer-bottom p {
    font-size: 13px;
    padding: 0 20px;
  }
}

@media (max-width: 576px) {
  .footer {
    padding: 50px 0 0;
  }

  .footer-content {
    gap: 35px;
  }

  .footer-bottom p {
    font-size: 12px;
    line-height: 1.6;
  }

  .contact-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  body[dir="rtl"] .contact-item {
    flex-direction: column;
  }
}
