/* =====================================================
   PORTFOLIO — Ahmed Shawki
   sections.css  |  All Section Styles
   ===================================================== */

/* ═══ ABOUT ═══ */
#about { background: linear-gradient(180deg, transparent, rgba(108, 99, 255, 0.03), transparent); }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }

.about-img-wrap { position: relative; }
.about-card-img {
  width: 100%; aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, #0d1224, #1a1f3a);
  border-radius: 24px; 
  border: 2px solid rgba(108, 99, 255, 0.4);
  box-shadow: 0 0 40px rgba(108, 99, 255, 0.2), 0 0 80px rgba(0, 212, 255, 0.08), inset 0 0 30px rgba(108, 99, 255, 0.05);
  display: flex; align-items: center; justify-content: center; font-size: 7rem;
  position: relative; overflow: hidden;
}
.about-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 22px;
}
.about-card-img::before {
  content: ''; position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(to bottom, transparent 60%, rgba(13, 18, 36, 0.6));
  border-radius: 22px;
  pointer-events: none;
}
.about-badge {
  position: absolute; bottom: -20px; right: -20px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  padding: 1.2rem 1.6rem; border-radius: 16px; text-align: center;
  box-shadow: 0 10px 30px rgba(108, 99, 255, 0.4);
}
.about-badge-num  { font-size: 2rem; font-weight: 900; color: #fff; line-height: 1; font-family: var(--font-display); }
.about-badge-text { font-size: 0.75rem; color: rgba(255, 255, 255, 0.8); }

.about-text p       { color: var(--text-muted); line-height: 1.85; margin-bottom: 1.2rem; }
.about-text p span  { color: var(--text); font-weight: 500; }

.about-list {
  list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; margin: 2rem 0;
}
.about-list li {
  display: flex; align-items: center; gap: 0.6rem;
  color: var(--text-muted); font-size: 0.9rem;
}
.about-list li::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2)); flex-shrink: 0;
}


/* ═══ EDUCATION ═══ */
#education { background: linear-gradient(180deg, transparent, rgba(0, 212, 255, 0.02), transparent); }

