/* ═══════════════════════════════════════════════
   EGYPTIAN EMPERORS – Main Stylesheet
   Theme: Dark Luxury · Gold · Pharaonic
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700;900&family=Cinzel:wght@400;500;600;700&family=Crimson+Text:ital,wght@0,400;0,600;1,400&display=swap');

/* ── Variables ──────────────────────────────────────── */
:root {
  --gold:         #C9A84C;
  --gold-light:   #E8C97A;
  --gold-dark:    #9A7A2A;
  --black:        #080808;
  --deep:         #100E0A;
  --surface:      #161310;
  --card:         #1C1915;
  --border:       rgba(201, 168, 76, 0.25);
  --border-hover: rgba(201, 168, 76, 0.6);
  --text:         #E8DFC8;
  --text-muted:   #9B8F78;
  --crimson:      #8B1A1A;
  --success:      #2A7A4A;
  --error:        #8B1A1A;
  --radius:       4px;
  --radius-lg:    8px;
  --shadow:       0 8px 32px rgba(0,0,0,0.6);
  --shadow-gold:  0 4px 24px rgba(201,168,76,0.2);
  --transition:   0.35s cubic-bezier(0.4,0,0.2,1);
  --font-display: 'Cinzel Decorative', serif;
  --font-heading: 'Cinzel', serif;
  --font-body:    'Crimson Text', Georgia, serif;
}

/* ── Light Theme ────────────────────────────────────── */
[data-theme="light"] {
  --black:        #FAF7F0;
  --deep:         #F0EBE0;
  --surface:      #FFF8EE;
  --card:         #FFFFFF;
  --border:       rgba(154, 122, 42, 0.3);
  --border-hover: rgba(154, 122, 42, 0.6);
  --text:         #2A2118;
  --text-muted:   #6B5A42;
  --shadow:       0 8px 32px rgba(0,0,0,0.12);
  --shadow-gold:  0 4px 24px rgba(201,168,76,0.25);
}

/* Force background on key structural elements */
[data-theme="light"] body,
[data-theme="light"] .hero,
[data-theme="light"] .hero-bg           { background-color: var(--black); }
[data-theme="light"] .header            { background: rgba(250,247,240,0.96) !important; border-bottom: 1px solid var(--border); }
[data-theme="light"] .header.scrolled   { background: rgba(250,247,240,0.98) !important; }
[data-theme="light"] .mobile-nav        { background: var(--surface); }
[data-theme="light"] .about,
[data-theme="light"] .portfolio-cta,
[data-theme="light"] .blog-hero         { background: var(--deep); }
[data-theme="light"] .services,
[data-theme="light"] .contact,
[data-theme="light"] .portfolio-section { background: var(--black); }
[data-theme="light"] .footer            { background: var(--deep); border-top: 1px solid var(--border); }

/* Cards */
[data-theme="light"] .service-card,
[data-theme="light"] .skill-card,
[data-theme="light"] .project-card,
[data-theme="light"] .blog-card,
[data-theme="light"] .timeline-content,
[data-theme="light"] .filter-btn        { background: var(--card); border-color: var(--border); }

/* Nav links */
[data-theme="light"] .nav-links a { color: var(--text-muted); }
[data-theme="light"] .nav-links a:hover,
[data-theme="light"] .nav-links a.active { color: var(--gold-dark); }
[data-theme="light"] .nav-logo    { color: var(--text); }
[data-theme="light"] .nav-logo span { color: var(--text-muted); }
[data-theme="light"] .nav-toggle span { background: var(--text); }

/* Headings & text */
[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] h4            { color: var(--gold-dark); }
[data-theme="light"] .section-tag  { color: var(--gold-dark); border-color: var(--border); }
[data-theme="light"] .hero-desc,
[data-theme="light"] .hero-stat-label,
[data-theme="light"] .section-subtitle { color: var(--text-muted); }

