/* ═══════════════════════════════════════════════════════════════
   Tarek Sabri WordPress Theme — main.css
═══════════════════════════════════════════════════════════════ */

:root {
  --gold:       #c9a84c;
  --gold-light: #e8c97a;
  --gold-dark:  #8a6f2e;
  --black:      #0a0a0a;
  --dark:       #111111;
  --dark2:      #1a1a1a;
  --dark3:      #222222;
  --text:       #e8e0d0;
  --text-muted: #9a9080;
  --white:      #f5f0e8;
}

/* ── Reset & Base ────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--black);
  color: var(--text);
  font-family: 'Cairo', sans-serif;
  overflow-x: hidden;
  cursor: none;
  line-height: 1.6;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1000;
  opacity: 0.35;
}

a { color: var(--gold); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--gold-light); }
img { max-width: 100%; height: auto; display: block; }
strong { color: var(--gold); }

/* ── Custom Cursor ───────────────────────────────────────────── */
.cursor {
  width: 12px; height: 12px;
  background: var(--gold);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  transition: transform 0.1s;
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.5;
  transition: transform 0.15s;
}

/* ── Navigation ──────────────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 60px;
  background: linear-gradient(to bottom, rgba(10,10,10,0.95), transparent);
  transition: background 0.3s;
}
.site-nav.scrolled {
  background: rgba(10,10,10,0.97);
  padding: 16px 60px;
  box-shadow: 0 1px 0 var(--dark3);
}
.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
}
.nav-logo img { height: 48px; width: auto; }

ul.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}
ul.nav-links li a {
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: color 0.3s;
}
ul.nav-links li a:hover { color: var(--gold); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 1px;
  background: var(--gold);
  transition: all 0.3s;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 70% 50%, rgba(201,168,76,0.08) 0%, transparent 60%),
    linear-gradient(135deg, #0a0a0a 0%, #1a1408 50%, #0a0a0a 100%);
}
.hero-image-container {
  position: absolute;
  right: 0; top: 0;
  width: 55%; height: 100%;
  overflow: hidden;
}
.hero-image-container::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to right, var(--black) 0%, transparent 40%);
  z-index: 1;
}
.hero-image-container::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40%;
  background: linear-gradient(to top, var(--black), transparent);
  z-index: 1;
}
.hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: grayscale(20%) contrast(1.1);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 60px 80px;
  max-width: 650px;
}
.hero-tag {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
  position: relative;
  padding-left: 40px;
  animation: fadeInUp 0.8s ease 0.2s both;
}
.hero-tag::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 28px; height: 1px;
  background: var(--gold);
}
.hero-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(4rem, 8vw, 7rem);
  font-weight: 300;
  line-height: 0.9;
  color: var(--white);
  margin-bottom: 8px;
  animation: fadeInUp 0.8s ease 0.4s both;
}
.hero-name span {
  display: block;
  font-weight: 700;
  color: var(--gold);
  font-style: italic;
}
.hero-arabic {
  font-family: 'Cairo', sans-serif;
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--text-muted);
  margin-bottom: 32px;
  direction: rtl;
  animation: fadeInUp 0.8s ease 0.5s both;
}
.hero-desc {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-muted);
  max-width: 460px;
  margin-bottom: 40px;
  animation: fadeInUp 0.8s ease 0.6s both;
}
.hero-stats {
  display: flex;
  gap: 48px;
  animation: fadeInUp 0.8s ease 0.8s both;
}
.stat-item { text-align: left; }
.stat-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
}
.stat-label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 4px;
}
.scroll-indicator {
  position: absolute;
  bottom: 40px; right: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
}
.scroll-indicator span {
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
  writing-mode: vertical-rl;
}
.scroll-line {
  width: 1px; height: 60px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s infinite;
}

/* ── Gold Divider ────────────────────────────────────────────── */
.gold-divider {
  width: 100%; height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}

/* ── Section Base ────────────────────────────────────────────── */
section, .about-section, .filmography-section,
.gallery-section, .timeline-section { padding: 120px 60px; }

.section-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 70px;
}
.section-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 5rem;
  font-weight: 300;
  color: var(--dark3);
  line-height: 1;
  user-select: none;
}
.section-title-wrap { flex: 1; }
.section-label {
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 4px;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem;
  font-weight: 300;
  color: var(--white);
  line-height: 1.1;
}
.section-line {
  flex: 1; height: 1px;
  background: linear-gradient(to right, var(--dark3), transparent);
}

