/* =========================================================
   Joker Media - Custom Theme CSS
   ========================================================= */

:root {
  --brand-primary: #2D1B4E;   /* Primary brand color (deep royal purple) */
  --brand-dark: #1A0A2E;      /* Navbar / dark background (deep purple) */
  --accent-gold: #D4AF37;     /* Accent color (gold) */
  --accent-gold-hover: #B89B4F; /* Gold hover */
  --accent-green: #00A86B;    /* Secondary accent (green - badges, hover, icons) */
  --body-bg: #FFFFFF;         /* Body background */
  --section-bg: #F8F9FA;      /* Sections background */
  --text-dark-bg: #FFFFFF;    /* Text on dark backgrounds */
  --text-light-bg: #333333;   /* Text on light backgrounds */
  --btn-text: #1A0A2E;        /* Button text color */
  --font-family: 'Cairo', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--body-bg);
  color: var(--text-light-bg);
  line-height: 1.7;
}

/* =========================================================
   Announcement Bar (Marquee)
   ========================================================= */
.announcement-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  background-color: var(--accent-gold);
  color: var(--brand-dark);
  overflow: hidden;
  height: 42px;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.marquee {
  display: inline-block;
  white-space: nowrap;
  animation: marquee 18s linear infinite;
  font-weight: 700;
  font-size: 1rem;
  padding-left: 100%;
}

.marquee span {
  padding-right: 2rem;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* =========================================================
   Navbar
   ========================================================= */
#mainNav {
  background-color: var(--brand-dark);
  padding-top: 1rem;
  padding-bottom: 1rem;
  top: 42px; /* account for announcement bar */
}

#mainNav .navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

#mainNav .navbar-brand img {
  height: 80px;
  width: auto;
}

#mainNav .navbar-brand .brand-name {
  color: var(--text-dark-bg);
  font-weight: 700;
  font-size: 1.5rem;
}

#mainNav .navbar-nav .nav-item .nav-link {
  color: var(--text-dark-bg);
  font-weight: 700;
  padding: 0.75rem 1rem;
}

#mainNav .navbar-nav .nav-item .nav-link:hover {
  color: var(--accent-gold);
}

#mainNav .navbar-toggler {
  border-color: var(--text-dark-bg);
  color: var(--text-dark-bg);
}

/* Language toggle button */
.lang-toggle {
  background: transparent;
  color: var(--text-dark-bg);
  border: 1px solid var(--accent-gold);
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.45rem 0.9rem;
  letter-spacing: 1px;
  order: 0;
  flex: 0 0 auto;
  margin-right: 0.75rem;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.lang-toggle:hover {
  background-color: var(--accent-gold);
  color: var(--btn-text);
}

/* In LTR the toggle shifts to the left side */
html[dir="ltr"] .lang-toggle {
  margin-right: 0;
  margin-left: 0.75rem;
}

/* =========================================================
   Hero / Masthead (bilingual AR/EN)
   ========================================================= */
header.masthead {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding-top: 12.5rem;
  padding-bottom: 8rem;
  background-color: #0E061A;
  /* Premium dark background with a soft, slowly drifting radial glow (no lines) */
  background-image:
    radial-gradient(circle at 30% 40%, rgba(212, 175, 55, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(128, 90, 213, 0.15) 0%, transparent 50%),
    linear-gradient(135deg, #0E061A 0%, #1A0A2E 40%, #2D1B4E 100%);
  background-size: 200% 200%;
  background-position: center;
  text-align: center;
  animation: heroGlow 12s ease-in-out infinite alternate;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Soft, slowly moving glow across the hero background */
@keyframes heroGlow {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: 100% 100%;
  }
}

/* Slightly dark overlay between the background glow and the content to ensure text readability */
header.masthead .container::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(10, 6, 26, 0.15) 0%, rgba(10, 6, 26, 0.35) 55%, rgba(10, 6, 26, 0.5) 100%);
  pointer-events: none;
  z-index: 0;
}
header.masthead .container {
  position: relative;
}
header.masthead .container > * {
  position: relative;
  z-index: 1;
}

/* Arabic hero */
.hero-ar {
  direction: rtl;
  font-family: 'Cairo', sans-serif;
  text-align: right;
  text-align-last: none;
}

/* English hero */
.hero-en {
  direction: ltr;
  font-family: 'Poppins', sans-serif;
  text-align: left;
}

/* =========================================================
   Hero service pills
   ========================================================= */
.hero-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.6rem;
  margin-top: 1rem;
  margin-bottom: 2.5rem;
}

