body {
  background-color: #0f0f0f;
  color: #f5f5f5;
  font-family: 'Playfair Display', serif;
  margin: 0;
  padding: 0;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #111;
  padding: 15px 40px;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.7);
}

header .navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header .logo {
  font-size: 1.4rem;
  font-weight: bold;
  color: #ffcc66;
}

header .navbar ul {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}

header .navbar ul li a {
  color: #f5f5f5;
  text-decoration: none;
  font-size: 1.1rem;
  transition: color 0.3s ease, border-bottom 0.3s ease;
}

header .navbar ul li a:hover {
  color: #ffcc66;
  border-bottom: 2px solid #ffcc66;
  padding-bottom: 3px;
}

/* Hamburger */
.menu-toggle {
  display: none;
  font-size: 2rem;
  color: #ffcc66;
  cursor: pointer;
}

/* Section Style */
.section {
  padding: 100px 20px 60px;
  border-bottom: 1px solid #495057;
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  border-bottom: 2px solid #ffcc66;
  display: inline-block;
  padding-bottom: 10px;
}

/* Hero Section */
.hero {
  background: linear-gradient(to right, #1a1a1a, #111);
  min-height: 100vh;
  padding: 40px 20px;
}
.hero img {
  border-radius: 50%;
  border: 6px solid #fff;
  width: 380px;
  height: 380px;
  object-fit: cover;
  box-shadow: 0 0 25px #ffcc66;
}
.hero h1 {
  font-size: 4rem;
  margin-top: 15px;
  font-weight: bold;
}
.hero p {
  font-size: 2rem;
  font-style: italic;
  color: #ffcc66;
  margin: 15px 0;
}

/* Projects Section */
.projects .year {
  font-weight: bold;
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #ffcc66;
}

/* Skills */
.skills-circle {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 6px solid #ffcc66;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: bold;
  margin: auto;
  margin-bottom: 10px;
  color: #ffcc66;
  transition: transform 0.3s ease;
}
.skills-circle:hover {
  transform: scale(1.1);
}

/* Portfolio */
.portfolio-card {
  background: #1f1f1f;
  padding: 25px;
  border-radius: 12px;
  height: 100%;
  text-align: center;
  transition: all 0.3s ease;
}
.portfolio-card:hover {
  transform: translateY(-5px);
  background: #262626;
}
.portfolio-card h5 {
  margin-bottom: 10px;
  color: #ffcc66;
}
.portfolio-card a {
  text-decoration: none;
  font-weight: bold;
}

/* Images & Videos */
.project-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}
.project-video {
  width: 100%;
  height: 200px;
  border-radius: 8px;
  margin-bottom: 15px;
  background: #000;
}

/* Contact Section */
.contact-box {
  background: #262626;
  color: #ffffff;
  padding: 40px;
  border-radius: 12px;
  text-align: center;
  max-width: 600px;
  margin: auto;
  border: 3px solid orange;
  box-shadow: 0 0 10px #ffcc66;
}
.contact-box h3 {
  margin-bottom: 20px;
  font-weight: bold;
}
.contact-box p, 
.contact-box a {
  margin: 10px 0;
  color: #ffffff;
  text-decoration: none;
}
.contact-box a:hover {
  color: orange;
  font-weight: bold;
}

/* 📱 Responsive Media Queries 
@media (max-width: 992px) {
  .hero img {
    width: 280px;
    height: 280px;
  }
  .hero h1 {
    font-size: 2.8rem;
  }
  .hero p {
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  header {
    padding: 15px 20px;
  }
  .menu-toggle {
    display: block;
  }
  header .navbar ul {
    display: none;
    flex-direction: column;
    background: #111;
    position: absolute;
    top: 60px;
    right: 20px;
    width: 200px;
    border-radius: 8px;
    padding: 15px;
  }
  header .navbar ul.active {
    display: flex;
  }
  header .navbar ul li {
    margin: 10px 0;
  }
  .hero img {
    width: 220px;
    height: 220px;
  }
  .hero h1 {
    font-size: 2.2rem;
  }
  .hero p {
    font-size: 1.2rem;
  }
}
/* 
************************** */
@media (max-width: 992px) {
  .hero img {
    width: 300px;
    height: 300px;
    margin-top: 25px; /* مسافة بين الصورة والكلام */
  }
  .hero h1 {
    font-size: 2.8rem;
  }
  .hero p {
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  header {
    padding: 15px 20px;
  }
  .menu-toggle {
    display: block;
  }
  header .navbar ul {
    display: none;
    flex-direction: column;
    background: #111;
    position: absolute;
    top: 60px;
    right: 20px;
    width: 200px;
    border-radius: 8px;
    padding: 15px;
  }
  header .navbar ul.active {
    display: flex;
  }
  header .navbar ul li {
    margin: 10px 0;
  }

  .hero img {
    width: 250px;
    height: 250px;
    margin-top: 30px; /* مسافة أكبر للصورة */
  }
  .hero h1 {
    font-size: 2.4rem;
    margin-bottom: 15px; /* مسافة بين العنوان والصورة */
  }
  .hero p {
    font-size: 1.3rem;
    margin-bottom: 10px;
  }
}







/* في ملف style.css */
.section.hidden,
.hero.hidden {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.section.visible,
.hero.visible {
  opacity: 1;
  transform: translateY(0);
}


