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

/* Body background */
body {
  font-family: 'Poppins', sans-serif;
  background-color: #007AFF;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

/* Card Container */
.card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  border-radius: 20px;
  padding: 40px 30px;
  max-width: 600px;
  width: 100%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  text-align: center;
  color: #fff;
}

/* Profile Photo */
.profile-pic img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 5px solid #fff;
  object-fit: cover;
  box-shadow: 0 0 20px #0ff;
  margin-bottom: 20px;
}

/* Name & Tagline */
h1 {
  font-size: 2.2rem;
  color: #fff;
}

.tagline {
  font-size: 1rem;
  color: #eee;
  margin-bottom: 30px;
}

/* Sections */
section {
  margin-top: 30px;
}

h2 {
  font-size: 1.5rem;
  color: #ffea00;
  margin-bottom: 15px;
}

.about p {
  color: #f0f0f0;
  line-height: 1.6;
}

/* Education Section */
.education {
  text-align: left;
}

.edu-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 15px;
  margin: 10px 0;
  border-left: 5px solid #ffea00;
  border-radius: 8px;
}

.edu-item h3 {
  margin-bottom: 5px;
  color: #0ff;
}

/* Skills */
.skill {
  text-align: left;
  margin: 15px 0;
}

.skill p {
  margin-bottom: 5px;
}

.bar {
  background: #444;
  height: 12px;
  border-radius: 6px;
  overflow: hidden;
}

.bar div {
  height: 12px;
  background: linear-gradient(90deg, #0ff, #0f0);
  animation: fill 2s ease-out;
  border-radius: 6px;
}

@keyframes fill {
  from { width: 0; }
  to { width: 100%; }
}

/* Social Icons */
.social-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 15px;
}

.social-icons a {
  text-decoration: none;
  background: #fff;
  color: #111;
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px #fff;
}

.social-icons a:hover {
  background: #ff0;
  color: #000;
  box-shadow: 0 0 15px #ff0;
}

/* Footer */
footer {
  margin-top: 40px;
  font-size: 0.9rem;
  color: #ccc;
}

/* ================== RESPONSIVE ================== */

@media (max-width: 768px) {
  .card {
    padding: 30px 20px;
  }

  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.3rem;
  }

  .tagline {
    font-size: 0.95rem;
  }

  .profile-pic img {
    width: 110px;
    height: 110px;
  }

  .social-icons a {
    padding: 8px 16px;
    font-size: 0.9rem;
  }

  .bar {
    height: 10px;
  }

  .bar div {
    height: 10px;
  }
}

@media (max-width: 480px) {
  .card {
    padding: 25px 15px;
  }

  .profile-pic img {
    width: 100px;
    height: 100px;
  }

  .social-icons {
    flex-direction: column;
    gap: 10px;
  }

  .social-icons a {
    width: 100%;
  }
}

/* Certificate Section */
.certificates {
  margin-top: 40px;
  text-align: center;
}

.certificates h2 {
  color: #00f7ff;
  margin-bottom: 20px;
  font-size: 1.6rem;
}

.certificate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 15px;
  padding: 10px;
}

.certificate-grid img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 3px solid #fff;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: rgba(255, 255, 255, 0.05);
}

.certificate-grid img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px #0ff;
}