/* ============================================
   مصمم نور | Designer Nour - الستايل الرئيسي
   ============================================ */

:root {
  --black: #0a0a0a;
  --black-2: #141414;
  --gold: #C9A84C;
  --gold-light: #E8C97A;
  --white: #ffffff;
  --gray: #b8b8b8;
  --gradient-gold: linear-gradient(135deg, #C9A84C 0%, #E8C97A 50%, #C9A84C 100%);
  --shadow-gold: 0 10px 40px rgba(201, 168, 76, 0.25);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Cairo', sans-serif;
  background: var(--black);
  color: var(--white);
  direction: rtl;
  overflow-x: hidden;
  line-height: 1.7;
}

h1, h2, h3, h4 { font-family: 'Cairo', 'Playfair Display', serif; font-weight: 800; }
.en { font-family: 'Playfair Display', serif; }

a { text-decoration: none; color: inherit; }
img, svg { max-width: 100%; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== Loading ===== */
.loader {
  position: fixed; inset: 0; background: var(--black);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999; transition: opacity .6s ease, visibility .6s ease;
}
.loader.hide { opacity: 0; visibility: hidden; }
.loader-logo {
  font-family: 'Playfair Display', serif;
  font-size: 5rem; font-weight: 900;
  background: var(--gradient-gold);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: pulse 1.4s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(201,168,76,.6));
}
@keyframes pulse {
  0%,100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: .7; }
}

/* ===== Header ===== */
.header {
  position: fixed; top: 0; right: 0; left: 0; z-index: 1000;
  background: rgba(10,10,10,.85); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(201,168,76,.15);
  transition: all .3s ease;
}
.header.scrolled { background: rgba(10,10,10,.97); box-shadow: 0 4px 30px rgba(0,0,0,.5); }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; max-width: 1280px; margin: 0 auto; }
.logo { display: flex; flex-direction: column; align-items: flex-start; line-height: 1; }
.logo-mark {
  font-family: 'Playfair Display', serif; font-size: 2.2rem; font-weight: 900;
  background: var(--gradient-gold); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 2px;
}
.logo-text {
  font-family: 'Playfair Display', serif; font-size: .7rem;
  color: var(--gold-light); letter-spacing: 4px; margin-top: 2px;
}

.nav-links { display: flex; gap: 32px; list-style: none; align-items: center; }
.nav-links a {
  position: relative; font-weight: 600; font-size: 1rem; color: var(--white);
  transition: color .3s;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold-light); }
.nav-links a::after {
  content: ''; position: absolute; bottom: -6px; right: 0;
  height: 2px; width: 0; background: var(--gradient-gold); transition: width .3s;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 28px; border-radius: 50px; font-weight: 700; font-size: .95rem;
  cursor: pointer; border: none; transition: all .3s; font-family: inherit;
}
.btn-primary {
  background: var(--gradient-gold); color: var(--black);
  box-shadow: var(--shadow-gold);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(201,168,76,.45); }
.btn-outline {
  background: transparent; color: var(--gold-light); border: 2px solid var(--gold);
}
.btn-outline:hover { background: var(--gold); color: var(--black); }

