.hero-text {
  font-family: 'Tajawal', sans-serif;
  font-display: swap;
}
/* tajawal-500 - arabic */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 500;
  src: url('../fonts/tajawal/tajawal-v11-arabic-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* tajawal-700 - arabic */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/tajawal/tajawal-v11-arabic-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

    :root {
  /* Primary Colors */
  --primary-color: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #60a5fa;
  
  /* Secondary Colors */
  --secondary-color: #10b981;
  --secondary-dark: #059669;
  --secondary-light: #34d399;
  
  /* Background Colors */
  --bg-color: #f9fafb;
  --bg-secondary: #f3f4f6;
  --bg-card: #ffffff;
  
  /* Text Colors */
  --text-primary: #1f2937;
  --text-secondary: #4b5563;
  --text-light: #9ca3af;
  --text-white: #ffffff;
  
  /* Border Colors */
  --border-color: #e5e7eb;
  --border-dark: #d1d5db;
  
  /* Animation */
  --transition-speed: 0.3s;
  
  /* Font Sizes */
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;
  
  /* Font Family */
  --font-family-ar: 'Tajawal', sans-serif;
  --font-family-en: 'Poppins', sans-serif;
}

/* Dark Theme */
[data-theme="dark"] {
  --primary-color: #3b82f6;
  --primary-dark: #2563eb;
  --primary-light: #93c5fd;
  
  --secondary-color: #10b981;
  --secondary-dark: #059669;
  --secondary-light: #34d399;
  
  --bg-color: #111827;
  --bg-secondary: #1f2937;
  --bg-card: #1e293b;
  
  --text-primary: #f9fafb;
  --text-secondary: #e5e7eb;
  --text-light: #9ca3af;
  
  --border-color: #374151;
  --border-dark: #4b5563;
}

/* Reset & Base Styles */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family-ar);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color var(--transition-speed) ease-in-out;
}

body.english {
  font-family: var(--font-family-en);
  direction: ltr;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-speed) ease-in-out;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 5rem 0;
}

.highlight {
  color: var(--primary-color);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  margin-bottom: 1rem;
  font-weight: 700;
}

h1 {
  font-size: var(--font-size-4xl);
}

h2 {
  font-size: var(--font-size-3xl);
}

h3 {
  font-size: var(--font-size-2xl);
}

p {
  margin-bottom: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 700;
  transition: all var(--transition-speed) ease-in-out;
  text-align: center;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--text-white);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--text-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--bg-card);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: all var(--transition-speed) ease-in-out;
}

.header-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  font-size: var(--font-size-xl);
  font-weight: 700;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.name {
  color: var(--primary-color);
}

.main-nav {
  display: flex;
}

.nav-list {
  display: flex;
  gap: 2rem;
}

.nav-link {
  font-weight: 500;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width var(--transition-speed) ease-in-out;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-color);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.language-toggle, .theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--text-secondary);
  transition: all var(--transition-speed) ease-in-out;
}

.language-toggle:hover, .theme-toggle:hover {
  background-color: var(--bg-secondary);
  color: var(--primary-color);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 5px;
}

.mobile-menu-toggle .bar {
  width: 24px;
  height: 2px;
  background-color: var(--text-primary);
  transition: all var(--transition-speed) ease-in-out;
}

/* Hero Section */
.hero {
  padding-top: 150px;
  padding-bottom: 100px;
  position: relative;
  overflow: hidden;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
}



