/*
Theme Name: Ezz Jaber
Theme URI: https://ezzjaber.com
Author: Ezz Jaber
Author URI: https://ezzjaber.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: ezz-jaber
Tags: portfolio, personal, rtl, arabic
*/

:root {
  --primary: #0a0f1e;
  --accent: #c9a84c;
  --accent2: #e8c96a;
  --surface: #111827;
  --surface2: #1a2337;
  --text: #f0ece0;
  --text-muted: #8a8f9e;
  --border: rgba(201,168,76,0.2);
}

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

html { scroll-behavior: smooth; }

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

/* NAV */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 3rem;
  background: rgba(10,15,30,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-logo {
  font-family: 'Tajawal', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}

.main-nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.main-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s;
}

.main-nav a:hover { color: var(--accent); }

/* HERO */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 3rem 3rem;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(201,168,76,0.08) 0%, transparent 70%);
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(201,168,76,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-content { position: relative; z-index: 2; max-width: 800px; margin: 0 auto; }

.hero-badge {
  display: inline-block;
  border: 1px solid var(--border);
  color: var(--accent);
  font-size: 0.8rem;
  padding: 0.4rem 1.2rem;
  border-radius: 2rem;
  margin-bottom: 2rem;
}

.hero-name {
  font-family: 'Tajawal', sans-serif;
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.hero-name span { color: var(--accent); }

.hero-title {
  font-family: 'Tajawal', sans-serif;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 300;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.hero-desc {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}

.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn-primary {
  background: var(--accent);
  color: var(--primary);
  border: none;
  padding: 0.85rem 2rem;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Cairo', sans-serif;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
}

.btn-primary:hover { background: var(--accent2); transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--border);
  padding: 0.85rem 2rem;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Cairo', sans-serif;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
}

.btn-outline:hover { border-color: var(--accent); background: rgba(201,168,76,0.08); }

.hero-stats {
  display: flex;
  gap: 3rem;
  justify-content: center;
  margin-top: 4rem;
  flex-wrap: wrap;
}

.stat-num {
  font-family: 'Tajawal', sans-serif;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}

.stat-label { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.3rem; }

/* SECTIONS */
.site-section {
  padding: 5rem 3rem;
  max-width: 1100px;
  margin: 0 auto;
}

.section-header { text-align: center; margin-bottom: 3.5rem; }

.section-tag {
  display: inline-block;
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: 'Tajawal', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--text);
}

.section-line {
  width: 50px;
  height: 2px;
  background: var(--accent);
  margin: 1rem auto 0;
}

/* ABOUT */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }

.about-text p { color: var(--text-muted); margin-bottom: 1rem; font-size: 1rem; line-height: 1.9; }

.about-info { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.5rem; }

.info-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  background: var(--surface);
}

.info-label { font-size: 0.75rem; color: var(--accent); margin-bottom: 0.3rem; }
.info-value { font-size: 0.9rem; font-weight: 600; }

.skills-visual { display: flex; flex-direction: column; gap: 1rem; }

.skill-row { display: flex; flex-direction: column; gap: 0.3rem; }

.skill-name {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.skill-bar { height: 4px; background: var(--surface2); border-radius: 4px; overflow: hidden; }

.skill-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 4px;
}

/* TIMELINE */
.timeline { position: relative; }

.timeline::before {
  content: '';
  position: absolute;
  right: 20px;
  top: 0; bottom: 0;
  width: 1px;
  background: var(--border);
}

.timeline-item {
  display: flex;
  gap: 2rem;
  margin-bottom: 2.5rem;
  position: relative;
  padding-right: 60px;
}

.timeline-dot {
  position: absolute;
  right: 12px;
  top: 6px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--primary);
}

.timeline-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  flex: 1;
  transition: border-color 0.3s;
}

.timeline-card:hover { border-color: var(--accent); }

.timeline-period { font-size: 0.78rem; color: var(--accent); margin-bottom: 0.5rem; }
.timeline-role { font-family: 'Tajawal', sans-serif; font-size: 1.15rem; font-weight: 700; margin-bottom: 0.3rem; }
.timeline-company { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 0.8rem; }
.timeline-desc { font-size: 0.88rem; color: var(--text-muted); line-height: 1.8; }

/* PROJECTS */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.project-card:hover { border-color: rgba(201,168,76,0.5); transform: translateY(-4px); }

.project-icon { font-size: 2rem; margin-bottom: 1rem; }
.project-title { font-family: 'Tajawal', sans-serif; font-size: 1.1rem; font-weight: 700; margin-bottom: 0.6rem; }
.project-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.8; margin-bottom: 1rem; }

.project-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.tag {
  font-size: 0.72rem;
  padding: 0.25rem 0.7rem;
  border-radius: 4px;
  background: rgba(201,168,76,0.1);
  color: var(--accent);
  border: 1px solid var(--border);
}

/* ARTICLES */
.articles-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }

.article-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s;
}

.article-card:hover { border-color: rgba(201,168,76,0.4); transform: translateY(-3px); }

.article-category { font-size: 0.72rem; color: var(--accent); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 0.7rem; }
.article-title { font-family: 'Tajawal', sans-serif; font-size: 1rem; font-weight: 600; margin-bottom: 0.6rem; line-height: 1.5; }
.article-excerpt { font-size: 0.83rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 1rem; }
.article-meta { display: flex; justify-content: space-between; align-items: center; font-size: 0.75rem; color: var(--text-muted); }
.article-meta a { color: var(--accent); text-decoration: none; }

/* EDUCATION */
.edu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }

.edu-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-right: 3px solid var(--accent);
  border-radius: 12px;
  padding: 1.5rem;
  transition: border-color 0.3s;
}

.edu-degree { font-family: 'Tajawal', sans-serif; font-size: 1.05rem; font-weight: 700; margin-bottom: 0.3rem; }
.edu-field { color: var(--accent); font-size: 0.85rem; margin-bottom: 0.3rem; }
.edu-uni { color: var(--text-muted); font-size: 0.83rem; }
.edu-year { color: var(--text-muted); font-size: 0.78rem; margin-top: 0.5rem; }

/* CONTACT */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 3rem;
}

.contact-info h3 { font-family: 'Tajawal', sans-serif; font-size: 1.5rem; font-weight: 700; margin-bottom: 1rem; }
.contact-info p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.8; margin-bottom: 2rem; }

.contact-item { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; color: var(--text-muted); font-size: 0.88rem; }

.contact-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(201,168,76,0.1);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-label { font-size: 0.8rem; color: var(--text-muted); }

.form-input, .form-textarea {
  background: var(--primary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: var(--text);
  font-family: 'Cairo', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.3s;
  direction: rtl;
  width: 100%;
}

.form-input:focus, .form-textarea:focus { border-color: var(--accent); }
.form-textarea { min-height: 120px; resize: vertical; }

/* FOOTER */
.site-footer {
  text-align: center;
  padding: 2.5rem 3rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.site-footer span { color: var(--accent); }

/* REVEAL ANIMATION */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* RESPONSIVE */
@media (max-width: 768px) {
  .site-header { padding: 1rem 1.5rem; }
  .site-section { padding: 3rem 1.5rem; }
  .about-grid, .contact-wrapper { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.5rem; }
  .timeline::before { right: 10px; }
  .timeline-item { padding-right: 40px; }
  .timeline-dot { right: 2px; }
}