.hamburger { display: none; flex-direction: column; gap: 6px; cursor: pointer; background: none; border: none; }
.hamburger span { width: 28px; height: 2px; background: var(--gold-light); transition: .3s; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(6px,6px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(6px,-6px); }

/* ===== Hero ===== */
.hero {
  min-height: 100vh; position: relative; display: flex; align-items: center;
  justify-content: center; text-align: center; overflow: hidden; padding: 120px 24px 60px;
  background: radial-gradient(ellipse at center, #1a1408 0%, var(--black) 70%);
}
#particles { position: absolute; inset: 0; z-index: 1; }
.hero-content { position: relative; z-index: 2; max-width: 900px; }
.hero-badge {
  display: inline-block; padding: 8px 20px; border: 1px solid var(--gold);
  border-radius: 50px; color: var(--gold-light); font-size: .9rem; margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 5rem); line-height: 1.2; margin-bottom: 24px;
}
.hero h1 span {
  background: var(--gradient-gold); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p { font-size: 1.2rem; color: var(--gray); margin-bottom: 36px; max-width: 700px; margin-inline: auto; }
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===== Sections ===== */
section { padding: 100px 0; }
.section-title { text-align: center; margin-bottom: 60px; }
.section-title .label { color: var(--gold); font-size: 1rem; letter-spacing: 3px; }
.section-title h2 {
  font-size: clamp(2rem, 4vw, 3rem); margin-top: 12px;
}
.section-title h2 span {
  background: var(--gradient-gold); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ===== Stats ===== */
.stats { background: var(--black-2); border-block: 1px solid rgba(201,168,76,.15); padding: 70px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stat-num {
  font-size: 3rem; font-weight: 900;
  background: var(--gradient-gold); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-label { color: var(--gray); margin-top: 8px; }

/* ===== Cards ===== */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.card {
  background: linear-gradient(145deg, #181818, #0f0f0f);
  border: 1px solid rgba(201,168,76,.18); border-radius: 18px;
  padding: 32px 26px; transition: all .4s ease; position: relative; overflow: hidden;
}
.card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at top right, rgba(201,168,76,.12), transparent 60%);
  opacity: 0; transition: .4s;
}
.card:hover { transform: translateY(-8px); border-color: var(--gold); box-shadow: var(--shadow-gold); }
.card:hover::before { opacity: 1; }
.card-icon {
  width: 60px; height: 60px; border-radius: 14px;
  background: rgba(201,168,76,.12); display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; color: var(--gold-light);
}
.card h3 { font-size: 1.3rem; margin-bottom: 10px; color: var(--white); }
.card p { color: var(--gray); font-size: .95rem; }

/* ===== Why ===== */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 30px; }
.why-item { text-align: center; padding: 30px 20px; }
.why-item .icon {
  width: 80px; height: 80px; margin: 0 auto 20px; border-radius: 50%;
  background: var(--gradient-gold); display: flex; align-items: center; justify-content: center;
  color: var(--black); box-shadow: var(--shadow-gold);
}
.why-item h4 { font-size: 1.2rem; margin-bottom: 10px; }
.why-item p { color: var(--gray); font-size: .95rem; }

/* ===== Portfolio ===== */
.filters { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.filter-btn {
  padding: 10px 22px; background: transparent; border: 1px solid rgba(201,168,76,.3);
  color: var(--white); border-radius: 50px; cursor: pointer; font-family: inherit; transition: .3s;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--gradient-gold); color: var(--black); border-color: var(--gold);
}

.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px,1fr)); gap: 24px; }
.portfolio-item {
  position: relative; border-radius: 16px; overflow: hidden; cursor: pointer;
  border: 1px solid rgba(201,168,76,.2); aspect-ratio: 4/3; background: var(--black-2);
}
.portfolio-item svg { width: 100%; height: 100%; }
.portfolio-overlay {
  position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,10,10,.95), transparent 60%);
  display: flex; align-items: flex-end; padding: 24px;
  opacity: 0; transition: .4s;
}
.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.portfolio-item:hover svg { transform: scale(1.05); transition: .6s; }
.portfolio-overlay h4 { color: var(--gold-light); font-size: 1.3rem; }
.portfolio-overlay span { color: var(--gray); font-size: .9rem; }

/* ===== Lightbox ===== */
.lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 9998;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.lightbox.active { display: flex; }
.lightbox-content {
  max-width: 800px; width: 100%; background: var(--black-2);
  border: 1px solid var(--gold); border-radius: 20px; padding: 40px; text-align: center;
}
.lightbox-close {
  position: absolute; top: 20px; left: 20px; background: var(--gold); color: var(--black);
  width: 44px; height: 44px; border-radius: 50%; border: none; font-size: 1.4rem; cursor: pointer;
}

/* ===== Blog ===== */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px,1fr)); gap: 30px; }
.blog-card {
  background: var(--black-2); border: 1px solid rgba(201,168,76,.18);
  border-radius: 18px; overflow: hidden; transition: .4s;
}
.blog-card:hover { transform: translateY(-6px); border-color: var(--gold); box-shadow: var(--shadow-gold); }
.blog-img { aspect-ratio: 16/9; background: #1a1408; }
.blog-img svg { width: 100%; height: 100%; }
.blog-body { padding: 24px; }
.blog-date { color: var(--gold); font-size: .85rem; margin-bottom: 10px; }
.blog-body h3 { font-size: 1.2rem; margin-bottom: 10px; }
.blog-body p { color: var(--gray); font-size: .95rem; margin-bottom: 16px; }
.read-more { color: var(--gold-light); font-weight: 700; }
.read-more:hover { color: var(--gold); }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.contact-form input, .contact-form select, .contact-form textarea {
  padding: 14px 18px; background: var(--black-2);
  border: 1px solid rgba(201,168,76,.25); border-radius: 12px;
  color: var(--white); font-family: inherit; font-size: 1rem; transition: .3s;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,168,76,.15);
}
.contact-form textarea { min-height: 140px; resize: vertical; }

