/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold:       #b08d57;
  --gold-light: #c9a96e;
  --dark:       #0f1114;
  --dark2:      #1a1e24;
  --dark3:      #252b33;
  --text-muted: #9a9a9a;
  --white:      #ffffff;
  --section-bg: #f5f3ef;
  --radius:     6px;
  --shadow:     0 4px 24px rgba(0,0,0,0.12);
  --transition: 0.3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Cairo', sans-serif;
  background: var(--white);
  color: #1a1e24;
  line-height: 1.7;
  direction: rtl;
}
body.lang-en {
  font-family: 'Inter', sans-serif;
  direction: ltr;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

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

/* SECTION HEADER */
.section-header        { text-align: center; margin-bottom: 60px; }
.section-header h2     { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 700; color: var(--dark); margin: 8px 0 16px; }
.section-header p      { color: var(--text-muted); max-width: 560px; margin: 0 auto; font-size: 1.05rem; }
.section-header.light h2 { color: var(--white); }
.section-header.light p  { color: rgba(255,255,255,0.65); }

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 4px 14px;
  border-radius: 40px;
}

/* BUTTONS */
.btn { display: inline-block; padding: 14px 32px; border-radius: var(--radius); font-size: 0.95rem; font-weight: 600; cursor: pointer; transition: var(--transition); border: 2px solid transparent; }
.btn-primary  { background: var(--gold); color: var(--white); border-color: var(--gold); }
.btn-primary:hover  { background: var(--gold-light); border-color: var(--gold-light); }
.btn-outline  { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline:hover  { background: var(--white); color: var(--dark); }
.full-width   { width: 100%; text-align: center; }

/* NAVBAR */
.navbar { position: fixed; top: 0; width: 100%; z-index: 1000; transition: background var(--transition), box-shadow var(--transition); }
.navbar.scrolled { background: var(--dark); box-shadow: 0 2px 20px rgba(0,0,0,0.35); }

.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }

.logo { display: flex; flex-direction: column; line-height: 1.2; }
.logo-ar { font-size: 1.05rem; font-weight: 700; color: var(--gold); }
.logo-en { font-size: 0.7rem; color: rgba(255,255,255,0.5); font-family: 'Inter', sans-serif; letter-spacing: 0.05em; }

.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { color: rgba(255,255,255,0.85); font-size: 0.9rem; font-weight: 500; transition: color var(--transition); position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: -4px; right: 0; width: 0; height: 2px; background: var(--gold); transition: width var(--transition); }
body.lang-en .nav-links a::after { right: auto; left: 0; }
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 12px; }

.lang-btn { background: transparent; border: 1px solid rgba(255,255,255,0.4); color: var(--white); padding: 5px 14px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; cursor: pointer; transition: var(--transition); font-family: 'Inter', sans-serif; }
.lang-btn:hover { background: var(--gold); border-color: var(--gold); }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: var(--transition); }

/* HERO */
.hero { position: relative; height: 100vh; min-height: 600px; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(10,12,16,0.87) 0%, rgba(10,12,16,0.5) 100%); z-index: 1; }
.hero-content { position: relative; z-index: 2; color: var(--white); max-width: 680px; }
.hero-tag { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.hero-content h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 900; line-height: 1.15; margin-bottom: 20px; }
.hero-sub { font-size: clamp(1rem, 2vw, 1.3rem); color: rgba(255,255,255,0.78); margin-bottom: 40px; font-weight: 300; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }

.scroll-hint { position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); z-index: 2; }
.scroll-hint span { display: block; width: 2px; height: 48px; background: linear-gradient(to bottom, var(--gold), transparent); margin: 0 auto; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{ opacity:1; transform:scaleY(1); } 50%{ opacity:0.4; transform:scaleY(0.6); } }

/* STATS */
.stats-bar { background: var(--dark); padding: 52px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; text-align: center; }
.stat-item p { color: rgba(255,255,255,0.55); font-size: 0.88rem; margin-top: 6px; }
.stat-num  { font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; color: var(--gold); font-family: 'Inter', sans-serif; }
.stat-plus { font-size: 1.5rem; color: var(--gold); font-weight: 700; }