.hero-pill {
  display: inline-block;
  padding: 0.4rem 1rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  background: transparent;
  border: 1.5px solid var(--accent-gold);
  border-radius: 50px;
  letter-spacing: 0.5px;
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.15);
}

.hero-pill:hover {
  background-color: var(--accent-gold);
  color: var(--brand-dark);
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.4);
}

.hero-en .hero-pill {
  letter-spacing: 0.5px;
}

/* English pills use gold text */
.hero-en .hero-pill {
  color: var(--accent-gold);
}
.hero-en .hero-pill:hover {
  color: var(--brand-dark);
}

/* Language switch transitions */
header.masthead.fade-out {
  opacity: 0;
  transform: translateY(12px);
}
header.masthead.fade-in {
  animation: heroFadeIn 0.5s ease forwards;
}
@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* On RTL (Arabic) align content right; on LTR (English) align left */
.hero-ar .container {
  text-align: right;
}
.hero-en .container {
  text-align: left;
}
.hero-ar .hero-buttons {
  justify-content: flex-start;
}
.hero-en .hero-buttons {
  justify-content: flex-start;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 1.2rem;
  padding: 0.45rem 1.5rem;
  border: 1px solid rgba(212, 175, 55, 0.5);
  border-radius: 50px;
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.12), rgba(45, 27, 78, 0.2));
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

.hero-heading {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 800;
  color: var(--text-dark-bg);
  /* Generous spacing so Arabic dots & diacritics are not clipped or overlapping */
  line-height: 1.8;
  text-decoration: none;
  overflow: visible;
  height: auto;
}

.hero-subtext {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 640px;
  margin-bottom: 1rem;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

/* =========================================================
   Buttons
   ========================================================= */
.btn-gold {
  background-color: var(--accent-gold);
  color: var(--btn-text);
  font-weight: 700;
  border: 2px solid var(--accent-gold);
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.btn-gold:hover {
  background-color: var(--accent-gold-hover);
  color: var(--btn-text);
  border-color: var(--accent-gold-hover);
}

.btn-outline-white {
  background-color: transparent;
  color: var(--text-dark-bg);
  font-weight: 700;
  border: 2px solid var(--text-dark-bg);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-outline-white:hover {
  background-color: var(--text-dark-bg);
  color: var(--brand-dark);
}

.btn-outline-gold {
  background-color: transparent;
  color: var(--accent-gold);
  font-weight: 700;
  border: 2px solid var(--accent-gold);
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.btn-outline-gold:hover {
  background-color: var(--accent-gold);
  color: var(--btn-text);
  border-color: var(--accent-gold);
}

.btn-whatsapp {
  background-color: #25D366;
  color: #fff;
  font-weight: 700;
}

.btn-whatsapp:hover {
  background-color: #1eb356;
  color: #fff;
}

/* =========================================================
   Sections
   ========================================================= */
.page-section {
  padding: 6rem 0;
}

.page-section h2.section-heading {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--brand-dark);
  margin-bottom: 0.5rem;
}

.page-section h3.section-subheading {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 3rem;
}

/* =========================================================
   Subtle Cream Section Backgrounds (premium, avoid flat white)
   ========================================================= */
/* Sections that previously had plain white / flat bg-light get a soft cream gradient */
#services,
#why-us,
#process,
#testimonials {
  background: linear-gradient(180deg, #FAF6F1 0%, #F3EDE4 100%);
}
#portfolio,
#contact {
  background: linear-gradient(180deg, #FFFFFF 0%, #FAF6F1 100%);
}
/* Investment already uses dark brand background; give it a subtle premium tint */
.investment-section {
  background-color: var(--brand-dark);
  background-image:
    radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.25) 0%, transparent 60%),
    linear-gradient(160deg, #1A0A2E 0%, #2D1B4E 100%);
}

/* Service / Why / Process / Testimonial cards remain white for contrast on cream bg */
#services .service-card,
#why-us .why-item,
#process .process-step,
#testimonials .testimonial-card {
  box-shadow: 0 4px 18px rgba(45, 27, 78, 0.08);
}

/* =========================================================
   Services
   ========================================================= */
.service-card {
  position: relative;
  overflow: hidden;
  background-color: var(--brand-dark);
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  height: 100%;
  color: var(--text-dark-bg);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  box-shadow: 0 2px 10px rgba(45, 27, 78, 0.05);
}

/* Background image inside each service card */
.service-card-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

/* Dark semi-transparent overlay for readable white text */
.service-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 11, 18, 0.62);
  z-index: 1;
  transition: background-color 0.3s ease;
}

