/* ================== CSS Reset & Cyberpunk Variables ================== */
:root {
  --bg-color: #050810;
  --card-bg: rgba(15, 20, 35, 0.7);
  --neon-cyan: #00f3ff;
  --neon-purple: #bc13fe;
  --text-main: #ffffff;
  --text-muted: #a0aec0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--bg-color);
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(188, 19, 254, 0.08), transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(0, 243, 255, 0.08), transparent 25%);
  overflow-x: hidden;
  scroll-behavior: smooth;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ================== Keyframe Animations (الشقلبات) ================== */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
  100% { transform: translateY(0px); }
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 15px var(--neon-cyan); }
  50% { box-shadow: 0 0 30px var(--neon-purple), 0 0 50px var(--neon-purple); }
  100% { box-shadow: 0 0 15px var(--neon-cyan); }
}

@keyframes borderRotate {
  100% { transform: rotate(360deg); }
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink {
  50% { border-color: transparent; }
}

/* ================== Header Styles ================== */
header {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  border-bottom: 2px solid var(--neon-purple);
  background: linear-gradient(180deg, rgba(5,8,16,1) 0%, rgba(15,20,35,1) 100%);
}

.header-content {
  display: flex;
  align-items: center;
  gap: 60px;
  width: 100%;
}

.profile-pic-container {
  position: relative;
  animation: float 6s ease-in-out infinite;
}

.profile-pic-container::before {
  content: '';
  position: absolute;
  top: -15px; right: -15px; bottom: -15px; left: -15px;
  background: linear-gradient(45deg, var(--neon-cyan), var(--neon-purple));
  border-radius: 50%;
  z-index: 0;
  animation: borderRotate 4s linear infinite;
  opacity: 0.7;
}

.profile-pic {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  border: 5px solid var(--bg-color);
  position: relative;
  z-index: 2;
}

.header-text {
  flex: 1;
}

header h1 {
  font-size: 3.8em;
  margin-bottom: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #fff;
  text-shadow: 0 0 10px var(--neon-cyan), 0 0 20px var(--neon-cyan);
}

.subtitle {
  font-size: 1.3em;
  margin-bottom: 30px;
  line-height: 2;
  color: var(--neon-cyan);
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  border-right: 3px solid var(--neon-purple);
  animation: typing 3s steps(40, end), blink .75s step-end infinite;
}

.subtitle i {
  color: var(--neon-purple);
  margin-right: 10px;
}

/* Social Buttons */
.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 30px;
  background: transparent;
  color: var(--text-main);
  text-decoration: none;
  border-radius: 8px;
  border: 2px solid var(--neon-cyan);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  margin-right: 15px;
  position: relative;
  overflow: hidden;
}

.social-btn:hover {
  background: var(--neon-cyan);
  color: #000;
  box-shadow: 0 0 20px var(--neon-cyan);
  transform: scale(1.1);
}

.social-btn.linkedin {
  border-color: var(--neon-purple);
}

.social-btn.linkedin:hover {
  background: var(--neon-purple);
  box-shadow: 0 0 20px var(--neon-purple);
}

/* ================== General Sections ================== */
section {
  padding: 100px 20px;
  position: relative;
}

section h2 {
  text-align: center;
  font-size: 3em;
  margin-bottom: 60px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 3px;
  text-shadow: 0 0 15px var(--neon-purple);
}

section h2 i {
  color: var(--neon-cyan);
  margin-right: 15px;
  animation: float 3s ease-in-out infinite;
}

/* ================== About Section ================== */
.about-card {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  padding: 50px;
  border-radius: 20px;
  border: 1px solid rgba(0, 243, 255, 0.3);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  max-width: 900px;
  margin: 0 auto;
  transition: transform 0.4s ease;
}

.about-card:hover {
  transform: translateY(-10px);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 25px rgba(0, 243, 255, 0.2);
}