/* Buttons */
[data-theme="light"] .btn-ghost    { border-color: var(--gold-dark); color: var(--gold-dark); }
[data-theme="light"] .btn-ghost:hover { background: var(--gold-dark); color: #fff; }

/* Inputs / forms */
[data-theme="light"] input,
[data-theme="light"] textarea,
[data-theme="light"] select        { background: var(--card) !important; color: var(--text) !important;
                                     border-color: var(--border) !important; }
[data-theme="light"] ::placeholder { color: var(--text-muted) !important; }
[data-theme="light"] ::selection   { background: var(--gold); color: #fff; }

/* Scrollbar */
[data-theme="light"] ::-webkit-scrollbar-track { background: var(--deep); }
[data-theme="light"] ::-webkit-scrollbar-thumb { background: var(--gold-dark); }

/* ── Theme Toggle Button ────────────────────────────── */
.theme-toggle-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 36px; height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: .95rem;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
}
.theme-toggle-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201,168,76,.08);
}

/* ── Reset & Base ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--black);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── Scrollbar ──────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--deep); }
::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ── Selection ──────────────────────────────────────── */
::selection { background: var(--gold); color: var(--black); }

/* ── Typography ─────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 { font-family: var(--font-heading); font-weight: 600; color: var(--gold-light); line-height: 1.25; }
a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }
img { max-width: 100%; height: auto; display: block; }

/* ── Egyptian Pattern Helper ────────────────────────── */
.egypt-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0.5rem 0;
}
.egypt-divider::before,
.egypt-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-dark), transparent);
}
.egypt-divider span {
  color: var(--gold);
  font-size: 1.2rem;
}

/* ── Container ──────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* ── Buttons ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition);
  z-index: -1;
}
.btn:hover { color: var(--black); }
.btn:hover::before { transform: scaleX(1); transform-origin: left; }

.btn-primary {
  background: var(--gold);
  color: var(--black);
  font-weight: 700;
}
.btn-primary::before { background: var(--gold-light); }
.btn-primary:hover { color: var(--black); }

.btn-ghost {
  border-color: rgba(201,168,76,0.4);
  color: var(--text-muted);
}
.btn-ghost:hover { color: var(--black); border-color: var(--gold); }

/* ── Section Titles ─────────────────────────────────── */
.section { padding: 6rem 0; position: relative; }
.section-tag {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.5rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--gold-light);
  margin-bottom: 1rem;
}
.section-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 550px;
}

/* ════════════════════════════════════════════════════
   HEADER / NAV
   ════════════════════════════════════════════════════ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0;
  transition: background var(--transition), box-shadow var(--transition);
}
.header.scrolled {
  background: rgba(8,8,8,0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--gold);
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  letter-spacing: 0.05em;
}
.nav-logo span {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  color: var(--gold-dark);
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  position: relative;
  padding-bottom: 4px;
  transition: color var(--transition);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--gold);
  transition: var(--transition);
}

/* ════════════════════════════════════════════════════
   HERO SECTION
   ════════════════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--black);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 60% 40%, rgba(201,168,76,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(139,26,26,0.08) 0%, transparent 50%);
}
.hero-pattern {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 59px, rgba(201,168,76,0.04) 59px, rgba(201,168,76,0.04) 60px),
    repeating-linear-gradient(90deg, transparent, transparent 59px, rgba(201,168,76,0.04) 59px, rgba(201,168,76,0.04) 60px);
  background-size: 60px 60px;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.2s ease forwards;
}
.hero-eyebrow::before,
.hero-eyebrow::after {
  content: '◆';
  font-size: 0.4rem;
  color: var(--gold);
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  color: var(--gold-light);
  line-height: 1.05;
  margin-bottom: 1.25rem;
  opacity: 0;
  animation: fadeUp 0.9s 0.4s ease forwards;
}
.hero-title .accent { color: var(--gold); display: block; font-size: 0.85em; }
.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.9s 0.6s ease forwards;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.9s 0.8s ease forwards;
}
.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  opacity: 0;
  animation: fadeUp 0.9s 1s ease forwards;
}
.hero-stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--gold);
  display: block;
  line-height: 1;
}
.hero-stat-label {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Particles */
.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.particle {
  position: absolute;
  width: 2px; height: 2px;
  background: var(--gold);
  border-radius: 50%;
  opacity: 0;
  animation: float-particle linear infinite;
}