.edu-card {
  display: flex; gap: 3rem; align-items: flex-start;
  background: var(--card); border: 1px solid var(--glass-border);
  border-radius: 24px; padding: 2.5rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.edu-card:hover { border-color: rgba(108, 99, 255, 0.4); box-shadow: var(--glow); }

.edu-left { flex: 0 0 140px; text-align: center; }
.edu-icon { font-size: 2.5rem; margin-bottom: 0.8rem; }
.edu-period {
  font-size: 0.85rem; color: var(--accent2); font-weight: 600;
  background: rgba(0, 212, 255, 0.08); border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 100px; padding: 0.3rem 0.8rem; display: inline-block; margin-bottom: 0.5rem;
}
.edu-status {
  font-size: 0.75rem; color: var(--accent); font-weight: 600; text-transform: uppercase;
  letter-spacing: 1px;
}

.edu-right { flex: 1; }
.edu-degree { font-size: 1.3rem; font-weight: 700; margin-bottom: 0.4rem; font-family: var(--font-display); }
.edu-school { font-size: 1rem; color: var(--text-muted); margin-bottom: 1.2rem; }

.edu-highlights { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.edu-tag {
  padding: 0.25rem 0.75rem; border-radius: 100px;
  font-size: 0.78rem; font-weight: 500;
  background: rgba(108, 99, 255, 0.1); color: var(--accent);
  border: 1px solid rgba(108, 99, 255, 0.2);
}


/* ═══ SERVICES ═══ */
#services { background: linear-gradient(180deg, transparent, rgba(108, 99, 255, 0.03), transparent); }

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

.service-card {
  background: var(--card); border: 1px solid var(--glass-border);
  border-radius: 20px; padding: 2rem;
  transition: transform 0.3s var(--tr), border-color 0.3s, box-shadow 0.3s;
  position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; inset: 0; opacity: 0;
  background: linear-gradient(135deg, rgba(108, 99, 255, 0.05), rgba(0, 212, 255, 0.03));
  transition: opacity 0.3s;
}
.service-card:hover { transform: translateY(-6px); border-color: rgba(108, 99, 255, 0.4); box-shadow: var(--glow); }
.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 56px; height: 56px; border-radius: 14px; font-size: 1.7rem;
  background: linear-gradient(135deg, rgba(108, 99, 255, 0.15), rgba(0, 212, 255, 0.08));
  border: 1px solid rgba(108, 99, 255, 0.2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.2rem;
}
.service-title { font-size: 1rem; font-weight: 700; margin-bottom: 0.7rem; font-family: var(--font-display); }
.service-desc  { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; }


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

.skill-card {
  background: var(--card); border: 1px solid var(--glass-border);
  border-radius: 20px; padding: 1.8rem;
  transition: transform 0.3s var(--tr), border-color 0.3s, box-shadow 0.3s;
  cursor: default; position: relative; overflow: hidden;
}
.skill-card::before {
  content: ''; position: absolute; inset: 0; opacity: 0;
  background: linear-gradient(135deg, rgba(108, 99, 255, 0.05), rgba(0, 212, 255, 0.03));
  transition: opacity 0.3s;
}
.skill-card:hover             { transform: translateY(-6px); border-color: rgba(108, 99, 255, 0.4); box-shadow: var(--glow); }
.skill-card:hover::before     { opacity: 1; }

.skill-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(108, 99, 255, 0.2), rgba(0, 212, 255, 0.1));
  display: flex; align-items: center; justify-content: center; font-size: 1.6rem;
  margin-bottom: 1rem; border: 1px solid rgba(108, 99, 255, 0.2);
}
.skill-name { font-size: 1rem; font-weight: 700; margin-bottom: 0.3rem; font-family: var(--font-display); }
.skill-type { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 1rem; }
.skill-bar-wrap { background: rgba(255, 255, 255, 0.05); border-radius: 100px; height: 5px; overflow: hidden; }
.skill-bar {
  height: 100%; border-radius: 100px; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transition: width 1.2s var(--tr); box-shadow: 0 0 10px rgba(108, 99, 255, 0.5);
}
.skill-pct { font-size: 0.8rem; color: var(--accent2); font-weight: 600; text-align: right; margin-top: 0.5rem; }


/* ═══ PROJECTS ═══ */
#projects { background: linear-gradient(180deg, transparent, rgba(0, 212, 255, 0.02), transparent); }

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

.project-card {
  background: var(--card); border: 1px solid var(--glass-border);
  border-radius: 24px; overflow: hidden;
  transition: transform 0.4s var(--tr), box-shadow 0.4s;
}
.project-card:hover { transform: translateY(-8px); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), var(--glow); }

.project-img {
  position: relative; height: 220px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.project-img-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform 0.6s var(--tr);
}
.project-card:hover .project-img-bg { transform: scale(1.08); }

.project-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(108, 99, 255, 0.85), rgba(0, 0, 0, 0.7));
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.4s;
}
.project-card:hover .project-overlay { opacity: 1; }