.about-card p {
  font-size: 1.1em;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.about-card p:first-child {
  font-size: 1.4em;
  color: var(--neon-cyan);
  font-weight: 600;
  border-bottom: 1px dashed var(--neon-purple);
  padding-bottom: 15px;
}

/* ================== Skills Section ================== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.skill-item {
  background: var(--card-bg);
  padding: 40px 30px;
  border-radius: 15px;
  border: 1px solid rgba(188, 19, 254, 0.2);
  text-align: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}

.skill-item:hover {
  transform: translateY(-15px) scale(1.05);
  border-color: var(--neon-purple);
  animation: pulseGlow 2s infinite;
  z-index: 10;
}

.skill-icon {
  font-size: 3.5em;
  color: var(--neon-cyan);
  margin-bottom: 20px;
  transition: transform 0.4s ease;
}

.skill-item:hover .skill-icon {
  transform: rotateY(360deg);
  color: var(--neon-purple);
}

.skill-item h3 {
  font-size: 1.4em;
  margin-bottom: 15px;
  color: #fff;
}

.skill-item p {
  font-size: 0.95em;
  color: var(--text-muted);
}

/* ================== Projects Section ================== */
.projects-timeline {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.project-card {
  background: linear-gradient(145deg, rgba(20,25,40,1) 0%, rgba(10,15,25,1) 100%);
  border-radius: 15px;
  border-left: 5px solid var(--neon-cyan);
  overflow: hidden;
  transition: all 0.5s ease;
  position: relative;
}

.project-card:hover {
  border-left: 10px solid var(--neon-purple);
  transform: translateX(20px);
  box-shadow: -10px 10px 30px rgba(188, 19, 254, 0.15);
}

.project-content {
  padding: 40px;
}

.project-card h3 {
  font-size: 1.6em;
  margin-bottom: 15px;
  color: var(--neon-cyan);
}

.project-card p {
  color: var(--text-muted);
  margin-bottom: 20px;
  font-size: 1.05em;
}

.tech-tag {
  display: inline-block;
  padding: 8px 18px;
  background: rgba(0, 243, 255, 0.1);
  color: var(--neon-cyan);
  border: 1px solid var(--neon-cyan);
  border-radius: 30px;
  font-size: 0.85em;
  margin-right: 10px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.project-card:hover .tech-tag {
  background: var(--neon-purple);
  color: #fff;
  border-color: var(--neon-purple);
}

/* ================== CV Section ================== */
#cv {
  text-align: center;
  padding-bottom: 50px;
}

.btn-cv {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  padding: 20px 50px;
  background: transparent;
  color: var(--neon-cyan);
  text-decoration: none;
  border-radius: 50px;
  border: 2px solid var(--neon-cyan);
  font-size: 1.3em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.btn-cv:hover {
  background: var(--neon-cyan);
  color: #000;
  box-shadow: 0 0 30px var(--neon-cyan);
  transform: translateY(-5px);
}

/* ================== Contact Section (الجديد بالكامل) ================== */
#contact {
  padding-top: 80px;
  padding-bottom: 120px;
  border-top: 1px solid rgba(255,255,255,0.05);
  text-align: center;
}

.contact-subtitle {
  color: var(--text-muted);
  margin-bottom: 60px;
  font-size: 1.2em;
}

.contact-container {
  display: flex;
  justify-content: center;
  gap: 40px; /* مسافة كبيرة بينهم */
  flex-wrap: wrap;
}

/* الزراير الضخمة */
.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px; /* حجم ضخم للزرار */
  background: rgba(15, 20, 35, 0.8) !important; /* خلفية صلبة عشان تبان كارت مش كلمة طايرة */
  border-radius: 15px !important; /* شكل كارت نيون */
  font-size: 1.1em !important; /* خط كبير جداً وواضح */
  font-weight: 700 !important;
  text-decoration: none !important; /* إلغاء أي خط تحت الكلمة */
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  z-index: 1;
}

.contact-btn i {
  font-size: 1.3em !important; /* الأيقونات بقت عملاقة */
}

/* زرار الإيميل */
.email-btn {
  color: #00f3ff !important;
  border: 2px solid #00f3ff !important;
  box-shadow: 0 0 15px rgba(0, 243, 255, 0.1);
}

.email-btn:hover {
  background: #00f3ff !important;
  color: #000 !important;
  box-shadow: 0 0 30px #00f3ff, 0 0 60px #00f3ff;
  transform: translateY(-10px) scale(1.05);
}

/* زرار الواتساب */
.wa-btn {
  color: #25D366 !important;
  border: 2px solid #25D366 !important;
  box-shadow: 0 0 15px rgba(37, 211, 102, 0.1);
}

.wa-btn:hover {
  background: #25D366 !important;
  color: #000 !important;
  box-shadow: 0 0 30px #25D366, 0 0 60px #25D366;
  transform: translateY(-10px) scale(1.05);
}

/* ================== Responsive Design ================== */
@media (max-width: 900px) {
  .header-content {
    flex-direction: column;
    text-align: center;
    justify-content: center;
    margin-top: 50px;
  }
  
  .profile-pic {
    width: 250px;
    height: 250px;
  }

  header h1 {
    font-size: 2.5em;
  }

  .subtitle {
    white-space: normal;
    border-right: none;
    animation: none;
  }

  .project-card:hover {
    transform: translateY(-10px);
  }
  
  .contact-btn {
    width: 100%;
    justify-content: center;
  }
}