/* Ensure card content sits above bg + overlay */
.service-card > *:not(.service-card-bg):not(.service-card-overlay) {
  position: relative;
  z-index: 2;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 28px rgba(45, 27, 78, 0.18);
  border-color: var(--accent-gold);
}

.service-card:hover .service-card-overlay {
  background: rgba(10, 11, 18, 0.5);
}

.service-icon {
  width: 70px;
  height: 70px;
  line-height: 70px;
  background-color: rgba(0, 168, 107, 0.25);
  border-radius: 50%;
  margin: 0 auto 1rem;
  font-size: 2.2rem;
}

.service-title {
  font-weight: 700;
  color: var(--text-dark-bg);
  margin-bottom: 0.25rem;
}

.service-subtitle {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
}

/* Light-weight paragraph text inside service cards is white-ish for readability */
.service-card .text-muted,
.service-card p {
  color: rgba(255, 255, 255, 0.88) !important;
}

/* =========================================================
   Why Us
   ========================================================= */
#why-us,
#process {
  background: linear-gradient(135deg, #1A0A2E 0%, #2D1B4E 100%);
}

#why-us .section-heading,
#process .section-heading {
  color: #FFFFFF;
}

#why-us .section-subheading,
#process .section-subheading {
  color: var(--accent-gold);
}

.why-item {
  display: flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  height: 100%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(2px);
}

.why-badge {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  background-color: var(--accent-gold);
  color: var(--brand-dark);
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-right: 15px;
  margin-left: 15px;
}

.why-text {
  font-size: 1.15rem;
  font-weight: 600;
  color: #FFFFFF;
  margin: 0;
}

/* =========================================================
   Process
   ========================================================= */
.process-step {
  text-align: center;
  padding: 2rem 1rem;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 12px;
  height: 100%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.process-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background-color: var(--accent-gold);
  color: var(--brand-dark);
  font-size: 1.6rem;
  font-weight: 800;
  border-radius: 50%;
  margin-bottom: 1rem;
}

.process-step p {
  font-size: 1.05rem;
  font-weight: 600;
  color: #FFFFFF;
  margin: 0;
}

/* =========================================================
   Portfolio
   ========================================================= */
.portfolio-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(45, 27, 78, 0.1);
}

.portfolio-slideshow {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
  background-color: #e9ecef;
}

.slide-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide-img.active {
  opacity: 1;
}

.portfolio-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(26, 10, 46, 0.85));
  padding: 2rem 1rem 1rem;
  text-align: center;
}