@keyframes float-particle {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 0.6; }
  90% { opacity: 0.3; }
  100% { transform: translateY(-100px) rotate(720deg); opacity: 0; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ════════════════════════════════════════════════════
   MARQUEE BAND
   ════════════════════════════════════════════════════ */
.marquee-band {
  background: var(--gold);
  overflow: hidden;
  padding: 0.65rem 0;
}
.marquee-track {
  display: flex;
  animation: marquee 18s linear infinite;
  white-space: nowrap;
}
.marquee-track span {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--black);
  padding: 0 2.5rem;
}
.marquee-track span.sep { color: rgba(0,0,0,0.35); }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ════════════════════════════════════════════════════
   ABOUT
   ════════════════════════════════════════════════════ */
.about { background: var(--deep); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.about-image-wrap {
  position: relative;
}
.about-frame {
  width: 100%;
  aspect-ratio: 4/5;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.about-frame::before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid var(--border);
}
.about-frame-icon {
  font-size: 6rem;
  color: var(--gold-dark);
  opacity: 0.4;
}
.about-badge {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  background: var(--gold);
  color: var(--black);
  width: 120px; height: 120px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  box-shadow: 0 0 40px rgba(201,168,76,0.3);
}
.about-badge strong { font-size: 1.8rem; line-height: 1; display: block; }
.about-text .section-subtitle { max-width: 100%; margin-bottom: 2rem; }
.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}
.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition);
}
.about-feature:hover { border-color: var(--gold); }
.about-feature-icon {
  color: var(--gold);
  font-size: 1.2rem;
  margin-top: 2px;
  flex-shrink: 0;
}
.about-feature h4 {
  font-size: 0.85rem;
  color: var(--gold-light);
  margin-bottom: 0.2rem;
}
.about-feature p { font-size: 0.9rem; color: var(--text-muted); }

/* ════════════════════════════════════════════════════
   SERVICES
   ════════════════════════════════════════════════════ */
