/* ---------------- Reset ---------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ---------------- Body ---------------- */
body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #0f0f1f, #1a1a2e);
  color: #eee;
  line-height: 1.6;
  scroll-behavior: smooth;
}

/* ---------------- Header ---------------- */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(15, 15, 31, 0.95);
  padding: 15px 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.7);
}

nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
}

nav ul li {
  margin: 0 15px;
}

nav ul li a {
  text-decoration: none;
  color: #eee;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #6a5acd;
}

/* ---------------- Sections ---------------- */
.section {
  min-height: 100vh;
  padding: 100px 20px;
  text-align: center;
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-out;
}

.section.show {
  opacity: 1;
  transform: translateY(0);
}

/* ---------------- Cover ---------------- */
.cover-section {
  text-align: center;
  padding: 80px 20px;
  color: #fff;
}

.profile-pic {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 4px solid #fff;
  object-fit: cover;
  margin-bottom: 20px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.cover-section h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.cover-welcome {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.cover-shortbio {
  font-size: 1.1rem;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cover-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cover-card {
  display: block;
  padding: 15px 25px;
  background-color: #9e73e9;
  color: #333;
  border-radius: 12px;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

.cover-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* ---------------- About Section ---------------- */
.about-section {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 60px 20px;
  color: #dce3e6;
}

.about-image img {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.about-text {
  max-width: 600px;
  font-size: 1.1rem;
  line-height: 1.6;
}

/* ---------------- USP Section ---------------- */
.usp-section {
  text-align: center;
  padding: 50px 20px;
  color: #edf1f4;
  overflow: hidden;
}

.usp-line {
  font-size: 1.8rem;
  font-weight: bold;
  font-style: italic;
  display: inline-block;
  position: relative;
  animation: slideGlow 3s ease-in-out infinite;
}

@keyframes slideGlow {
    0% {
        transform: translateY(-20px);
        opacity: 0;
        text-shadow: 0 0 0px rgb(91, 59, 176);
    }
    50% {
        transform: translateY(0);
        opacity: 1;
        text-shadow: 0 0 15px rgb(91, 68, 155), 0 0 25px #9381bd;
    }
    100% {
        transform: translateY(-20px);
        opacity: 0;
        text-shadow: 0 0 0px rgb(111, 0, 255);
    }
}

/* ---------------- Education Section ---------------- */
.education-section {
  text-align: center;
  padding: 60px 20px;
  color: #9065f3;
}

.education-card {
  display: inline-block;
  background: transparent;
  padding: 20px 30px;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  max-width: 400px;
  margin: 20px auto;
  text-align: center;
  color: #f7fdfd;
}

.education-card h3 {
  margin-bottom: 5px;
  font-size: 1.4rem;
}

.education-card p {
  margin: 5px 0;
  font-size: 1.1rem;
}

.university-logo img {
  width: 80px;
  height: auto;
  margin-top: 15px;
}

/* ---------------- Contact Section ---------------- */
#contact {
  background-color: #f0f9ff;
  padding: 40px 20px;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  margin-top: 40px;
}

#contact h2 {
  text-align: center;
  font-size: 24px;
  margin-bottom: 20px;
  color: #0077cc;
}

.contact-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
}

.contact-info p {
  font-size: 16px;
  margin: 5px 0;
  color: #333;
}

.contact-info a {
  color: #0077cc;
  font-weight: bold;
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

.contact-form {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 450px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  transition: border 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #0077cc;
}

.contact-form button {
  padding: 12px;
  background-color: #0077cc;
  color: white;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-form button:hover {
  background-color: #005fa3;
}

/* ---------------- Back to Top ---------------- */
#backToTop {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: #0077cc;
  color: white;
  border: none;
  padding: 12px 15px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  display: none;
  transition: background 0.3s ease;
}

#backToTop:hover {
  background-color: #005fa3;
}

/* ---------------- Animations ---------------- */
@media (max-width: 768px) {
  .about-section {
    flex-direction: column;
    text-align: center;
  }

  .about-text {
    margin-top: 20px;
  }

  .about-image img {
    width: 180px;
    height: 180px;
  }

  .cover-section h1 {
    font-size: 2rem;
  }

  .cover-welcome {
    font-size: 1.2rem;
  }

  .cover-shortbio {
    font-size: 1rem;
  }

  .cover-links {
    flex-direction: column;
    gap: 15px;
  }

  .usp-line {
    font-size: 1.4rem;
  }
}
/* ---------------- Grid Layout for Cards ---------------- */
.section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  padding: 50px 20px;
  justify-items: center;
  align-items: start;
}

/* ---------------- Card Style ---------------- */
.card {
  background: linear-gradient(135deg, #8956df, #6a5acd); /* ممكن تغيري اللون */
  color: #fff;
  border-radius: 15px;
  padding: 25px 20px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  opacity: 0;
  transform: translateY(30px);
}

/* ---------------- Card Hover ---------------- */
.card:hover {
  transform: translateY(-10px) rotateX(5deg);
  box-shadow: 0 12px 30px rgba(0,0,0,0.5);
}

/* ---------------- Animation on Scroll ---------------- */
@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.card.show {
  animation: fadeUp 0.8s forwards;
}

/* ---------------- USP Cards ---------------- */
.usp-section .card {
  background: linear-gradient(135deg, #ff7f50, #ff6347);
  font-size: 1.2rem;
  font-weight: bold;
}

/* ---------------- Education Cards ---------------- */
.education-section .card {
  background: linear-gradient(135deg, #20b2aa, #3cb371);
}

/* ---------------- About Cards (مثلا الشرح أو الصور) ---------------- */
.about-section .card {
  background: linear-gradient(135deg, #f4a460, #d2691e);
}

/* ---------------- Cover Cards ---------------- */
.cover-section .card {
  background: linear-gradient(135deg, #6a5acd, #483d8b);
  color: #fff;
  font-weight: bold;
  font-size: 1.1rem;
}

/* ---------------- Contact Cards ---------------- */
#contact .card {
  background: linear-gradient(135deg, #918ce1, #b28dd6);
}

/* ---------------- Responsive ---------------- */
@media (max-width: 768px) {
  .section-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
  }

  .card {
    padding: 20px 15px;
  }
}
#skills {
  text-align: center;
  padding: 60px 20px;
  color: #fff;
}

#skills h2 {
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: #6a5acd;
  letter-spacing: 1px;
}

/* ---------------- Grid Skills ---------------- */
.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  justify-items: center;
}

/* ---------------- Skill Card ---------------- */
.skill-card {
  width: 100%;
  max-width: 280px;
  background: linear-gradient(135deg, #6a5acd, #483d8b);
  border-radius: 20px;
  padding: 25px 20px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.4);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  text-align: center;
  opacity: 0;
  transform: translateY(40px);
}

.skill-card h3 {
  font-size: 1.6rem;
  margin-bottom: 15px;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.skill-card ul {
  list-style: none;
  padding: 0;
}

.skill-card ul li {
  margin: 8px 0;
  font-size: 1.1rem;
  color: #f0f0f0;
}

/* ---------------- Hover Animation ---------------- */
.skill-card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 15px 35px rgba(0,0,0,0.6);
}

/* ---------------- Animation on Scroll ---------------- */
.skill-card.show {
  animation: fadeUp 0.8s forwards;
}

@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(40px);}
  100% { opacity: 1; transform: translateY(0);}
}