.overlay-text {
  color: var(--text-dark-bg);
  font-size: 1.4rem;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* =========================================================
   Testimonials
   ========================================================= */
.testimonial-card {
  background-color: #fff;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  height: 100%;
  box-shadow: 0 2px 10px rgba(45, 27, 78, 0.05);
}

.quote-icon {
  color: var(--accent-gold);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.testimonial-text {
  font-size: 1.1rem;
  font-weight: 600;
  font-style: italic;
  color: var(--text-light-bg);
  margin-bottom: 1rem;
}

.testimonial-author {
  color: var(--brand-dark);
  font-weight: 700;
}

/* =========================================================
   Investment / Pricing
   ========================================================= */
.investment-section {
  background-color: var(--brand-dark);
  background-image:
    radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.25) 0%, transparent 60%),
    linear-gradient(160deg, #1A0A2E 0%, #2D1B4E 100%);
  text-align: center;
}

.investment-section .section-heading {
  color: var(--text-dark-bg);
}

.investment-section .section-subheading {
  color: var(--accent-gold);
}

.investment-content {
  max-width: 800px;
  margin: 0 auto;
}

.investment-line {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 1.5rem;
}

.investment-subtext {
  font-size: 1.15rem;
  color: var(--text-dark-bg);
  margin-bottom: 2.5rem;
}

/* =========================================================
   Profile Card
   ========================================================= */
.profile-card {
  background-color: #fff;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 18px rgba(45, 27, 78, 0.08);
  max-width: 360px;
  margin: 0 auto 2rem;
}

.profile-photo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.profile-photo {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--accent-gold);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.35);
}

.profile-name {
  font-weight: 700;
  color: var(--brand-dark);
  margin-bottom: 0.25rem;
}

.profile-title {
  font-weight: 600;
  color: var(--accent-gold);
  margin-bottom: 0;
}

html[dir="ltr"] .profile-name,
html[dir="ltr"] .profile-title {
  font-family: 'Poppins', sans-serif;
}

/* =========================================================
   Contact
   ========================================================= */
.contact-info {
  text-align: center;
}

.contact-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-buttons .btn {
  min-width: 220px;
}

@media (max-width: 576px) {
  .contact-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  .contact-buttons .btn {
    width: 100%;
  }
}

.btn-call {
  background-color: transparent;
  color: var(--btn-text);
  font-weight: 700;
  border: 2px solid var(--accent-gold);
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.btn-call:hover {
  background-color: var(--accent-gold);
  color: var(--btn-text);
  border-color: var(--accent-gold);
}

.social-links {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}

.btn-social {
  background-color: var(--brand-dark);
  color: var(--text-dark-bg);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-social:hover {
  background-color: var(--accent-gold);
  color: var(--brand-dark);
}

#contactForm .form-control {
  padding: 1rem 1.25rem;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid #ced4da;
}

#contactForm .form-control:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
}

/* =========================================================
   Footer
   ========================================================= */
.footer {
  background-color: #fff;
  font-family: var(--font-family);
  color: var(--text-light-bg);
}

.footer .btn-social {
  background-color: var(--brand-dark);
}

.footer .btn-social:hover {
  background-color: var(--accent-gold);
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 992px) {
  header.masthead {
    padding-top: 10rem;
    padding-bottom: 6rem;
    min-height: 70vh;
  }
  header.masthead .hero-heading {
    font-size: 3rem;
  }
  header.masthead .hero-eyebrow {
    font-size: 0.9rem;
  }
  header.masthead .hero-subtext {
    font-size: 1.1rem;
  }
  .page-section {
    padding: 4.5rem 0;
  }
  #mainNav .navbar-nav {
    background-color: var(--brand-dark);
  }
}

@media (max-width: 768px) {
  header.masthead {
    padding-top: 9rem;
  }
  header.masthead .hero-heading {
    font-size: 2.4rem;
  }
  header.masthead .hero-subtext {
    font-size: 1.05rem;
  }
  .page-section h2.section-heading {
    font-size: 2rem;
  }
  .investment-line {
    font-size: 1.6rem;
  }
  .announcement-bar {
    font-size: 0.85rem;
  }
}

@media (max-width: 576px) {
  header.masthead {
    min-height: 60vh;
    padding-top: 8rem;
    padding-bottom: 5rem;
  }
  header.masthead .hero-heading {
    font-size: 2rem;
  }
  header.masthead .hero-subtext {
    font-size: 1rem;
  }
  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-buttons .btn {
    width: 100%;
  }
  .hero-ar .hero-buttons,
  .hero-en .hero-buttons {
    justify-content: center;
    align-items: stretch;
  }
}
