* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #6366f1;
  --secondary: #8b5cf6;
  --accent: #ec4899;
  --success: #10b981;

  /* Light Mode */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-card: #ffffff;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --border: #e2e8f0;
  --shadow: rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-card: #1e293b;
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --border: #334155;
  --shadow: rgba(0, 0, 0, 0.3);
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  transition:
    background 0.3s ease,
    color 0.3s ease;
  position: relative;
  overflow-x: hidden;
}

/* Animated Background */
.animated-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.15;
}

.bg-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: float 20s infinite;
}

.bg-circle-1 {
  width: 500px;
  height: 500px;
  background: var(--primary);
  top: -200px;
  left: -200px;
  animation-delay: 0s;
}

.bg-circle-2 {
  width: 400px;
  height: 400px;
  background: var(--accent);
  bottom: -150px;
  right: -150px;
  animation-delay: 5s;
}

.bg-circle-3 {
  width: 350px;
  height: 350px;
  background: var(--secondary);
  top: 50%;
  right: -100px;
  animation-delay: 10s;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  33% {
    transform: translate(100px, -100px) rotate(120deg);
  }

  66% {
    transform: translate(-50px, 100px) rotate(240deg);
  }
}

/* Navigation */
nav {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  padding: 1rem 0;
  box-shadow: 0 4px 20px var(--shadow);
  transition: all 0.3s ease;
}

[data-theme="dark"] nav {
  background: rgba(15, 23, 42, 0.8);
}

nav .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-menu a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s;
}

.nav-menu a:hover::after {
  width: 100%;
}

/* Theme Toggle */
.theme-toggle {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 50px;
  padding: 0.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s;
}

.theme-toggle:hover {
  border-color: var(--primary);
}

.toggle-icon {
  font-size: 1.2rem;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  z-index: 2001;
}

.hamburger span {
  width: 30px;
  height: 3px;
  background: var(--text-primary);
  border-radius: 3px;
  transition: all 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

/* Mobile Navigation */
@media (max-width: 900px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 350px;
    height: 100vh;
    background: var(--bg-card);
    flex-direction: column;
    padding: 6rem 2rem 2rem;
    gap: 0;
    box-shadow: -5px 0 20px var(--shadow);
    transition: right 0.4s ease;
    overflow-y: auto;
    align-items: flex-start;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-menu li {
    width: 100%;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
  }

  .nav-menu.active li {
    opacity: 1;
    transform: translateX(0);
  }

  .nav-menu.active li:nth-child(1) {
    transition-delay: 0.1s;
  }

  .nav-menu.active li:nth-child(2) {
    transition-delay: 0.15s;
  }

  .nav-menu.active li:nth-child(3) {
    transition-delay: 0.2s;
  }

  .nav-menu.active li:nth-child(4) {
    transition-delay: 0.25s;
  }

  .nav-menu.active li:nth-child(5) {
    transition-delay: 0.3s;
  }

  .nav-menu.active li:nth-child(6) {
    transition-delay: 0.35s;
  }

  .nav-menu.active li:nth-child(7) {
    transition-delay: 0.4s;
  }

  .nav-menu.active li:nth-child(8) {
    transition-delay: 0.45s;
  }

  .nav-menu.active li:nth-child(9) {
    transition-delay: 0.5s;
  }

  .nav-menu.active li:nth-child(10) {
    transition-delay: 0.55s;
  }

  .nav-menu a {
    display: block;
    padding: 1.2rem 1.5rem;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--border);
    background: var(--bg-secondary);
    margin-bottom: 0.5rem;
    border-radius: 10px;
    transition: all 0.3s;
  }

  .nav-menu a:hover {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    transform: translateX(10px);
  }

  .nav-menu a::after {
    display: none;
  }

  .theme-toggle {
    width: 100%;
    justify-content: center;
    padding: 1rem;
    margin-top: 1rem;
    font-size: 1.1rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
  }

  .theme-toggle:hover {
    transform: scale(1.05);
  }

  .hamburger {
    display: flex;
  }

  #themeText {
    display: inline;
  }
}

/* Show theme text only on mobile */
#themeText {
  display: none;
}

@media (min-width: 901px) {
  .hamburger {
    display: none;
  }

  #themeText {
    display: none;
  }
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  min-height: 100vh;
  padding: 8rem 0 4rem;
  display: flex;
  align-items: center;
}
.section-content {
  width: 100%;
}

/* Cover/Hero Section */
.hero {
  text-align: center;
  animation: fadeInUp 1s ease;
}

.hero-visual {
  width: 200px;
  height: 200px;
  margin: 0 auto 2rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  background-image: url(./Mostafa_Ahemd2.jpg);
  background-repeat: no-repeat;
  background-position: top;
  background-size: cover;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  box-shadow: 0 20px 60px var(--shadow);
  animation: pulse 3s infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 20px 60px var(--shadow);
  }

  50% {
    transform: scale(1.05);
    box-shadow: 0 25px 80px var(--shadow);
  }
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .title {
  font-size: 2rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.hero .tagline {
  font-size: 1.3rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 3rem;
}

.cta-button {
  display: inline-block;
  padding: 1.2rem 3rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
  transition: all 0.3s;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(99, 102, 241, 0.5);
}

.cta-buttons-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.cta-button-small {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
  transition: all 0.3s;
}

.cta-button-small:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25d366, #128c7e);
}