/* ---------------- Responsive ---------------- */
@media (max-width: 768px) {
  #skills h2 { font-size: 2rem; }
  .skill-card h3 { font-size: 1.4rem; }
  .skill-card ul li { font-size: 1rem; }
}
.circles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0; /* تحت كل العناصر */
}

.circles span {
  position: absolute;
  display: block;
  width: 20px;
  height: 20px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  animation: float 15s linear infinite;
  bottom: -150px;
}

.circles span:nth-child(1) { left: 10%; width: 25px; height: 25px; animation-duration: 12s; }
.circles span:nth-child(2) { left: 20%; width: 15px; height: 15px; animation-duration: 18s; animation-delay: 2s;}
.circles span:nth-child(3) { left: 30%; width: 20px; height: 20px; animation-duration: 10s; animation-delay: 4s;}
.circles span:nth-child(4) { left: 40%; width: 18px; height: 18px; animation-duration: 16s; animation-delay: 6s;}
.circles span:nth-child(5) { left: 50%; width: 22px; height: 22px; animation-duration: 14s; animation-delay: 1s;}
.circles span:nth-child(6) { left: 60%; width: 20px; height: 20px; animation-duration: 20s; animation-delay: 3s;}
.circles span:nth-child(7) { left: 70%; width: 16px; height: 16px; animation-duration: 12s; animation-delay: 5s;}
.circles span:nth-child(8) { left: 80%; width: 25px; height: 25px; animation-duration: 17s; animation-delay: 7s;}

@keyframes float {
  0% { transform: translateY(0) rotate(0deg); opacity: 0.7;}
  50% { opacity: 0.4; }
  100% { transform: translateY(-1000px) rotate(360deg); opacity: 0;}
}

/* اجعل كل عناصر الصفحة فوق الدوائر */
header, section, footer {
  position: relative;
  z-index: 1;
}
.circles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1; /* خلف كل العناصر */
}