/* ── About ───────────────────────────────────────────────────── */
.about-section { background: var(--dark); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}
.about-bio { font-size: 1.05rem; line-height: 2; color: var(--text-muted); }
.about-bio p { margin-bottom: 20px; }
.about-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}
.fact-card {
  background: var(--dark2);
  padding: 28px 24px;
  border-left: 2px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.fact-card:hover { border-left-color: var(--gold); background: var(--dark3); }
.fact-label {
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.fact-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  color: var(--white);
}

/* ── Quote ───────────────────────────────────────────────────── */
.quote-section {
  background: var(--dark2);
  padding: 100px 120px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.quote-section::before {
  content: '"';
  font-family: 'Cormorant Garamond', serif;
  font-size: 30rem;
  color: rgba(201,168,76,0.04);
  position: absolute;
  top: -100px; left: 50%;
  transform: translateX(-50%);
  line-height: 1;
  pointer-events: none;
}
.quote-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-weight: 300;
  font-style: italic;
  color: var(--white);
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 32px;
  position: relative;
}
.quote-attr {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ── Filmography ─────────────────────────────────────────────── */
.filmography-section { background: var(--black); }
.films-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.film-card {
  background: var(--dark2);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, background 0.3s;
}
.film-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.4s ease;
}
.film-card:hover::before { width: 100%; }
.film-card:hover { background: var(--dark3); transform: translateY(-4px); }
.film-card.featured {
  background: linear-gradient(135deg, var(--dark2), #1a150a);
  border: 1px solid rgba(201,168,76,0.15);
}
.film-thumb {
  width: 100%; height: 120px;
  background-size: cover;
  background-position: center;
  margin-bottom: 16px;
  opacity: 0.7;
}
.film-year {
  font-size: 0.85rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}
.film-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
  line-height: 1.2;
}
.film-type {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--dark);
  display: inline-block;
  padding: 3px 10px;
  margin-bottom: 10px;
}
.film-role { font-size: 0.85rem; color: var(--text-muted); font-style: italic; }

/* ── Fans Bar ────────────────────────────────────────────────── */
.fans-bar {
  background: var(--dark2);
  padding: 60px;
  display: flex;
  justify-content: center;
  gap: 100px;
  align-items: center;
  border-top: 1px solid var(--dark3);
  border-bottom: 1px solid var(--dark3);
}
.fans-item { text-align: center; }
.fans-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.5rem;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
}
.fans-label {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 8px;
}

/* ── Gallery ─────────────────────────────────────────────────── */
.gallery-section { background: var(--dark); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 260px;
  gap: 4px;
}
.gallery-item {
  overflow: hidden;
  position: relative;
}
.gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery-item:nth-child(4) { grid-column: span 2; }
.gallery-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.4s;
  filter: grayscale(30%);
}
.gallery-item:hover .gallery-img { transform: scale(1.05); filter: grayscale(0%); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: flex-end;
  padding: 20px;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-caption { font-size: 0.75rem; letter-spacing: 0.1em; color: var(--gold-light); }
.gallery-more { text-align: center; margin-top: 40px; }

/* ── Timeline ────────────────────────────────────────────────── */
.timeline-section { background: var(--black); }
.timeline-track {
  position: relative;
  padding-left: 60px;
}
.timeline-track::before {
  content: '';
  position: absolute;
  left: 20px; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--gold), transparent);
}
.timeline-item {
  position: relative;
  margin-bottom: 50px;
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.timeline-item.visible { opacity: 1; transform: translateX(0); }
.timeline-dot {
  position: absolute;
  left: -48px; top: 6px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px var(--gold-dark);
}
.timeline-year { font-size: 0.9rem; color: var(--gold); letter-spacing: 0.15em; margin-bottom: 6px; }
.timeline-event {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 6px;
}
.timeline-desc { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; max-width: 580px; }

/* ── Social Section ──────────────────────────────────────────── */
.social-section {
  background: var(--dark);
  padding: 100px 60px;
  text-align: center;
}
.social-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 4rem;
  font-weight: 300;
  color: var(--white);
  margin-bottom: 16px;
}
.social-subtitle {
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 60px;
}
.social-links { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  border: 1px solid var(--dark3);
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: all 0.3s;
  background: var(--dark2);
}
.social-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201,168,76,0.05);
}
.social-btn svg { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }

/* ── Outline Button ──────────────────────────────────────────── */
.btn-outline {
  display: inline-block;
  padding: 14px 36px;
  border: 1px solid var(--gold-dark);
  color: var(--gold);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  transition: all 0.3s;
}
.btn-outline:hover { background: var(--gold); color: var(--black); }

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer {
  background: var(--black);
  padding: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--dark3);
}
.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--gold);
  letter-spacing: 0.2em;
}
.footer-copy { font-size: 0.7rem; letter-spacing: 0.1em; color: var(--text-muted); }
.footer-imdb { font-size: 0.7rem; letter-spacing: 0.15em; color: var(--text-muted); transition: color 0.3s; }
.footer-imdb:hover { color: var(--gold); }

/* ── Animations ──────────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scrollPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

/* ── WP Admin Bar fix ────────────────────────────────────────── */
.site-nav { top: 0 !important; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .films-grid { grid-template-columns: 1fr 1fr; }
  .fans-bar   { gap: 40px; flex-wrap: wrap; padding: 40px 24px; }
}

@media (max-width: 768px) {
  .site-nav    { padding: 20px 24px; }
  .nav-toggle  { display: flex; }
  ul.nav-links {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10,10,10,0.98);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    z-index: 199;
  }
  ul.nav-links.open { display: flex; }
  ul.nav-links li a { font-size: 1.1rem; }

  section, .about-section, .filmography-section,
  .gallery-section, .timeline-section { padding: 80px 24px; }
  .hero-content   { padding: 0 24px 60px; }
  .hero-image-container { width: 100%; opacity: 0.25; }
  .hero-image-container::before { background: transparent; }

  .films-grid { grid-template-columns: 1fr; }
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 180px;
  }
  .gallery-item:nth-child(1) { grid-column: span 2; }
  .gallery-item:nth-child(4) { grid-column: span 1; }
  .quote-section { padding: 80px 24px; }
  .quote-text { font-size: 1.6rem; }
  .site-footer { flex-direction: column; gap: 16px; text-align: center; padding: 40px 24px; }
  .hero-stats { gap: 24px; }
  .social-btn { padding: 12px 20px; }
}