/* ABOUT */
.about { background: var(--section-bg); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-images { position: relative; }
.about-img-main { width: 100%; height: 460px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.about-img-secondary { position: absolute; bottom: -32px; left: -32px; width: 200px; height: 200px; object-fit: cover; border-radius: var(--radius); border: 5px solid var(--white); box-shadow: var(--shadow); }
body.lang-en .about-img-secondary { left: auto; right: -32px; }

.about-text .section-tag { margin-bottom: 12px; }
.about-text h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; margin-bottom: 20px; color: var(--dark); }
.about-text p  { color: #555; margin-bottom: 16px; font-size: 0.97rem; }
.about-list    { margin-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.about-list li { display: flex; align-items: center; gap: 10px; font-size: 0.93rem; color: var(--dark2); font-weight: 500; }
.about-list li::before { content: ''; display: block; width: 8px; height: 8px; min-width: 8px; background: var(--gold); border-radius: 50%; }

/* SERVICES */
.services { background: var(--white); }
.services-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.service-card  { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--white); border: 1px solid #ebe8e3; transition: transform var(--transition), box-shadow var(--transition); }
.service-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(0,0,0,0.15); }
.service-img-wrap { height: 210px; overflow: hidden; }
.service-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.service-card:hover .service-img-wrap img { transform: scale(1.05); }
.service-body   { padding: 24px; }
.service-body h3 { font-size: 1.05rem; font-weight: 700; color: var(--dark); margin-bottom: 10px; }
.service-body p  { font-size: 0.88rem; color: #666; line-height: 1.6; }

/* PROJECTS */
.projects { background: var(--section-bg); }
.projects-grid { display: grid; grid-template-columns: repeat(3,1fr); grid-template-rows: auto auto; gap: 20px; }
.project-card  { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--dark); cursor: pointer; }
.project-card.large { grid-column: span 2; grid-row: span 2; }
.project-card img { width: 100%; height: 100%; object-fit: cover; min-height: 220px; opacity: 0.9; transition: transform 0.5s ease, opacity 0.5s ease; }
.project-card.large img { min-height: 460px; }
.project-card:hover img { transform: scale(1.05); opacity: 0.7; }
.project-info { position: absolute; bottom: 0; left: 0; right: 0; padding: 24px; background: linear-gradient(to top, rgba(10,12,16,0.92) 0%, transparent 100%); color: var(--white); transform: translateY(8px); transition: transform var(--transition); }
.project-card:hover .project-info { transform: translateY(0); }
.project-info span { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.project-info h3 { font-size: 1rem; font-weight: 600; }
.project-card.large .project-info h3 { font-size: 1.3rem; }

/* WHY US */
.why-us  { background: var(--dark2); }
.why-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 28px; }
.why-card { background: var(--dark3); border-radius: var(--radius); padding: 36px 28px; text-align: center; border: 1px solid rgba(255,255,255,0.06); transition: border-color var(--transition), transform var(--transition); }
.why-card:hover { border-color: var(--gold); transform: translateY(-4px); }
.why-icon { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; margin: 0 auto 20px; border: 2px solid var(--gold); }
.why-icon img { width: 100%; height: 100%; object-fit: cover; }
.why-card h3 { font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 12px; }
.why-card p  { font-size: 0.85rem; color: rgba(255,255,255,0.58); line-height: 1.6; }

/* CONTACT */
.contact { background: var(--white); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-info .section-tag { margin-bottom: 12px; }
.contact-info h2 { font-size: clamp(1.6rem, 2.5vw, 2.2rem); font-weight: 700; color: var(--dark); margin-bottom: 16px; }
.contact-info > p { color: #666; margin-bottom: 36px; font-size: 0.95rem; }
.contact-details { display: flex; flex-direction: column; gap: 24px; }
.contact-item { display: flex; align-items: flex-start; gap: 16px; }
.contact-item-icon { width: 44px; height: 44px; min-width: 44px; background: rgba(176,141,87,0.12); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--gold); }
.contact-item-icon svg { width: 20px; height: 20px; }
.contact-item strong { display: block; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 4px; }
.contact-item a, .contact-item span { color: var(--dark); font-size: 0.95rem; font-weight: 500; }
.contact-item a:hover { color: var(--gold); }

.contact-form { background: var(--section-bg); padding: 40px; border-radius: var(--radius); display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group label { font-size: 0.8rem; font-weight: 700; color: var(--dark2); text-transform: uppercase; letter-spacing: 0.06em; }
.form-group input,
.form-group textarea { width: 100%; padding: 12px 16px; border: 1px solid #ddd; border-radius: var(--radius); font-size: 0.93rem; font-family: inherit; background: var(--white); color: var(--dark); transition: border-color var(--transition); outline: none; }
.form-group input:focus,
.form-group textarea:focus { border-color: var(--gold); }
.form-group textarea { resize: vertical; }
.form-success { font-size: 0.9rem; color: #2e7d32; text-align: center; display: none; }
.form-success.visible { display: block; }

/* FOOTER */
.footer { background: var(--dark); color: rgba(255,255,255,0.65); }
.footer-inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 48px; padding: 64px 0 48px; }
.footer-logo-ar { font-size: 1.2rem; font-weight: 700; color: var(--gold); margin-bottom: 2px; }
.footer-logo-en { font-size: 0.72rem; color: rgba(255,255,255,0.35); font-family: 'Inter', sans-serif; letter-spacing: 0.06em; margin-bottom: 14px; }
.footer-brand p:last-child { font-size: 0.85rem; color: rgba(255,255,255,0.45); }
.footer-links h4, .footer-contact h4 { color: var(--white); font-size: 0.88rem; font-weight: 700; margin-bottom: 18px; text-transform: uppercase; letter-spacing: 0.08em; }
.footer-links ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links a  { font-size: 0.88rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--gold); }
.footer-contact p { font-size: 0.88rem; margin-bottom: 8px; }
.footer-contact a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); text-align: center; padding: 20px 0; font-size: 0.82rem; color: rgba(255,255,255,0.38); }

/* ANIMATIONS */
.fade-in { opacity: 0; transform: translateY(28px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .stats-grid    { grid-template-columns: repeat(2,1fr); }
  .services-grid { grid-template-columns: repeat(2,1fr); }
  .why-grid      { grid-template-columns: repeat(2,1fr); }
  .footer-inner  { grid-template-columns: 1fr 1fr; }
  .footer-brand  { grid-column: span 2; }
}
@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .hamburger { display: flex; }
  .nav-links {
    position: fixed; top: 72px; right: 0; width: 260px;
    height: calc(100vh - 72px); background: var(--dark);
    flex-direction: column; align-items: flex-start;
    padding: 32px 24px; gap: 24px;
    transform: translateX(100%); transition: transform var(--transition); z-index: 999;
  }
  body.lang-en .nav-links { right: auto; left: 0; transform: translateX(-100%); }
  .nav-links.open { transform: translateX(0); }
  .about-grid    { grid-template-columns: 1fr; }
  .about-images  { order: -1; }
  .about-img-secondary { display: none; }
  .about-img-main { height: 300px; }
  .projects-grid { grid-template-columns: 1fr; }
  .project-card.large { grid-column: span 1; grid-row: span 1; }
  .project-card.large img { min-height: 300px; }
  .contact-grid  { grid-template-columns: 1fr; }
  .footer-inner  { grid-template-columns: 1fr; gap: 36px; }
  .footer-brand  { grid-column: span 1; }
  .hero-btns     { flex-direction: column; width: fit-content; }
}
@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
  .why-grid      { grid-template-columns: 1fr; }
  .contact-form  { padding: 28px 20px; }
}


.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    z-index: 0;
}