.btn-whatsapp:hover {
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

.btn-download {
  background: linear-gradient(135deg, var(--accent), var(--secondary));
}

.btn-download:hover {
  box-shadow: 0 8px 20px rgba(236, 72, 153, 0.4);
}

.action-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  margin-top: 2rem;
}

/* Typing Animation */
.typing-text {
  display: inline-block;
  min-height: 2rem;
  border-right: 3px solid var(--text-secondary);
  animation: blink 0.7s step-end infinite;
}

@keyframes blink {
  50% {
    border-color: transparent;
  }
}

/* Section Title */
.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  position: relative;
  animation: fadeInDown 0.8s ease;
}

.section-title::after {
  content: "";
  display: block;
  width: 100px;
  height: 4px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  margin: 1rem auto;
  border-radius: 2px;
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text {
  animation: fadeInLeft 1s ease;
}

.about-text h3 {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.8;
  font-size: 1.1rem;
}

.about-image {
  text-align: center;
  animation: fadeInRight 1s ease;
}

.about-visual {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8rem;
  box-shadow: 0 20px 60px var(--shadow);
  margin: 0 auto;
  transform: rotate(-5deg);
  transition: transform 0.3s;
}

.about-visual:hover {
  transform: rotate(0deg) scale(1.05);
}

/* Cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--bg-card);
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 10px 40px var(--shadow);
  border: 1px solid var(--border);
  transition: all 0.3s;
  animation: fadeInUp 0.8s ease;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px var(--shadow);
  border-color: var(--primary);
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.card p,
.card ul {
  color: var(--text-secondary);
  line-height: 1.8;
}

.card ul {
  list-style: none;
  padding-left: 0;
}

.card li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.card li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

/* Skills Tags */
.skills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.skill-tag {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  font-weight: 500;
  transition: all 0.3s;
  animation: fadeIn 0.6s ease;
}

.skill-tag:hover {
  transform: scale(1.1);
  box-shadow: 0 5px 15px var(--shadow);
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 3rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  animation: fadeInLeft 0.8s ease;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -3.5rem;
  top: 0;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--bg-primary);
}

.timeline-content {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px var(--shadow);
  border: 1px solid var(--border);



  display: flex;
  flex-direction: column;
  flex: 1;
}


.timeline-date {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.timeline-content h3 {
  margin-bottom: 0.5rem;
}

.timeline-content p {
  color: var(--text-secondary);
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
  align-items: stretch;
}

.project-card {
  background: var(--bg-card);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px var(--shadow);
  border: 1px solid var(--border);
  transition: all 0.3s;
  animation: fadeInUp 0.8s ease;
    display: flex;
  flex-direction: column;
  height: 100%;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px var(--shadow);
}

.project-image {
  height: 250px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: white;
}

.pro-1 {
  height: 250px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  background-image: url(./todo.png);
  background-position: top;
  background-size: cover;
}
.pro-2 {
  height: 250px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  background-image: url(./management_system.png);
  background-position: center;
  background-size: cover;
}
.pro-3 {
  height: 250px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  background-image: url(./inova.png);
  background-position: top;
  background-size: cover;
}

.project-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.project-content h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.project-content p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.project-tag {
  background: var(--bg-secondary);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  color: var(--primary);
  border: 1px solid var(--border);
}

.project-links {
  display: flex;
  gap: 1rem;
  margin-top: auto;
}

.project-link {
  flex: 1;
  text-align: center;
  padding: 0.8rem;
  background: var(--primary);
  color: white;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.3s;
}

.project-link:hover {
  background: var(--secondary);
  transform: scale(1.05);
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 10px 40px var(--shadow);
  border: 1px solid var(--border);
  position: relative;
  animation: fadeInUp 0.8s ease;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: 20px;
  font-size: 5rem;
  color: var(--primary);
  opacity: 0.3;
}

.testimonial-text {
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
}

.author-info h4 {
  margin-bottom: 0.2rem;
}

.author-info p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Contact Section */
.contact-section {
  text-align: center;
}

.contact-info {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin: 3rem 0;
  flex-wrap: wrap;
}

.contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.contact-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  transition: all 0.3s;
}

.contact-item:hover .contact-icon {
  transform: scale(1.1) rotate(5deg);
}

.contact-item a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.contact-item a:hover {
  color: var(--primary);
}

/* Footer */
footer {
  background: var(--bg-secondary);
  padding: 3rem 0;
  text-align: center;
  border-top: 1px solid var(--border);
}

footer p {
  color: var(--text-secondary);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.social-link {
  width: 50px;
  height: 50px;
  background: var(--bg-card);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.5rem;
  border: 2px solid var(--border);
  transition: all 0.3s;
}

.social-link:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-5px);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Responsive */
@media (max-width: 900px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero .title {
    font-size: 1.5rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: 1fr;
/* -------------------------------------------------------------------------- */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    align-items: stretch;
  }

  .contact-info {
    flex-direction: column;
    gap: 2rem;
  }

  section {
    padding: 6rem 0 4rem;
  }
}

/* -------------------------------------------------------------------------- */
#experience {
  display: none;
}
#testimonials{
  display: none;
}
.social-links{
  display: none;
}