/* التنسيقات العامة */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Tajawal', sans-serif;
}

body {
  background-color: #f9f9f9;
  color: #333;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

/* التنسيقات الخاصة بالشريط العلوي */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 5%;
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: #2c3e50;
}

.logo span {
  color: #3498db;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-right: 1.5rem;
}

.nav-links a {
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
}

.nav-links a:hover {
  color: #3498db;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #3498db;
  transition: width 0.3s;
}

.nav-links a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
}

/* قسم الرئيسية */
.hero-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10rem 5% 5rem;
  max-width: 1400px;
  margin: 0 auto;
}

.hero-content {
  flex: 1;
  padding-right: 2rem;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: #2c3e50;
}

.hero-content h1 span {
  color: #3498db;
}

.hero-content .subtitle {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: #555;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
}

.btn {
  padding: 0.8rem 1.8rem;
  border-radius: 5px;
  font-weight: 600;
  transition: all 0.3s;
}

.primary-btn {
  background-color: #3498db;
  color: #fff;
}

.primary-btn:hover {
  background-color: #2980b9;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.secondary-btn {
  background-color: transparent;
  color: #3498db;
  border: 2px solid #3498db;
}

.secondary-btn:hover {
  background-color: #3498db;
  color: #fff;
  transform: translateY(-3px);
}

.hero-image {
  flex: 1;
  text-align: center;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

/* قسم المهارات */
.skills-section {
  padding: 5rem 5%;
  max-width: 1400px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.5rem;
  color: #2c3e50;
  margin-bottom: 1rem;
}

.section-header p {
  color: #555;
  font-size: 1.1rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.skill-card {
  background-color: #fff;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}

.skill-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.skill-icon {
  font-size: 3rem;
  color: #3498db;
  margin-bottom: 1.5rem;
}

.skill-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #2c3e50;
}

.skill-card p {
  color: #555;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.skill-features {
  list-style: none;
}

.skill-features li {
  margin-bottom: 0.5rem;
  position: relative;
  padding-right: 1.5rem;
}

.skill-features li::before {
  content: '→';
  position: absolute;
  right: 0;
  color: #3498db;
}

/* قسم المشاريع */
.projects-section {
  padding: 5rem 5%;
  background-color: #f0f4f8;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.project-card {
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
}

.project-card:hover {
  transform: translateY(-10px);
}

.project-image {
  height: 250px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.project-card:hover .project-image img {
  transform: scale(1.1);
}

.project-info {
  padding: 1.5rem;
}

.project-info h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #2c3e50;
}

.project-info p {
  color: #555;
  margin-bottom: 1rem;
}

.tech-used {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.tech-used span {
  background-color: #e0e6ed;
  color: #3498db;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.project-link {
  display: inline-flex;
  align-items: center;
  color: #3498db;
  font-weight: 600;
  transition: color 0.3s;
}

.project-link:hover {
  color: #2980b9;
}

.project-link i {
  margin-right: 0.5rem;
  transition: transform 0.3s;
}

.project-link:hover i {
  transform: translateX(-5px);
}

/* قسم الأمن السيبراني */
.cyber-section {
  padding: 5rem 5%;
  max-width: 1400px;
  margin: 0 auto;
}

.cyber-content {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.cyber-image {
  flex: 1;
}

.cyber-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.cyber-services {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background-color: #fff;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
}

.service-card:hover {
  transform: translateY(-10px);
}

.service-icon {
  width: 50px;
  height: 50px;
  background-color: #e3f2fd;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: #3498db;
  font-size: 1.2rem;
}

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #2c3e50;
}

.service-card p {
  color: #555;
  font-size: 0.9rem;
}

/* قسم التواصل */
.contact-section {
  padding: 5rem 5%;
  background-color: #f0f4f8;
}

.contact-container {
  display: flex;
  gap: 3rem;
  max-width: 1400px;
  margin: 0 auto;
  background-color: #fff;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-form {
  flex: 1;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #3498db;
  outline: none;
}

.form-group textarea {
  height: 150px;
  resize: vertical;
}

.submit-btn {
  background-color: #3498db;
  color: #fff;
  border: none;
  padding: 1rem 2rem;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
  width: 100%;
}

.submit-btn:hover {
  background-color: #2980b9;
}

.contact-info {
  flex: 1;
}

.info-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.info-icon {
  width: 50px;
  height: 50px;
  background-color: #e3f2fd;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3498db;
  font-size: 1.2rem;
}

.info-content h3 {
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
  color: #2c3e50;
}

.info-content p {
  color: #555;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  background-color: #e3f2fd;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3498db;
  font-size: 1.2rem;
  transition: all 0.3s;
}

.social-links a:hover {
  background-color: #3498db;
  color: #fff;
  transform: translateY(-5px);
}

/* الفوتر */
.footer {
  background-color: #2c3e50;
  color: #fff;
  padding: 3rem 5%;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.footer-logo {
  margin-bottom: 1.5rem;
}

.footer-logo span {
  font-size: 1.5rem;
  font-weight: 700;
  display: block;
  margin-bottom: 0.5rem;
  color: #3498db;
}

.footer-logo p {
  color: #bdc3c7;
}

.footer-links h3,
.footer-contact h3 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-links h3::after,
.footer-contact h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: #3498db;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: #bdc3c7;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #3498db;
}

.footer-contact ul {
  list-style: none;
}

.footer-contact li {
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #bdc3c7;
}

.footer-contact i {
  color: #3498db;
}

.copyright {
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #bdc3c7;
}

.copyright span {
  color: #3498db;
}

/* التصميم المتجاوب */
@media (max-width: 992px) {
  .hero-content h1 {
      font-size: 2.5rem;
  }
  
  .cyber-content {
      flex-direction: column;
  }
  
  .contact-container {
      flex-direction: column;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
      display: block;
  }
  
  .nav-links {
      position: fixed;
      top: 80px;
      right: -100%;
      width: 80%;
      height: calc(100vh - 80px);
      background-color: #fff;
      flex-direction: column;
      align-items: center;
      padding: 2rem 0;
      transition: right 0.3s;
      box-shadow: -5px 0 10px rgba(0, 0, 0, 0.1);
  }
  
  .nav-links.active {
      right: 0;
  }
  
  .nav-links li {
      margin: 1rem 0;
  }
  
  .hero-section {
      flex-direction: column;
      padding-top: 7rem;
      text-align: center;
  }
  
  .hero-content {
      padding-right: 0;
      margin-bottom: 2rem;
  }
  
  .cta-buttons {
      justify-content: center;
  }
}

@media (max-width: 576px) {
  .hero-content h1 {
      font-size: 2rem;
  }
  
  .section-header h2 {
      font-size: 2rem;
  }
  
  .projects-grid {
      grid-template-columns: 1fr;
  }
}

/*language-switcher*/

.about-section {
  text-align: center;
  color: #fff;
  margin-bottom: 20px;
}

.language-switcher {
  margin: 20px auto 0 auto;
  width: fit-content;
  position: relative;
  margin-right: 30px;
}

.language-switcher select {
  padding: 10px 20px;
  font-size: 16px;
  height: 45px;
  min-width: 180px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.2);
  background-color: transparent;
  color: #fff;
  text-align: center;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  transition: 0.3s ease;
  backdrop-filter: blur(5px);
}

.language-switcher select:hover {
  border-color: #66ccff;
  background-color: rgba(255,255,255,0.05);
} 
