/* Global Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #121212;
  color: #e0e0e0;
  overflow-x: hidden;
  line-height: 1.6;
  margin-bottom: 50px;
}

/* Main Section Styling */
main {
  background: linear-gradient(120deg, #0077b6, #ff6f91, #6a5acd);
  background-size: 400% 400%;
  animation: gradientBG 12s ease infinite;
  padding: 60px 20px;

  /* Custom scrollbar */
  scrollbar-width: thin;
  scrollbar-color: #66d9ef44 transparent;
}

main::-webkit-scrollbar {
  width: 10px;
}

main::-webkit-scrollbar-track {
  background: transparent;
}

main::-webkit-scrollbar-thumb {
  background-color: #66d9ef44;
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: content-box;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

main::-webkit-scrollbar-thumb:hover {
  background-color: #66d9efaa;
  box-shadow: 0 0 8px 2px #66d9efaa;
}

/* Accessibility: Focus styles for links and buttons inside main */
main a:focus,
main button:focus {
  outline: 3px solid #66d9ef;
  outline-offset: 2px;
  box-shadow: 0 0 8px #66d9efaa;
  border-radius: 8px;
}

/* Increase clickable area on certificate button */
main .certificate-button a {
  padding: 14px 28px; /* slightly larger tap target */
  user-select: none;
}

/* Subtle hover feedback on education cards */
main .edu-item:hover {
  transform: translateY(-6px);
  box-shadow: 0px 10px 30px rgba(255, 111, 145, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: default; /* or pointer if interactive */
}

/* Softer animation timing */
main h2,
main h3,
main .edu-item,
main .profile-image {
  animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Text selection styling */
main ::selection {
  background-color: #66d9ef;
  color: #121212;
}

@keyframes gradientBG {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Container */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 30px;
  background-color: #1e1e2f;
  border-radius: 8px;
  box-shadow: 0px 8px 24px rgba(255, 255, 255, 0.05);
}

/* Header & Introduction */
header {
  text-align: center;
  margin-bottom: 40px;
}

.profile-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
  gap: 30px;
}

.profile-image {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 4px solid #333;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.08);
}

.intro-text {
  max-width: 500px;
  text-align: left;
  color: #ccc;
}

.intro-text h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #66d9ef;
}

.intro-text p {
  font-size: 18px;
  color: #aaa;
}

/* Section Titles */
h2.section-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #ffffff;
}

h3 {
  font-size: 26px;
  font-weight: 600;
  color: #66d9ef;
  margin-bottom: 15px;
  text-align: center;
}

/* Education Section */
.education-section,
.complimentary-education {
  margin-bottom: 40px;
}

.education-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}

.edu-item {
  background-color: #27293d;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0px 6px 18px rgba(255, 255, 255, 0.03);
}

.edu-item h4 {
  font-size: 22px;
  color: #66d9ef;
  margin-bottom: 10px;
}

.edu-item p {
  font-size: 18px;
  line-height: 1.6;
  color: #bbb;
}

.certificate-link a {
  font-size: 16px;
  color: #ff6f91;
  text-decoration: none;
  transition: color 0.3s ease;
}

.certificate-link a:hover {
  color: #ff4b8e;
}

/* Horizontal Rules */
hr {
  border: 0;
  border-top: 1px solid #333;
  margin: 30px 0;
}

/* Animation */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

h2,
h3,
.edu-item,
.profile-image {
  animation: fadeInUp 1.2s ease-out forwards;
  opacity: 0;
}

h2 {
  animation-delay: 0.2s;
}

h3 {
  animation-delay: 0.4s;
}

.edu-item {
  animation-delay: 0.6s;
}

.profile-image {
  animation-delay: 0.8s;
}

.certificate-button {
  text-align: center;
  margin-top: 30px;
  animation: fadeInUp 1.5s ease forwards;
}

.certificate-button a {
  display: inline-block;
  padding: 12px 24px;
  font-size: 18px;
  font-weight: bold;
  color: #fff;
  background: linear-gradient(135deg, #0077b6, #ff6f91);
  background-size: 200% 200%;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transition: background-position 0.4s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.certificate-button a:hover {
  background-position: right center;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
}

/* Responsive improvements */
@media (max-width: 768px) {
  main .education-grid {
    grid-template-columns: 1fr;
  }

  main .container {
    padding: 20px;
  }

  main .profile-container {
    flex-direction: column;
    gap: 20px;
    align-items: center;
    text-align: center;
  }

  main .intro-text {
    max-width: 100%;
    text-align: center;
  }

  main .profile-image {
    width: 120px;
    height: 120px;
  }
}

.project-section {
  background-color: #1e1e2f;
  padding: 2rem;
  border-radius: 1rem;
  margin-top: 3rem;
  box-shadow: 0 6px 24px rgba(255, 255, 255, 0.05);
  font-family: 'Segoe UI', sans-serif;
  animation: fadeInUp 1.2s ease-out forwards;
  opacity: 0;
}

.project-section h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #66d9ef;
  border-left: 4px solid #66d9ef;
  padding-left: 0.6rem;
  text-align: left;
}

.project-section p {
  font-size: 1.05rem;
  color: #ccc;
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

.project-section ul {
  list-style: none;
  padding-left: 0;
  margin: 1rem 0;
}

.project-section li {
  position: relative;
  padding-left: 1.8rem;
  margin-bottom: 0.8rem;
  font-size: 1rem;
  color: #bbb;
}

.project-section li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #ff6f91;
  font-weight: bold;
}

.project-section a {
  color: #66d9ef;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.project-section a:hover {
  color: #33b5e6;
  text-decoration: underline;
}

.cta-button a {
  display: inline-block;
  background-color: #111;
  color: #fff;
  padding: 0.6em 1.2em;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background 0.2s ease-in-out;
}

.cta-button a:hover {
  background-color: #333;
}
.profile-image {
  width: 180px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.section-title {
  font-size: 2.2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-align: center;
}

.education-grid, .services-section, .project-section {
  margin-top: 2rem;
}

.cta-button a {
  display: inline-block;
  padding: 10px 16px;
  background-color: #007BFF;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.3s;
}

.cta-button a:hover {
  background-color: #0056b3;
}
/* === Improved Dark Themed Testimonial Section === */
.testimonial-section {
  background: #0a0a0a;
  padding: 4rem 1.5rem;
  color: #e6e6e6;
  text-align: center;
}

.testimonial-section h3 {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 2.5rem;
  letter-spacing: 0.5px;
}

/* Card Styling */
.testimonial-card {
  background: rgba(20, 20, 20, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 2.5rem;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: 0 10px 30px rgba(0, 255, 128, 0.06);
  backdrop-filter: blur(6px);
  transition: all 0.3s ease-in-out;
  text-align: left;
  position: relative;
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 255, 128, 0.12);
}

/* Quote Mark */
.testimonial-quote {
  font-size: 3.5rem;
  color: #00e676;
  line-height: 1;
  margin-bottom: 1rem;
}

/* Quote Text */
.testimonial-text {
  font-size: 1.125rem;
  color: #dddddd;
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 2rem;
}

/* Author Name & Title */
.testimonial-author {
  font-weight: 700;
  color: #a5ffce;
  font-size: 1.1rem;
}

.testimonial-role {
  display: block;
  font-weight: 400;
  color: #999;
  font-size: 0.95rem;
  margin-top: 4px;
}

/* Responsive */
@media (max-width: 640px) {
  .testimonial-card {
    padding: 2rem 1.5rem;
  }

  .testimonial-quote {
    font-size: 2.5rem;
  }

  .testimonial-text {
    font-size: 1rem;
  }
}