.project-body   { padding: 1.6rem; }
.project-tags   { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.project-tag {
  padding: 0.2rem 0.7rem; border-radius: 100px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.5px;
  background: rgba(108, 99, 255, 0.12); color: var(--accent);
  border: 1px solid rgba(108, 99, 255, 0.25);
}
.project-title  { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.6rem; font-family: var(--font-display); }
.project-desc   { font-size: 0.9rem; color: var(--text-muted); line-height: 1.65; margin-bottom: 1rem; }

.project-result {
  display: flex; align-items: flex-start; gap: 0.5rem;
  background: rgba(34, 197, 94, 0.06); border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 10px; padding: 0.7rem 1rem;
  font-size: 0.82rem; color: #86efac; line-height: 1.5;
}
.result-icon { flex-shrink: 0; margin-top: 1px; }

.project-footer {
  padding: 1rem 1.6rem; border-top: 1px solid var(--glass-border); display: flex; gap: 1rem;
}
.project-link {
  font-size: 0.85rem; color: var(--text-muted); text-decoration: none;
  display: flex; align-items: center; gap: 0.3rem; transition: color 0.3s;
}
.project-link:hover { color: var(--accent2); }


/* ═══ ACHIEVEMENTS ═══ */
#achievements { background: linear-gradient(180deg, transparent, rgba(108, 99, 255, 0.03), transparent); }

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

.achievement-card {
  background: var(--card); border: 1px solid var(--glass-border);
  border-radius: 20px; padding: 2rem; text-align: center;
  transition: transform 0.3s var(--tr), border-color 0.3s, box-shadow 0.3s;
  position: relative; overflow: hidden;
}
.achievement-card::before {
  content: ''; position: absolute; inset: 0; opacity: 0;
  background: linear-gradient(135deg, rgba(108, 99, 255, 0.06), rgba(0, 212, 255, 0.04));
  transition: opacity 0.3s;
}
.achievement-card:hover { transform: translateY(-6px); border-color: rgba(108, 99, 255, 0.4); box-shadow: var(--glow); }
.achievement-card:hover::before { opacity: 1; }

.ach-icon  { font-size: 2rem; margin-bottom: 0.8rem; display: block; }
.ach-num   {
  font-size: 2.8rem; font-weight: 900; line-height: 1;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 0.4rem; font-family: var(--font-display);
}
.ach-label { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.6rem; }
.ach-desc  { font-size: 0.82rem; color: var(--text-muted); line-height: 1.6; }


/* ═══ TESTIMONIALS ═══ */
#testimonials { background: linear-gradient(180deg, transparent, rgba(0, 212, 255, 0.02), transparent); }

.testimonials-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.8rem;
}

.testimonial-card {
  background: var(--card); border: 1px solid var(--glass-border);
  border-radius: 24px; padding: 2rem;
  transition: transform 0.3s var(--tr), border-color 0.3s, box-shadow 0.3s;
  display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem;
}
.testimonial-card:hover { transform: translateY(-6px); border-color: rgba(108, 99, 255, 0.4); box-shadow: var(--glow); }

.testimonial-quote {
  font-size: 0.97rem; color: var(--text-muted); line-height: 1.8;
  font-style: italic;
  position: relative; padding-left: 1rem;
}
.testimonial-quote::before {
  content: '"'; position: absolute; left: -8px; top: -8px;
  font-size: 4rem; color: var(--accent); opacity: 0.25;
  font-family: Georgia, serif; line-height: 1;
}

.testimonial-author { display: flex; align-items: center; gap: 1rem; }
.testimonial-avatar {
  width: 52px; height: 52px; border-radius: 50%; font-size: 1.6rem;
  background: linear-gradient(135deg, rgba(108, 99, 255, 0.2), rgba(0, 212, 255, 0.1));
  border: 2px solid var(--glass-border);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.testimonial-name { font-size: 0.95rem; font-weight: 700; }
.testimonial-role { font-size: 0.8rem; color: var(--text-muted); }
.testimonial-stars { color: #f59e0b; font-size: 0.9rem; letter-spacing: 2px; }


/* ═══ CTA ═══ */
#cta { background: linear-gradient(180deg, transparent, rgba(108, 99, 255, 0.04), transparent); }

.cta-box {
  background: linear-gradient(135deg, rgba(108, 99, 255, 0.12), rgba(0, 212, 255, 0.06));
  border: 1px solid rgba(108, 99, 255, 0.25);
  border-radius: 32px; padding: 5rem 4rem;
  text-align: center;
  position: relative; overflow: hidden;
}
.cta-box::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(108, 99, 255, 0.15), transparent 60%);
  pointer-events: none;
}
.cta-tag {
  display: inline-block; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1rem; position: relative;
}
.cta-title {
  font-size: clamp(2rem, 4.5vw, 3.5rem); font-weight: 900;
  letter-spacing: -1.5px; line-height: 1.1; margin-bottom: 1.2rem;
  position: relative;
}
.cta-title span {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.cta-sub {
  color: var(--text-muted); font-size: 1.05rem; line-height: 1.75;
  max-width: 580px; margin: 0 auto 2.5rem; position: relative;
}
.cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; position: relative; }


