/* ================= RESET ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background: #0f0f0f;
  color: rgb(254, 137, 42);
  scroll-behavior: smooth;
}

/* ================= NAVBAR ================= */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px 60px;
  display: flex;
  justify-content: space-between;
  background: rgba(15, 15, 15, 0.9);
  z-index: 1000;
}

.menu {
  list-style: none;
  display: flex;
  gap: 25px;
}

.menu a {
  color: rgb(255, 142, 37);
  text-decoration: none;
}

/* ================= HERO ================= */
.hero {
  min-height: 100vh;
  display: flex;
  padding-top: 80px;
  position: relative;
}

.hero-left {
  width: 50%;
  background: #fe901a;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-left img {
  width: 260px;
  height: 260px;
  border-radius: 50%;
}

.hero-right {
  width: 50%;
  padding: 120px 60px;
  text-align: right;
}

.hero-right h1 {
  font-size: 48px;
}

.hero-right p {
  max-width: 420px;
  color: #f4f1f0;
}

/* ================= TEXT OVER IMAGE ================= */
.hero-text-overlay {
  position: absolute;
  left: 50%;
  top: 55%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 2;
  pointer-events: none;
}

/* ================= WELCOME ANIMATION ================= */
.animated-text {
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 800;
  line-height: 1.1;
  color: #f5f3f2; /* Orange */
  animation: fadeInOut 6s ease-in-out infinite;
}

.animated-subtext {
  font-size: clamp(24px, 4vw, 42px);
  font-weight: 600;
  color: rgba(255, 254, 253, 0.85);
  animation: fadeInOut 6s ease-in-out infinite;
  animation-delay: 1.5s;
}

@keyframes fadeInOut {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  20% {
    opacity: 1;
    transform: translateY(0);
  }
  80% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-30px);
  }
}

/* ================= BUTTONS ================= */
.buttons {
  margin-top: 30px;
}

.btn {
  padding: 12px 25px;
  border: 1px solid white;
  color: white;
  text-decoration: none;
  margin-right: 10px;
  border-radius: 5px;
  font-weight: 600;
  transition: 0.3s;
}

.btn.primary {
  background: #f97316;
  border: none;
}

.btn:hover {
  opacity: 0.9;
}

/* ================= SECTIONS ================= */
.section {
  padding: 120px 60px;
}

.section.dark {
  background: #161616;
}

.section h2 {
  margin-bottom: 20px;
  font-size: 36px;
  font-weight: 800;
  color: #ff7f50;
}

.text {
  max-width: 650px;
  color: #ffffff;
  margin-bottom: 15px;
}

/* ================= SKILLS ================= */
.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.skills span {
  padding: 10px 20px;
  background: #222;
  border-left: 4px solid #fffefd;
}

/* ================= PROJECTS ================= */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
}

.project-card {
  background: #222;
  padding: 25px;
  transition: transform 0.3s;
}

.project-card:hover {
  transform: translateY(-10px);
}

/* ================= FOOTER ================= */
.footer {
  text-align: center;
  padding: 30px;
  background: #000;
  color: #777;
}

/* ================= ANIMATIONS ================= */
.animate {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s ease;
}

.animate.show {
  opacity: 1;
  transform: translateY(0);
}

.delay {
  transition-delay: 0.4s;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
  .hero-right {
    text-align: center;
    padding: 80px 30px;
  }
  .hero-left img {
    width: 200px;
    height: 200px;
  }
}

/* ================= TEXT COLORS ================= */

/* كل النصوص العادية */
.text, 
.hero-right p, 
.section p {
  color: #ffffff; /* أبيض */
}

/* العناوين الرئيسية والثانوية */
h1, h2, h3, h4, h5, h6 {
  color: #ff7f50; /* برتقالي */
}

/* مثال خاص بالـ Hero Right */
.hero-right h4 {
  color: #ff7f50; /* العنوان الصغير */
}

.hero-right h1 {
  color: #ff7f50; /* الاسم */
}

/* الزر الرئيسي */
.btn.primary {
  background: #f97316; /* برتقالي */
  border: none;
  color: #ffffff; /* نص أبيض */
}