.services { background: var(--black); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  group: true;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.service-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 56px; height: 56px;
  background: rgba(201,168,76,0.1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 1.5rem;
  transition: var(--transition);
}
.service-card:hover .service-icon {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
}
.service-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: var(--gold-light);
}
.service-card p { font-size: 0.95rem; color: var(--text-muted); }
.service-features {
  list-style: none;
  margin-top: 1.25rem;
}
.service-features li {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding: 0.3rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.service-features li::before {
  content: '◆';
  color: var(--gold-dark);
  font-size: 0.4rem;
  flex-shrink: 0;
}

/* ════════════════════════════════════════════════════
   PORTFOLIO CTA
   ════════════════════════════════════════════════════ */
.portfolio-cta { background: var(--deep); }
.portfolio-cta-inner {
  text-align: center;
  padding: 5rem 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.portfolio-cta-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 50% 0%, rgba(201,168,76,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.portfolio-cta-inner .section-title { margin-bottom: 1rem; }
.portfolio-cta-inner .section-subtitle { margin: 0 auto 2rem; }
.portfolio-grid-preview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 2.5rem auto;
  max-width: 700px;
}
.preview-card {
  aspect-ratio: 1;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  font-size: 1.8rem;
  color: var(--gold-dark);
  transition: var(--transition);
  position: relative;
  cursor: pointer;
  user-select: none;
}
.preview-card-label {
  font-size: .7rem;
  font-family: var(--font-body, 'Cinzel', serif);
  letter-spacing: .05em;
  color: var(--text-muted);
  text-transform: uppercase;
}
.preview-card:hover,
.preview-card.active {
  border-color: var(--gold);
  color: var(--gold);
  transform: scale(1.05);
}
/* ── Category Popup ── */
.cat-popup {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 220px;
  background: var(--card);
  border: 1px solid var(--gold-dark);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: 0 8px 32px rgba(0,0,0,.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 200;
}
.cat-popup::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 7px solid transparent;
  border-top-color: var(--gold-dark);
}
.preview-card.active .cat-popup {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.cat-popup-header {
  font-size: .8rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: .7rem;
  display: flex;
  align-items: center;
  gap: .4rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: .5rem;
}
.cat-popup-list {
  list-style: none;
  margin: 0 0 .8rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.cat-popup-list li {
  font-size: .78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: .4rem;
}
.cat-popup-list li i { color: var(--gold-dark); font-size: .6rem; }
.cat-popup-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  width: 100%;
  padding: .5rem .8rem;
  background: var(--gold-dark);
  color: var(--black);
  border-radius: calc(var(--radius) - 4px);
  font-size: .75rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: .04em;
  transition: background .2s;
}
.cat-popup-btn:hover { background: var(--gold); }

/* ════════════════════════════════════════════════════
   TESTIMONIALS
   ════════════════════════════════════════════════════ */
.testimonials { background: var(--black); }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.testimonial-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
}
.testimonial-card::before {
  content: '"';
  font-family: Georgia, serif;
  font-size: 6rem;
  color: var(--gold-dark);
  opacity: 0.3;
  position: absolute;
  top: -0.5rem;
  left: 1.5rem;
  line-height: 1;
}
.stars { color: var(--gold); margin-bottom: 1rem; letter-spacing: 0.1em; }
.testimonial-text {
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 1rem;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.testimonial-avatar {
  width: 44px; height: 44px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-dark);
  font-size: 1rem;
}
.testimonial-author h4 { font-size: 0.9rem; color: var(--gold-light); margin-bottom: 0.1rem; }
.testimonial-author span { font-size: 0.8rem; color: var(--text-muted); }

/* ════════════════════════════════════════════════════
   CONTACT
   ════════════════════════════════════════════════════ */
.contact { background: var(--deep); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4rem;
  align-items: start;
}
.contact-info h3 {
  font-size: 1rem;
  color: var(--gold-light);
  margin-bottom: 2rem;
}
.contact-items { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition);
}
.contact-item:hover { border-color: var(--border-hover); }
.contact-item-icon {
  width: 42px; height: 42px;
  background: rgba(201,168,76,0.1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1rem;
  flex-shrink: 0;
}
.contact-item h4 { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 0.25rem; }
.contact-item p { font-size: 0.95rem; color: var(--text-muted); }
.contact-item a { color: var(--text-muted); }
.contact-item a:hover { color: var(--gold); }

/* Form */
.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group.full { grid-column: 1 / -1; }
.form-label {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.form-control {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.8rem 1rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  width: 100%;
}
.form-control:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.12);
}
.form-control::placeholder { color: var(--text-muted); opacity: 0.6; }
select.form-control { cursor: pointer; }
select.form-control option { background: var(--card); }
textarea.form-control { resize: vertical; min-height: 120px; }
.file-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1rem;
  background: var(--card);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: border-color var(--transition), color var(--transition);
}
.file-label:hover { border-color: var(--gold); color: var(--gold); }
input[type="file"] { display: none; }
.form-actions { margin-top: 1.5rem; }
.form-status {
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin-top: 1rem;
  display: none;
}
.form-status.success { background: rgba(42,122,74,0.15); border: 1px solid rgba(42,122,74,0.4); color: #5cba87; display: block; }
.form-status.error   { background: rgba(139,26,26,0.15); border: 1px solid rgba(139,26,26,0.4); color: #e87070; display: block; }

/* ════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════ */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand .nav-logo { font-size: 1.2rem; margin-bottom: 1rem; }
.footer-brand p { font-size: 0.9rem; color: var(--text-muted); max-width: 280px; line-height: 1.8; }
.footer-socials { display: flex; gap: 0.75rem; margin-top: 1.5rem; }
.footer-social {
  width: 38px; height: 38px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: var(--transition);
}
.footer-social:hover { background: var(--gold); color: var(--black); border-color: var(--gold); }
.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 1.25rem;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links a { font-size: 0.9rem; color: var(--text-muted); transition: color var(--transition); }
.footer-links a:hover { color: var(--gold); }
.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ════════════════════════════════════════════════════
   SCROLL TO TOP
   ════════════════════════════════════════════════════ */
.scroll-top {
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 44px; height: 44px;
  background: var(--gold);
  color: var(--black);
  border: none;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  z-index: 900;
  box-shadow: 0 4px 16px rgba(201,168,76,0.4);
}
.scroll-top.visible { opacity: 1; pointer-events: all; }
.scroll-top:hover { background: var(--gold-light); transform: translateY(-2px); }

/* ════════════════════════════════════════════════════
   MOBILE NAV OVERLAY
   ════════════════════════════════════════════════════ */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: rgba(8,8,8,0.97);
  backdrop-filter: blur(16px);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  transform: translateX(100%);
  transition: transform 0.4s ease;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--text-muted);
  transition: color var(--transition);
}
.mobile-nav a:hover { color: var(--gold); }
.mobile-nav-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  background: none;
  border: 1px solid var(--border);
  color: var(--gold);
  width: 44px; height: 44px;
  border-radius: var(--radius);
  font-size: 1.2rem;
  cursor: pointer;
}