.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-card {
  display: flex; align-items: center; gap: 16px;
  padding: 20px; background: var(--black-2);
  border: 1px solid rgba(201,168,76,.18); border-radius: 14px; transition: .3s;
}
.contact-card:hover { border-color: var(--gold); transform: translateX(-4px); }
.contact-card .icon {
  width: 50px; height: 50px; border-radius: 12px; background: var(--gradient-gold);
  display: flex; align-items: center; justify-content: center; color: var(--black); flex-shrink: 0;
}
.contact-card h4 { font-size: 1rem; margin-bottom: 4px; }
.contact-card p { color: var(--gray); font-size: .95rem; }

.map-box {
  background: var(--black-2); border: 1px solid rgba(201,168,76,.2);
  border-radius: 16px; padding: 40px; text-align: center; margin-top: 30px;
}

/* ===== Quick Contact ===== */
.quick-contact { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.social-btn {
  display: flex; align-items: center; gap: 12px; padding: 16px 28px;
  background: var(--black-2); border: 1px solid var(--gold); border-radius: 50px;
  color: var(--gold-light); font-weight: 700; transition: .3s;
}
.social-btn:hover { background: var(--gradient-gold); color: var(--black); transform: translateY(-3px); }

/* ===== Footer ===== */
footer {
  background: #050505; border-top: 1px solid rgba(201,168,76,.2);
  padding: 60px 0 30px; margin-top: 80px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-col h4 { color: var(--gold-light); margin-bottom: 18px; font-size: 1.1rem; }
.footer-col a { display: block; color: var(--gray); padding: 6px 0; transition: .3s; }
.footer-col a:hover { color: var(--gold); padding-right: 6px; }
.footer-keywords { color: #555; font-size: .8rem; line-height: 1.8; padding: 20px 0; border-top: 1px solid rgba(201,168,76,.1); }
.copyright { text-align: center; padding-top: 20px; color: var(--gray); font-size: .9rem; border-top: 1px solid rgba(201,168,76,.1); }

/* ===== WhatsApp Float ===== */
.whatsapp-float {
  position: fixed; bottom: 30px; left: 30px; z-index: 999;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--gradient-gold); display: flex; align-items: center; justify-content: center;
  color: var(--black); box-shadow: var(--shadow-gold);
  animation: bounce 2s infinite; transition: .3s;
}
.whatsapp-float:hover { transform: scale(1.1) rotate(-8deg); }
@keyframes bounce {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ===== Page Hero (inner pages) ===== */
.page-hero {
  padding: 180px 24px 80px; text-align: center;
  background: radial-gradient(ellipse at center, #1a1408 0%, var(--black) 70%);
}
.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}
.page-hero h1 span {
  background: var(--gradient-gold); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.page-hero p { color: var(--gray); margin-top: 16px; max-width: 600px; margin-inline: auto; }

/* ===== Animations ===== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .nav-links {
    position: fixed; top: 70px; right: -100%; width: 80%; max-width: 320px;
    height: calc(100vh - 70px); background: var(--black-2);
    flex-direction: column; padding: 40px 30px; gap: 24px;
    border-right: 1px solid var(--gold); transition: right .35s ease;
  }
  .nav-links.open { right: 0; }
  .hamburger { display: flex; }
  .nav .btn-primary { display: none; }
  .stats-grid { grid-template-columns: repeat(2,1fr); gap: 24px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; text-align: center; }
  .footer-col a:hover { padding-right: 0; }
}

@media (max-width: 480px) {
  section { padding: 70px 0; }
  .hero { padding-top: 110px; }
  .stat-num { font-size: 2.2rem; }
  .whatsapp-float { width: 54px; height: 54px; bottom: 20px; left: 20px; }
}