.circles span {
  position: absolute;
  border-radius: 50%;
  opacity: 0.3;
  animation: float 20s linear infinite;
}

/* دوائر بأحجام مختلفة وألوان هادية */
.circles span:nth-child(1) {
  width: 120px; height: 120px;
  background: #6672ff;
  top: 10%; left: 5%;
  animation-duration: 22s;
}

.circles span:nth-child(2) {
  width: 100px; height: 100px;
  background: #9966ff;
  top: 30%; left: 20%;
  animation-duration: 25s;
  animation-delay: 2s;
}

.circles span:nth-child(3) {
  width: 150px; height: 150px;
  background: #6699ff;
  top: 50%; left: 40%;
  animation-duration: 28s;
  animation-delay: 4s;
}

.circles span:nth-child(4) {
  width: 90px; height: 90px;
  background: #9966cc;
  top: 70%; left: 60%;
  animation-duration: 24s;
  animation-delay: 1s;
}

.circles span:nth-child(5) {
  width: 130px; height: 130px;
  background: #6672ff;
  top: 20%; left: 80%;
  animation-duration: 26s;
  animation-delay: 3s;
}

/* حركة التأرجح الخفيف */
@keyframes float {
  0% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-20px) translateX(10px); }
  100% { transform: translateY(0) translateX(0); }
}
.circle {
  position: fixed;
  border-radius: 50%;
  background: rgba(106, 90, 205, 0.3); /* لون هادي بنفسجي-أزرق */
  box-shadow: 0 0 10px rgba(106, 90, 205, 0.5);
  animation: float 15s ease-in-out infinite;
  z-index: -1; /* خلف كل المحتوى */
}

/* مقاسات مختلفة للدوائر */
.circle.small { width: 20px; height: 20px; }
.circle.medium { width: 35px; height: 35px; }
.circle.large { width: 50px; height: 50px; }

/* مواقع مختلفة */
.circle.one { top: 10%; left: 5%; animation-delay: 0s; }
.circle.two { top: 30%; right: 10%; animation-delay: 3s; }
.circle.three { bottom: 20%; left: 25%; animation-delay: 6s; }
.circle.four { bottom: 25%; right: 30%; animation-delay: 9s; }
.circle.five { top: 60%; left: 50%; animation-delay: 12s; }

/* حركة الطفو الخفيفة */
@keyframes float {
  0%   { transform: translateY(0) scale(1); opacity: 0.7; }
  50%  { transform: translateY(-10px) scale(1.1); opacity: 0.5; }
  100% { transform: translateY(0) scale(1); opacity: 0.7; }
}
/* ---------------- Section ---------------- */
#skills {
  text-align: center;
  padding: 60px 20px;
  color: #fff;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0f0f1f, #1a1a2e);
}

#skills h2 {
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: #6a5acd;
  letter-spacing: 1px;
}

/* ---------------- Grid Skills ---------------- */
.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  justify-items: center;
  position: relative;
}

/* ---------------- Skill Card ---------------- */
.skill-card {
  width: 100%;
  max-width: 280px;
  background: linear-gradient(135deg, #6a5acd, #6a5acd);
  border-radius: 50px;
  padding: 30px 20px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.4);
  transition: transform 0.4s ease, box-shadow 0.4s ease, background 0.4s ease;
  text-align: center;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeInUp 0.6s forwards;
  animation-delay: calc(var(--i) * 0.2s);
}

.skill-card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 15px 35px rgba(0,0,0,0.6);
  background: linear-gradient(135deg, #6a5acd, #6a5acd);
}

.skill-card h3 {
  font-size: 1.6rem;
  margin-bottom: 20px;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

/* ---------------- Skill Bar ---------------- */
.skill {
  margin: 10px 0;
}

.skill p {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.skill-bar {
  width: 100%;
  height: 8px;
  background: rgba(255,255,255,0.2);
  border-radius: 20px;
  overflow: hidden;
}

.skill-bar span {
  display: block;
  height: 100%;
  background: #9885c7;
  border-radius: 20px;
  transition: width 0.5s ease;
}

/* ---------------- Experience Section ---------------- */
#experience {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, #1a1a2e, #0f0f1f);
  color: #fff;
  position: relative;
}

#experience h2 {
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: #6a5acd;
}

/* Container Grid */
.experience-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  justify-items: center;
}

/* Cards */
.experience-card {
  background: linear-gradient(135deg, #6a5acd,#6a5acd);
  border-radius: 30px;
  padding: 30px 25px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.5);
  text-align: center;
  opacity: 0;
  transform: translateY(40px);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  animation: fadeInUp 0.8s forwards;
  animation-delay: calc(var(--i) * 0.2s);
}