/* ════════════════════════════════════════════════════
   FADE IN ANIMATION (scroll-triggered)
   ════════════════════════════════════════════════════ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .section { padding: 4rem 0; }
  .hero-stats { gap: 1.5rem; flex-wrap: wrap; }
  .form-grid { grid-template-columns: 1fr; }
  .about-features { grid-template-columns: 1fr; }
  .portfolio-grid-preview { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.2rem; }
  .contact-form { padding: 1.5rem; }
  .btn { padding: 0.65rem 1.5rem; font-size: 0.78rem; }
}

/* ════════════════════════════════════════════════════
   SPLASH SCREEN
   ════════════════════════════════════════════════════ */
#splash-screen {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--black);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  transition: opacity 0.7s ease, transform 0.7s ease;
}
#splash-screen.splash-hide { opacity: 0; transform: scale(1.05); pointer-events: none; }
.splash-logo {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 3rem);
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}
.splash-sub {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 2.5rem;
}
.splash-hieroglyph {
  font-size: 4rem;
  color: var(--gold-dark);
  opacity: 0.3;
  margin-bottom: 2rem;
  animation: splash-pulse 1.2s ease-in-out infinite;
}
@keyframes splash-pulse {
  0%,100% { opacity: 0.2; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(1.08); }
}
.splash-bar-wrap {
  width: 200px; height: 2px;
  background: rgba(201,168,76,0.15);
  border-radius: 2px; overflow: hidden;
}
.splash-bar {
  height: 100%; width: 0;
  background: var(--gold);
  border-radius: 2px;
  animation: splash-load 1.6s ease forwards;
}
@keyframes splash-load { to { width: 100%; } }

/* ════════════════════════════════════════════════════
   PAGE TRANSITION OVERLAY
   ════════════════════════════════════════════════════ */
#page-transition {
  position: fixed; inset: 0; z-index: 9998;
  background: var(--black);
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.5s ease;
}
#page-transition.pt-fade-out { opacity: 0; }
#page-transition.pt-hidden   { display: none; }

/* ════════════════════════════════════════════════════
   CUSTOM CURSOR
   ════════════════════════════════════════════════════ */
/* cursor: none applied via JS class on body */
body.custom-cursor,
body.custom-cursor *,
body.custom-cursor a,
body.custom-cursor button { cursor: none !important; }

