/*
Theme Name: تراحم للتعدين
Theme URI: https://tarahem-mining.com
Author: تراحم للتعدين
Author URI: https://tarahem-mining.com
Description: قالب احترافي لشركة تراحم للتعدين — مصمم بأسلوب عصري يعكس هوية الشركة في قطاع التعدين.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tarahem-mining
Tags: mining, corporate, arabic, rtl, gold, dark
*/

/* ═══════════════════════════════════════
   ROOT VARIABLES
═══════════════════════════════════════ */
:root {
  --gold: #C9A84C;
  --gold-light: #E2C97A;
  --gold-dim: rgba(201,168,76,0.15);
  --gold-border: rgba(201,168,76,0.25);
  --dark: #06080E;
  --dark2: #0C0F1A;
  --dark3: #111522;
  --steel: #8A9BAE;
  --white: #F4F6FA;
  --white-dim: rgba(244,246,250,0.45);
  --white-faint: rgba(244,246,250,0.12);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Cairo', sans-serif;
  background: var(--dark);
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
  direction: rtl;
}
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark2); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

/* NAVBAR */
.navbar {
  position: fixed; top: 0; right: 0; left: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 60px; height: 72px;
  background: rgba(6,8,14,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--gold-border);
  transition: background 0.3s;
}
.logo { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.logo-icon { width: 44px; height: 44px; flex-shrink: 0; }
.logo-name { font-size: 20px; font-weight: 900; color: var(--gold); letter-spacing: 0.02em; display: block; }
.logo-tagline { font-size: 10px; color: rgba(201,168,76,0.55); letter-spacing: 0.12em; display: block; }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { font-size: 14px; color: var(--white-dim); text-decoration: none; transition: color 0.2s; position: relative; }
.nav-links a::after { content:''; position:absolute; bottom:-4px; right:0; width:0; height:1px; background:var(--gold); transition:width .25s; }
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { background:var(--gold); color:var(--dark); font-family:'Cairo',sans-serif; font-weight:700; font-size:13px; padding:10px 24px; border:none; border-radius:6px; cursor:pointer; transition:transform .15s,box-shadow .15s; }
.nav-cta:hover { transform:translateY(-1px); box-shadow:0 6px 24px rgba(201,168,76,0.3); }
.mobile-menu-btn { display:none; flex-direction:column; gap:5px; cursor:pointer; background:none; border:none; padding:4px; }
.mobile-menu-btn span { display:block; width:24px; height:2px; background:var(--white); border-radius:2px; transition:all 0.3s; }

/* HERO */
.hero { position:relative; z-index:1; min-height:100vh; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; padding:120px 24px 80px; overflow:hidden; }
#particle-canvas { position:fixed; top:0; left:0; width:100%; height:100%; z-index:0; pointer-events:none; }
.hero-badge { display:inline-flex; align-items:center; gap:8px; background:var(--gold-dim); border:1px solid var(--gold-border); border-radius:999px; padding:7px 20px; font-size:12px; color:var(--gold); letter-spacing:0.08em; margin-bottom:40px; animation:fadeUp .8s ease both; }
.badge-pulse { width:6px; height:6px; border-radius:50%; background:var(--gold); animation:pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.3;transform:scale(0.7)} }
.hero-crystal { width:180px; height:180px; margin-bottom:40px; animation:fadeUp .9s ease both, rotateSlow 18s linear infinite; filter:drop-shadow(0 0 28px rgba(201,168,76,0.22)); }
@keyframes rotateSlow { to { transform: rotate(360deg); } }
.hero-h1 { font-size:clamp(36px,6.5vw,84px); font-weight:900; line-height:1.08; margin-bottom:24px; animation:fadeUp 1s ease both .2s; }
.hero-h1 .line-gold { color:var(--gold); display:block; }
.hero-h1 .line-dim  { color:rgba(244,246,250,0.3); display:block; font-weight:300; font-size:0.72em; margin-top:8px; }
.hero-sub { font-size:clamp(15px,1.9vw,20px); color:var(--white-dim); max-width:580px; line-height:1.8; margin-bottom:52px; animation:fadeUp 1s ease both .35s; }
.hero-btns { display:flex; flex-wrap:wrap; gap:14px; justify-content:center; animation:fadeUp 1s ease both .5s; }
.btn-primary { background:var(--gold); color:var(--dark); font-family:'Cairo',sans-serif; font-weight:700; font-size:15px; padding:15px 42px; border:none; border-radius:8px; cursor:pointer; transition:transform .2s,box-shadow .2s; text-decoration:none; display:inline-block; }
.btn-primary:hover { transform:translateY(-2px); box-shadow:0 10px 36px rgba(201,168,76,0.32); }
.btn-ghost { background:transparent; color:var(--white); font-family:'Cairo',sans-serif; font-weight:600; font-size:15px; padding:15px 42px; border:1px solid rgba(244,246,250,0.2); border-radius:8px; cursor:pointer; transition:border-color .2s,background .2s; text-decoration:none; display:inline-block; }
.btn-ghost:hover { border-color:var(--gold); background:var(--gold-dim); }
.hero-scroll { position:absolute; bottom:36px; left:50%; transform:translateX(-50%); display:flex; flex-direction:column; align-items:center; gap:8px; animation:fadeIn 1.5s ease both 1.2s; }
.hero-scroll span { font-size:11px; color:var(--white-dim); letter-spacing:0.1em; }
.scroll-line { width:1px; height:40px; background:linear-gradient(to bottom,var(--gold),transparent); animation:scrollAnim 2s ease infinite; }
@keyframes scrollAnim { 0%{opacity:0;transform:scaleY(0);transform-origin:top} 50%{opacity:1;transform:scaleY(1)} 100%{opacity:0;transform:scaleY(1);transform-origin:bottom} }
@keyframes fadeUp { from{opacity:0;transform:translateY(28px)} to{opacity:1;transform:translateY(0)} }
@keyframes fadeIn { from{opacity:0} to{opacity:1} }