.experience-card h3 {
  font-size: 1.6rem;
  margin-bottom: 15px;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.experience-card p {
  font-size: 1.1rem;
  margin: 5px 0;
  color: #f0f0f0;
}

/* Hover Effect */
.experience-card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 15px 35px rgba(0,0,0,0.6);
  background: linear-gradient(135deg, #afa9d7, #afa9d7);
}

/* Animation Keyframes */
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(40px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
  #experience h2 {
    font-size: 2rem;
  }
}
/* صورة داخل البطاقة */
.experience-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  border: 3px solid rgba(255,255,255,0.5);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.service-card {
  background: linear-gradient(135deg, #6a5acd, #483d8b);
  color: #fff;
  border-radius: 25px;
  padding: 30px 20px;
  text-align: center;
  box-shadow: 0 12px 25px rgba(0,0,0,0.5);
  transition: transform 0.4s ease, box-shadow 0.4s ease, background 0.4s ease;
  opacity: 0;
  transform: translateY(50px);
  animation: fadeUp 0.8s forwards;
  animation-delay: calc(var(--i) * 0.2s);
  position: relative;
  overflow: hidden;
}

.service-card .icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
  display: inline-block;
  background: rgba(255,255,255,0.1);
  padding: 15px;
  border-radius: 50%;
}

.service-card:hover {
  transform: translateY(-10px) scale(1.05) rotateZ(1deg);
  box-shadow: 0 20px 40px rgba(0,0,0,0.7);
  background: linear-gradient(135deg, #a99cd7, #a99cd7);
}

.service-card h3 {
  font-size: 1.6rem;
  margin: 10px 0;
  text-transform: uppercase;
}

.service-card p {
  font-size: 1.1rem;
  line-height: 1.5;
}
.services-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* كروت متوسطة الحجم */
  gap: 20px;
  justify-items: center;
  padding: 20px 0;
}

.service-card {
  background: linear-gradient(135deg, #6a5acd, #483d8b);
  color: #fff;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  text-align: center;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 12px 30px rgba(0,0,0,0.5);
}

.service-card .icon {
  font-size: 1.8rem; /* رمز متوسط الحجم */
  margin-bottom: 12px;
  display: inline-block;
  background: rgba(255,255,255,0.1);
  padding: 10px;
  border-radius: 50%;
}
.projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* كروت متوسطة الحجم */
  gap: 20px;
  justify-items: center;
  padding: 20px 0;
}

.project-card {
  background: linear-gradient(135deg,#6a5acd, #6a5acd);
  color: #fff;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  text-align: center;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.project-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 12px 30px rgba(0,0,0,0.5);
}

.project-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.project-card p {
  font-size: 1rem;
  line-height: 1.4;
}

.project-link {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 15px;
  background-color: rgba(255,255,255,0.2);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

.project-link:hover {
  background-color: rgba(255,255,255,0.4);
}
.achievements-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  justify-items: center;
  padding: 20px 0;
}

.achievement-card {
  background: linear-gradient(135deg, #6a5acd, #6a5acd);
  color: #fff;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  text-align: center;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.achievement-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 12px 30px rgba(0,0,0,0.5);
}

.achievement-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.achievement-card p {
  font-size: 1rem;
  line-height: 1.4;
}

/* صورة الشهادة */
.certificate-img img {
  width: 100%;
  max-width: 200px;
  border-radius: 12px;
  margin-top: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
}

.certificate-img img:hover {
  transform: scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
  .achievement-card h3 {
    font-size: 1.2rem;
  }
  .achievement-card p {
    font-size: 0.95rem;
  }
  .certificate-img img {
    max-width: 150px;
  }
}
.testimonials-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  justify-items: center;
  padding: 20px 0;
}

.testimonial-card {
  background: linear-gradient(135deg, #6a5acd, #483d8b);
  color: #fff;
  padding: 25px 20px;
  border-radius: 15px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  text-align: center;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.testimonial-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 12px 30px rgba(0,0,0,0.5);
}

.testimonial-card h3 {
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 5px;
}

.testimonial-card h4 {
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 15px;
  opacity: 0.8;
}

.testimonial-card p {
  font-size: 1rem;
  line-height: 1.4;
  font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
  .testimonial-card {
    padding: 20px 15px;
  }
  .testimonial-card h3 {
    font-size: 1.2rem;
  }
  .testimonial-card h4 {
    font-size: 0.95rem;
  }
  .testimonial-card p {
    font-size: 0.95rem;
  }
}