.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  z-index: 9997;
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: transform 0.08s ease, opacity 0.3s ease;
  will-change: transform;
}
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  z-index: 9996;
  width: 36px; height: 36px;
  border: 1.5px solid rgba(201,168,76,0.55);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: width 0.25s ease, height 0.25s ease,
              border-color 0.25s ease, background 0.25s ease,
              opacity 0.3s ease;
  will-change: transform;
}
.cursor-ring.cursor-hover {
  width: 54px; height: 54px;
  border-color: var(--gold);
  background: rgba(201,168,76,0.07);
}

/* ════════════════════════════════════════════════════
   TYPING ANIMATION
   ════════════════════════════════════════════════════ */
.typing-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0;
}
#typing-text {
  color: var(--gold);
  font-style: normal;
}
.typing-cursor {
  display: inline-block;
  width: 2px; height: 1.1em;
  background: var(--gold);
  margin-left: 3px;
  animation: blink 0.9s step-end infinite;
  vertical-align: text-bottom;
}
@keyframes blink { 50% { opacity: 0; } }

/* ════════════════════════════════════════════════════
   WHATSAPP FLOATING BUTTON
   ════════════════════════════════════════════════════ */
.whatsapp-float {
  position: fixed;
  bottom: 5.5rem; right: 2rem;
  z-index: 890;
  width: 54px; height: 54px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  transition: var(--transition);
  text-decoration: none;
}
.whatsapp-float::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(37,211,102,0.4);
  animation: wa-pulse 2.5s infinite;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,0.6);
  color: #fff;
}
@keyframes wa-pulse {
  0%,100% { transform: scale(1);   opacity: 0.6; }
  50%      { transform: scale(1.3); opacity: 0; }
}
.whatsapp-tooltip {
  position: absolute;
  right: 64px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  white-space: nowrap;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.whatsapp-float:hover .whatsapp-tooltip { opacity: 1; }

/* ════════════════════════════════════════════════════
   LANGUAGE TOGGLE BUTTON
   ════════════════════════════════════════════════════ */
.lang-toggle-btn {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
}
.lang-toggle-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* RTL overrides */
[dir="rtl"] .nav-links          { flex-direction: row-reverse; }
[dir="rtl"] .hero-content       { text-align: right; }
[dir="rtl"] .hero-actions       { flex-direction: row-reverse; }
[dir="rtl"] .about-grid         { direction: rtl; }
[dir="rtl"] .footer-grid        { direction: rtl; }

/* ════════════════════════════════════════════════════
   COOKIE CONSENT BANNER
   ════════════════════════════════════════════════════ */
#cookie-banner {
  position: fixed;
  bottom: -200px;
  left: 1rem; right: 1rem;
  max-width: 640px;
  margin: 0 auto;
  z-index: 8000;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  transition: bottom 0.5s cubic-bezier(0.4,0,0.2,1);
}
#cookie-banner.cookie-show { bottom: 1.5rem; }
.cookie-text {
  flex: 1;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  min-width: 200px;
}
.cookie-text a { color: var(--gold); }
.cookie-btns { display: flex; gap: 0.5rem; flex-shrink: 0; }
#cookie-accept {
  padding: 0.5rem 1.25rem;
  background: var(--gold); color: var(--black);
  border: none; border-radius: var(--radius);
  font-family: var(--font-heading); font-size: 0.72rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  cursor: pointer; font-weight: 700;
  transition: var(--transition);
}
#cookie-accept:hover { background: var(--gold-light); }
#cookie-decline {
  padding: 0.5rem 1.25rem;
  background: transparent; color: var(--text-muted);
  border: 1px solid var(--border); border-radius: var(--radius);
  font-family: var(--font-heading); font-size: 0.72rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
}
#cookie-decline:hover { border-color: var(--text-muted); color: var(--text); }

