* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

body {
  background: linear-gradient(to right, #e8e4e4, #ececec);
  color: #333;
}

h1, h2, h3, h4, h5, h6 {
  text-align: left;
  
}
h3.ptitle {
  text-align: left;
  font-weight: bold;
  color: black;
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: unset !important;
  animation: none !important;
}



nav {
  background: linear-gradient(90deg, rgba(131, 58, 180, 1) 0%, rgba(253, 29, 29, 1) 50%, rgba(252, 176, 69, 1) 100%);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  position: sticky;
  top: 0;
  z-index: 999;
}

nav .logo {
  font-size: 24px;
  font-weight: bold;
}

nav ul {
  display: flex;
  gap: 20px;
  list-style: none;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
}

section {
  padding: 40px 60px;
}

#home {
  text-align: center;
  padding-top: 60px;
}

.card-grid {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 30px;
}

#gallery {
  padding: 40px 20px;
  background-color: #f8f9fa;
  text-align: center;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  justify-items: center;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  max-height: 250px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
  filter: brightness(70%);
}

.caption {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 10px;
  font-weight: bold;
  font-size: 16px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .caption {
  opacity: 1;
}

/* Flip Card */
.flip-card {
  background-color: transparent;
  width: 250px;
  height: 300px;
  perspective: 1000px;
}

/* CERTIFICATE SECTION */
.certificate-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  margin-top: 30px;
}

.certificate-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  width: 250px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  animation: fadeUp 0.8s ease both;
}

.certificate-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.certificate-card p {
  padding: 12px;
  font-weight: 500;
  background: #f5f5f5;
  margin: 0;
}

/* Zoom effect on hover */
.certificate-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.2);
}

.certificate-card:hover img {
  transform: scale(1.05);
}

/* Entry animation */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.head {
  font-size: 32px;
  font-weight: bold;
  text-align: center;
  margin: 40px auto;
  background: linear-gradient(270deg, #ef0b0b, #5d069b, #4ADEDE, #9B59B6);
  background-size: 800% 800%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: animateText 8s ease infinite;
}

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

.resume-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 24px;
  background-color: #6200ea;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.resume-btn:hover {
  background-color: #3700b3;
}

.flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s ease;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-inner {
  transform: rotateY(180deg);
}

.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  backface-visibility: hidden;
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.1);
}

.project-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  margin-top: 30px;
}

.project-card {
  position: relative;
  width: 250px;
  height: 200px;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.4s ease;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-card:hover img {
  transform: scale(1.05);
}

.project-info {
  position: absolute;
  bottom: -100%;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  padding: 15px;
  text-align: center;
  transition: bottom 0.4s ease;
}

.project-card:hover .project-info {
  bottom: 0;
}

.contact-icons {
  margin-top: 20px;
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-icons a img {
  width: 50px;
  height: 50px;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.3));
}

.contact-icons a:hover img {
  transform: scale(1.2);
}

.card-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.3s ease-in-out;
}

.card-back {
  background: #6200ea;
  color: white;
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
}

.card-back a {
  color: #ffd600;
  text-decoration: underline;
  margin-top: 10px;
}

/* Projects List Styling */
ol.project-list {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
  list-style-position: inside;
  color: #333;
}

ol.project-list li {
  margin-bottom: 36px;
  padding-bottom: 16px;
  border-bottom: 1px solid #ddd;
}

ol.project-list li h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 8px;
  background: linear-gradient(270deg, #ef0b0b, #5d069b, #4ADEDE, #9B59B6);
  background-size: 800% 800%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: animateText 8s ease infinite;
}

ol.project-list li p {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 10px;
  color: #444;
}

ol.project-list li a {
  display: inline-block;
  font-weight: 600;
  color: #6200ea;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s ease, color 0.3s ease;
}

ol.project-list li a:hover {
  color: #3700b3;
  border-color: #3700b3;
}

/* Specific style for h3 with class p */
h3.p {
  font-weight: bold;
  color: black;
  text-align: left;
}