/* STATS */
.stats-bar { position:relative; z-index:1; display:flex; justify-content:center; flex-wrap:wrap; background:rgba(201,168,76,0.04); border-top:1px solid var(--gold-border); border-bottom:1px solid var(--gold-border); }
.stat-item { padding:28px 52px; text-align:center; border-left:1px solid rgba(255,255,255,0.07); flex:1; min-width:160px; }
.stat-item:last-child { border-left:none; }
.stat-num { font-size:38px; font-weight:900; color:var(--gold); line-height:1; display:block; }
.stat-label { font-size:12px; color:var(--white-dim); margin-top:6px; letter-spacing:0.05em; display:block; }

/* SECTION */
.section { position:relative; z-index:1; padding:100px 60px; max-width:1200px; margin:0 auto; }
.sec-label { font-size:11px; color:var(--gold); letter-spacing:0.15em; text-transform:uppercase; margin-bottom:12px; }
.sec-title { font-size:clamp(28px,4vw,52px); font-weight:900; line-height:1.12; margin-bottom:16px; }
.sec-title .accent { color:var(--gold); }
.sec-desc { font-size:16px; color:var(--white-dim); max-width:500px; line-height:1.8; margin-bottom:64px; }

/* SERVICES */
.services-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:1px; background:rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.07); border-radius:16px; overflow:hidden; }
.service-card { background:var(--dark2); padding:40px 32px; position:relative; transition:background .25s; overflow:hidden; }
.service-card::before { content:''; position:absolute; inset:0; background:radial-gradient(circle at 0% 100%,rgba(201,168,76,0.07) 0%,transparent 60%); opacity:0; transition:opacity .3s; }
.service-card:hover::before { opacity:1; }
.service-card:hover { background:#0f1120; }
.service-num { font-size:11px; color:rgba(201,168,76,0.35); letter-spacing:0.14em; margin-bottom:24px; font-weight:600; }
.service-icon { font-size:32px; margin-bottom:20px; display:block; line-height:1; }
.service-name { font-size:18px; font-weight:700; margin-bottom:10px; color:var(--white); }
.service-desc { font-size:14px; color:var(--white-dim); line-height:1.75; }
.service-card::after { content:''; position:absolute; bottom:0; right:0; width:0; height:2px; background:var(--gold); transition:width .35s ease; }
.service-card:hover::after { width:100%; }

/* PROJECTS */
.projects-section { position:relative; z-index:1; background:rgba(201,168,76,0.025); border-top:1px solid var(--gold-border); border-bottom:1px solid var(--gold-border); padding:100px 0; }
.projects-inner { max-width:1200px; margin:0 auto; padding:0 60px; }
.projects-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.project-card { background:var(--dark3); border:1px solid rgba(255,255,255,0.07); border-radius:14px; overflow:hidden; transition:border-color .25s,transform .25s; }
.project-card:hover { border-color:var(--gold-border); transform:translateY(-4px); }
.project-img { height:180px; background:var(--dark2); display:flex; align-items:center; justify-content:center; font-size:56px; border-bottom:1px solid rgba(255,255,255,0.06); position:relative; overflow:hidden; }
.project-img::before { content:''; position:absolute; inset:0; background:linear-gradient(135deg,rgba(201,168,76,0.06) 0%,transparent 60%); }
.project-body { padding:24px 24px 28px; }
.project-tag { font-size:10px; color:var(--gold); background:var(--gold-dim); border:1px solid var(--gold-border); border-radius:999px; padding:3px 12px; display:inline-block; margin-bottom:12px; letter-spacing:0.06em; }
.project-name { font-size:17px; font-weight:700; margin-bottom:8px; }
.project-desc { font-size:13px; color:var(--white-dim); line-height:1.7; margin-bottom:18px; }
.project-meta { display:flex; gap:16px; }
.project-meta-item { font-size:12px; color:rgba(244,246,250,0.35); }
.project-meta-item strong { color:var(--gold); font-size:14px; display:block; font-weight:700; }

/* WHY */
.why-grid { display:grid; grid-template-columns:1fr 1fr; gap:80px; align-items:center; }
.why-visual { background:var(--dark2); border:1px solid var(--gold-border); border-radius:18px; padding:48px 40px; position:relative; overflow:hidden; }
.why-visual::before { content:''; position:absolute; top:-60px; left:-60px; width:200px; height:200px; border-radius:50%; background:radial-gradient(circle,rgba(201,168,76,0.12),transparent 70%); }
.why-big-num { font-size:80px; font-weight:900; color:var(--gold); line-height:1; display:block; margin-bottom:4px; }
.why-big-label { font-size:14px; color:var(--white-dim); margin-bottom:40px; display:block; }
.why-divider { width:40px; height:1px; background:var(--gold); margin-bottom:28px; opacity:0.5; }
.why-list { list-style:none; display:flex; flex-direction:column; gap:20px; }
.why-item { display:flex; align-items:flex-start; gap:14px; }
.why-check { width:28px; height:28px; border-radius:50%; border:1px solid var(--gold-border); display:flex; align-items:center; justify-content:center; flex-shrink:0; margin-top:2px; font-size:14px; }
.why-item-text strong { font-size:15px; font-weight:700; display:block; margin-bottom:3px; }
.why-item-text span { font-size:13px; color:var(--white-dim); line-height:1.6; }

/* CONTACT */
.contact-section { position:relative; z-index:1; background:rgba(201,168,76,0.025); border-top:1px solid var(--gold-border); padding:100px 60px; }
.contact-inner { max-width:1200px; margin:0 auto; display:grid; grid-template-columns:1fr 1fr; gap:80px; align-items:start; }
.contact-info { display:flex; flex-direction:column; gap:28px; margin-top:16px; }
.contact-item { display:flex; gap:16px; align-items:flex-start; }
.contact-icon { width:44px; height:44px; border-radius:10px; background:var(--gold-dim); border:1px solid var(--gold-border); display:flex; align-items:center; justify-content:center; font-size:20px; flex-shrink:0; }
.contact-item-text strong { font-size:14px; font-weight:700; display:block; margin-bottom:3px; }
.contact-item-text span { font-size:13px; color:var(--white-dim); }
.contact-form { display:flex; flex-direction:column; gap:16px; }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.form-group { display:flex; flex-direction:column; gap:8px; }
.form-group label { font-size:13px; color:var(--white-dim); font-weight:600; }
.form-group input,.form-group textarea,.form-group select { background:var(--dark3); border:1px solid rgba(255,255,255,0.1); border-radius:8px; padding:12px 16px; font-family:'Cairo',sans-serif; font-size:14px; color:var(--white); outline:none; transition:border-color .2s; resize:none; }
.form-group input:focus,.form-group textarea:focus,.form-group select:focus { border-color:var(--gold); }
.form-group select option { background:var(--dark3); }
.btn-submit { background:var(--gold); color:var(--dark); font-family:'Cairo',sans-serif; font-weight:700; font-size:15px; padding:14px; border:none; border-radius:8px; cursor:pointer; transition:transform .2s,box-shadow .2s; margin-top:4px; }
.btn-submit:hover { transform:translateY(-2px); box-shadow:0 8px 28px rgba(201,168,76,0.28); }

/* FOOTER */
footer { position:relative; z-index:1; background:var(--dark2); border-top:1px solid rgba(255,255,255,0.06); padding:60px 60px 32px; }
.footer-top { display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:48px; margin-bottom:48px; }
.footer-brand p { font-size:13px; color:var(--white-dim); line-height:1.8; margin-top:16px; max-width:280px; }
.footer-col h4 { font-size:13px; font-weight:700; color:var(--white); margin-bottom:16px; letter-spacing:0.04em; }
.footer-col ul { list-style:none; display:flex; flex-direction:column; gap:10px; }
.footer-col ul li a { font-size:13px; color:var(--white-dim); text-decoration:none; transition:color .2s; }
.footer-col ul li a:hover { color:var(--gold); }
.footer-bottom { display:flex; justify-content:space-between; align-items:center; padding-top:28px; border-top:1px solid rgba(255,255,255,0.06); flex-wrap:wrap; gap:12px; }
.footer-bottom p { font-size:12px; color:rgba(244,246,250,0.25); }
.footer-bottom p strong { color:rgba(244,246,250,0.45); }
.footer-socials { display:flex; gap:12px; }
.social-btn { width:36px; height:36px; border-radius:8px; background:var(--white-faint); border:1px solid rgba(255,255,255,0.08); display:flex; align-items:center; justify-content:center; font-size:16px; cursor:pointer; transition:background .2s,border-color .2s; text-decoration:none; }
.social-btn:hover { background:var(--gold-dim); border-color:var(--gold-border); }

/* RESPONSIVE */
@media (max-width: 900px) {
  .navbar { padding:0 24px; }
  .nav-links,.nav-cta { display:none; }
  .mobile-menu-btn { display:flex; }
  .section { padding:72px 24px; }
  .services-grid,.projects-grid { grid-template-columns:1fr; }
  .why-grid,.contact-inner { grid-template-columns:1fr; gap:40px; }
  .contact-section { padding:72px 24px; }
  .footer-top { grid-template-columns:1fr 1fr; }
  footer { padding:48px 24px 24px; }
  .stat-item { padding:24px 28px; }
  .projects-inner { padding:0 24px; }
  .form-row { grid-template-columns:1fr; }
}
@media (max-width: 560px) {
  .footer-top { grid-template-columns:1fr; }
  .hero-crystal { width:130px; height:130px; }
}