/* ═══ CONTACT ═══ */
#contact { background: linear-gradient(180deg, transparent, rgba(108, 99, 255, 0.04)); }

.contact-wrap { display: grid; grid-template-columns: 1fr 1.5fr; gap: 5rem; align-items: start; }

.contact-item { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 2rem; }
.contact-icon {
  width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0;
  background: rgba(108, 99, 255, 0.12); border: 1px solid rgba(108, 99, 255, 0.25);
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
}
.contact-item-title { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 0.2rem; }
.contact-item-val   { font-size: 0.95rem; font-weight: 600; }

.social-links { display: flex; gap: 1rem; margin-top: 2.5rem; }
.social-link {
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--glass); border: 1px solid var(--glass-border);
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
  text-decoration: none; transition: transform 0.3s, border-color 0.3s, background 0.3s, box-shadow 0.3s;
  color: var(--text-muted);
}
.social-link svg { transition: color 0.3s; }
.social-link:hover { transform: translateY(-5px); }
.github-link:hover { 
  border-color: #fff; 
  background: rgba(255,255,255,0.1); 
  box-shadow: 0 8px 24px rgba(255,255,255,0.1);
  color: #fff;
}
.linkedin-link:hover { 
  border-color: #0A66C2; 
  background: rgba(10,102,194,0.15); 
  box-shadow: 0 8px 24px rgba(10,102,194,0.25);
  color: #0A66C2;
}

/* Contact Form */
.contact-form { display: flex; flex-direction: column; gap: 1.2rem; }
.form-row     { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-group   { display: flex; flex-direction: column; gap: 0.5rem; }
.form-group label {
  font-size: 0.78rem; color: var(--text-muted); font-weight: 600;
  letter-spacing: 0.5px; text-transform: uppercase;
}
.form-group input,
.form-group textarea {
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--glass-border);
  border-radius: 12px; padding: 0.9rem 1.1rem;
  color: var(--text); font-size: 0.95rem; font-family: var(--font-body);
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
  outline: none; resize: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  background: rgba(108, 99, 255, 0.05);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.1);
}
.form-group input.error,
.form-group textarea.error   { border-color: var(--accent3); }
.form-group .error-msg       { font-size: 0.78rem; color: var(--accent3); display: none; }
.form-group.has-error .error-msg { display: block; }
.form-group textarea         { min-height: 140px; }

.btn-submit {
  align-self: flex-start; padding: 0.9rem 2.2rem;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; border: none; border-radius: 12px;
  font-size: 1rem; font-weight: 700; cursor: pointer;
  font-family: var(--font-body);
  transition: transform 0.3s, box-shadow 0.3s, opacity 0.3s;
  box-shadow: 0 8px 30px rgba(108, 99, 255, 0.35);
  position: relative; overflow: hidden;
}
.btn-submit:hover     { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(108, 99, 255, 0.5); }
.btn-submit:active    { transform: scale(0.97); }
.btn-submit.loading   { opacity: 0.7; pointer-events: none; }
.btn-submit.success   { background: linear-gradient(135deg, #22c55e, #16a34a); }

.submit-ripple {
  position: absolute; border-radius: 50%;
  background: rgba(255, 255, 255, 0.3); width: 0; height: 0;
  transform: translate(-50%, -50%);
  animation: ripple 0.6s ease-out forwards;
}


/* ═══ FOOTER ═══ */
footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--glass-border);
  padding: 2rem; text-align: center; color: var(--text-muted); font-size: 0.85rem;
}
footer span { color: var(--accent); }