/* ════════════════════════════════════════════════════
   BLOG STYLES
   ════════════════════════════════════════════════════ */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2.5rem;
  margin-top: 3rem;
}
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.post-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: flex; flex-direction: column;
}
.post-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}
.post-card-media {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--surface), var(--card));
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; color: var(--gold-dark); opacity: 0.5;
}
.post-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.post-cat {
  font-family: var(--font-heading); font-size: 0.62rem;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold-dark); margin-bottom: 0.5rem;
}
.post-title {
  font-size: 1rem; color: var(--gold-light);
  margin-bottom: 0.6rem; line-height: 1.4;
}
.post-excerpt { font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; flex: 1; margin-bottom: 1rem; }
.post-meta {
  display: flex; gap: 1rem; align-items: center;
  font-family: var(--font-heading); font-size: 0.65rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted);
}
.post-meta i { color: var(--gold-dark); }
.post-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.75rem; }
.post-tag {
  font-size: 0.65rem; padding: 0.15rem 0.5rem;
  background: rgba(201,168,76,0.07); border: 1px solid rgba(201,168,76,0.15);
  border-radius: 2px; color: var(--gold-dark);
}

/* Blog sidebar */
.blog-sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
.sidebar-widget {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.5rem;
}
.sidebar-widget h3 {
  font-family: var(--font-heading); font-size: 0.72rem;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold-dark); margin-bottom: 1rem;
  padding-bottom: 0.5rem; border-bottom: 1px solid var(--border);
}
.cat-list { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.cat-list a {
  display: flex; justify-content: space-between; align-items: center;
  color: var(--text-muted); font-size: 0.9rem;
  padding: 0.35rem 0; border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: color var(--transition);
}
.cat-list a:hover { color: var(--gold); }
.cat-count {
  background: rgba(201,168,76,0.1); color: var(--gold-dark);
  font-size: 0.65rem; padding: 0.1rem 0.5rem; border-radius: 2rem;
}
.recent-post { display: flex; gap: 0.75rem; padding: 0.6rem 0; border-bottom: 1px solid var(--border); }
.recent-post:last-child { border-bottom: none; }
.recent-post-info h4 { font-size: 0.85rem; color: var(--gold-light); margin-bottom: 0.2rem; line-height: 1.4; }
.recent-post-info span { font-size: 0.72rem; color: var(--text-muted); }
.search-form { display: flex; gap: 0.5rem; }
.search-input {
  flex: 1; background: var(--surface); border: 1px solid var(--border);
  color: var(--text); padding: 0.6rem 0.85rem; border-radius: var(--radius);
  font-family: var(--font-body); font-size: 0.9rem; outline: none;
}
.search-input:focus { border-color: var(--gold); }
.search-btn {
  background: var(--gold); color: var(--black); border: none;
  padding: 0.6rem 1rem; border-radius: var(--radius); cursor: pointer;
  transition: var(--transition);
}
.search-btn:hover { background: var(--gold-light); }

/* Blog detail */
.blog-detail-grid { display: grid; grid-template-columns: 1fr 300px; gap: 3rem; }
.post-content { line-height: 1.9; color: var(--text-muted); }
.post-content h2,h3,h4 { color: var(--gold-light); margin: 1.5rem 0 0.75rem; }
.post-content p  { margin-bottom: 1.25rem; }
.post-content pre {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem; overflow-x: auto;
  font-size: 0.88rem; margin: 1.25rem 0;
}
.post-content code { color: var(--gold); font-size: 0.9em; }
.post-content blockquote {
  border-left: 3px solid var(--gold); padding-left: 1.25rem;
  color: var(--text-muted); font-style: italic; margin: 1.25rem 0;
}
.post-content ul,ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.post-content li { margin-bottom: 0.4rem; }
.post-content a { color: var(--gold); }
.empty-blog {
  text-align: center; padding: 5rem 2rem;
  color: var(--text-muted);
}
.empty-blog i { font-size: 3rem; color: var(--gold-dark); margin-bottom: 1rem; display: block; }

@media (max-width: 1024px) {
  .blog-grid, .blog-detail-grid { grid-template-columns: 1fr; }
  .blog-sidebar { order: -1; }
}
@media (max-width: 768px) {
  .posts-grid { grid-template-columns: 1fr; }
  #cookie-banner { flex-direction: column; text-align: center; }
}