.hero-title {
  font-size: var(--font-size-5xl);
  margin-bottom: 1rem;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: var(--font-size-2xl);
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.hero-description {
  font-size: var(--font-size-lg);
  margin-bottom: 2rem;
  color: var(--text-secondary);
}

.hero-cta {
  display: flex;
  gap: 1rem;
}

.hero-image {
  flex-basis: 40%;
  position: relative;
}

.profile-image {
    
  max-width: 100%;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  z-index: 5;
  position: relative;
  object-fit: cover;
  height: auto;
}

.hero-shape {
  position: absolute;
  top: -10%;
  right: -10%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 16px;
  opacity: 0.3;
  z-index: 1;
  transform: rotate(8deg);
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-shapes .shape {
  position: absolute;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
  opacity: 0.1;
  border-radius: 50%;
}

.shape-1 {
  top: 20%;
  left: 10%;
  width: 300px;
  height: 300px;
  animation: floatAnimation 8s ease-in-out infinite;
}

.shape-2 {
  bottom: 15%;
  right: 10%;
  width: 200px;
  height: 200px;
  animation: floatAnimation 12s ease-in-out infinite;
}

.shape-3 {
  top: 60%;
  left: 20%;
  width: 150px;
  height: 150px;
  animation: floatAnimation 10s ease-in-out infinite 2s;
}

@keyframes floatAnimation {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: var(--font-size-4xl);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
}

.section-subtitle {
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Projects Section */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}

.project-card {
  background-color: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: all var(--transition-speed) ease-in-out;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.project-image {
  height: 200px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-speed) ease-in-out;
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-content {
  padding: 1.5rem;
}

.project-title {
  font-size: var(--font-size-xl);
  margin-bottom: 0.5rem;
}

.project-description {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tech-tag {
  background-color: var(--bg-secondary);
  color: var(--primary-color);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: var(--font-size-sm);
  font-weight: 500;
}

.project-link {
  color: var(--primary-color);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.project-link:hover {
  text-decoration: underline;
}

/* Skills Section */
.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.skill-category {
  background-color: var(--bg-card);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.category-title {
  font-size: var(--font-size-xl);
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  text-align: center;
  position: relative;
}

.category-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 1.5px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 1.5rem;
}

.skill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.skill-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-secondary);
  border-radius: 12px;
  color: var(--primary-color);
  
  font-size: 1.5rem;
  transition: all var(--transition-speed) ease-in-out;
}


.skill-item:hover .skill-icon {
  transform: translateY(-5px);
  background-color: var(--primary-color);
  color: var(--text-white);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.skill-item:hover .skill-icon svg{
    fill:var(--text-white);
}
.skill-icon svg{
    margin:5px;
    fill:var(--primary-color);
}
.skill-name {
  font-size: var(--font-size-sm);
  font-weight: 500;
  text-align: center;
}

/* Achievements Section */
.achievements-timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.achievements-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  right: 43px;
  height: 100%;
  width: 2px;
  background-color: var(--border-color);
}

.achievement-item {
  display: flex;
  margin-bottom: 2.5rem;
  position: relative;
}

.achievement-icon {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--text-white);
  border-radius: 50%;
  margin-right: 1.5rem;
  z-index: 2;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.achievement-icon svg{
    width: 20px;
  height: 20px;
  
    fill: var(--text-white);
}

.achievement-content {
  flex: 1;
  background-color: var(--bg-card);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: all var(--transition-speed) ease-in-out;
}

.achievement-item:hover .achievement-content {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.achievement-title {
  font-size: var(--font-size-lg);
  margin-bottom: 0.5rem;
}

.achievement-description {
  color: var(--text-secondary);
}

/* Contact Section */
.contact-container {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 2rem;
}

.contact-form-wrapper {
  background-color: var(--bg-card);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

label {
  font-weight: 500;
  color: var(--text-secondary);
}

input,
textarea {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  font-family: inherit;
  font-size: var(--font-size-base);
  transition: all var(--transition-speed) ease-in-out;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.btn-submit {
  margin-top: 1rem;
  width: 100%;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  background-color: var(--bg-card);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: all var(--transition-speed) ease-in-out;
}

.contact-info-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.contact-info-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--text-white);
  border-radius: 12px;
  flex-shrink: 0;
}

.contact-info-content {
  flex: 1;
}

.contact-info-content h3 {
  font-size: var(--font-size-base);
  margin-bottom: 0.25rem;
}

.contact-info-content p {
  color: var(--text-secondary);
  margin-bottom: 0;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-secondary);
  color: var(--primary-color);
  border-radius: 50%;
  transition: all var(--transition-speed) ease-in-out;
}
.social-link svg g, .social-link svg path{
    fill: var(--primary-color)
}
.social-link:hover svg g, .social-link:hover svg path{
    fill: var(--text-white);
}
.social-link:hover {
  background-color: var(--primary-color);
  color: var(--text-white);
  transform: translateY(-3px);
}

/* Footer */
.footer {
  background-color: var(--bg-secondary);
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-logo {
  font-size: var(--font-size-lg);
  font-weight: 700;
}

.footer-nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.footer-nav-link {
  color: var(--text-secondary);
  transition: color var(--transition-speed) ease-in-out;
}

.footer-nav-link:hover {
  color: var(--primary-color);
}

.footer-social {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  text-align: center;
}

.copyright {
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .hero-content {
    flex-direction: column-reverse;
    text-align: center;
  }
  
  .hero-cta {
    justify-content: center;
  }
  
  .hero-image {
    margin: 0 auto;
    max-width: 400px;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  
  .footer-nav-list, .footer-social {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .section-title {
    font-size: var(--font-size-3xl);
  }
  
  .hero-title {
    font-size: var(--font-size-4xl);
  }
  
  .skills-container, .projects-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  :root {
    --font-size-5xl: 2.5rem;
    --font-size-4xl: 2rem;
    --font-size-3xl: 1.75rem;
    --font-size-2xl: 1.5rem;
  }
  
  .header-wrapper {
    height: 70px;
  }
  
  .hero {
    padding-top: 120px;
  }
  
  .hero-cta {
    flex-direction: column;
    gap: 1rem;
  }
  
  .btn {
    width: 100%;
  }
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.fade-in {
  /*animation: fadeIn 6s ease-in-out;*/
}
