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

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

a {
  text-decoration: none;
  color: #2563eb;
  transition: color 0.3s ease;
}

a:hover {
  color: #1e40af;
}

h1,
h2,
h3,
h4 {
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.5em;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 1.8rem;
  color: #1a365d;
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 10px;
  margin-bottom: 1.2rem;
}

h3 {
  font-size: 1.4rem;
  color: #2563eb;
}

p {
  margin-bottom: 1rem;
}

img {
  max-width: 100%;
  height: auto;
}

/* Header Styles */
header {
  background: linear-gradient(to right, #1e3a8a, #3b82f6);
  color: white;
  padding: 40px 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header-content {
  text-align: center;
}

.header-content h1 {
  margin-bottom: 10px;
  font-size: 2.8rem;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.header-content p {
  font-size: 1.2rem;
  margin-bottom: 20px;
  opacity: 0.9;
}

.home-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  border-radius: 30px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.home-button:hover {
  background-color: rgba(255, 255, 255, 0.3);
  color: white;
  transform: translateY(-2px);
}

.home-button i {
  margin-right: 5px;
}

/* Main Content Styles */
main {
  padding: 40px 0;
}

/* Profile Section */
.profile-section {
  text-align: center;
  margin-bottom: 40px;
  background-color: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.profile-image {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid #e5e7eb;
  margin-bottom: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-image:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.profile-quote {
  font-style: italic;
  color: #6b7280;
  font-size: 1.2rem;
  margin-bottom: 25px;
}

.profile-stats {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.stat-item {
  padding: 0 25px;
  text-align: center;
  border-right: 1px solid #e5e7eb;
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  display: block;
  font-size: 2.2rem;
  font-weight: 700;
  color: #2563eb;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #6b7280;
}

/* Content Sections */
.content-section {
  background-color: white;
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 40px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.content-section h2 i {
  margin-right: 10px;
  color: #2563eb;
}

.section-intro {
  font-size: 1.1rem;
  color: #6b7280;
  margin-bottom: 25px;
}

/* Education Section */
.education-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .education-section {
    grid-template-columns: repeat(2, 1fr);
  }
}

.education-item {
  background-color: #f9fafb;
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid #2563eb;
}

.education-item h3 {
  margin-bottom: 10px;
}

.education-item p i {
  margin-right: 5px;
  color: #6b7280;
}

.education-status {
  font-weight: 600;
  color: #2563eb;
}

/* Certificate Gallery */
.certificate-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 25px;
}

.certificate-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 200px;
}

.certificate-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.certificate-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.3s ease;
}

.certificate-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  color: white;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.certificate-item:hover .certificate-overlay {
  opacity: 1;
}

.certificate-info h3 {
  color: white;
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.certificate-info p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.modal.show {
  opacity: 1;
}

.modal-content-wrapper {
  position: relative;
  width: 80%;
  max-width: 800px;
  max-height: 80vh;
  margin: 5% auto;
  text-align: center;
}

.modal-content {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.3s ease;
}

#modalImg {
  opacity: 1;
  transition: opacity 0.3s ease;
}

.modal-caption {
  color: white;
  margin-top: 15px;
  font-size: 1.2rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.close {
  position: absolute;
  top: -40px;
  right: 10px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
  transition: color 0.3s ease;
}

.close:hover {
  color: #f87171;
}

.modal-nav {
  position: absolute;
  width: 100%;
  display: flex;
  justify-content: space-between;
  top: 50%;
  transform: translateY(-50%);
  padding: 0 20px;
}

.modal-nav-btn {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, transform 0.3s ease;
}

.modal-nav-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

/* Skills Section */
.skills-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

@media (min-width: 768px) {
  .skills-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

.skill-category {
  background-color: #f9fafb;
  padding: 20px;
  border-radius: 10px;
}

.skill-category h3 {
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e5e7eb;
}

.skill-category h3 i {
  margin-right: 8px;
  color: #2563eb;
}

.skills-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

.skill-progress {
  margin-bottom: 10px;
}

.skill-name {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.progress-bar {
  height: 10px;
  background-color: #e5e7eb;
  border-radius: 5px;
  overflow: hidden;
}

.progress {
  height: 100%;
  background: linear-gradient(to right, #2563eb, #60a5fa);
  border-radius: 5px;
  width: 0;
}

/* Achievements Section */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 25px;
}

.achievement-card {
  background-color: #f9fafb;
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.achievement-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.achievement-icon {
  background-color: #dbeafe;
  color: #2563eb;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.8rem;
  transition: transform 0.3s ease;
}

.achievement-card:hover .achievement-icon {
  transform: scale(1.1);
}

.achievement-card h3 {
  margin-bottom: 15px;
}

/* Contact Section */
.contact-info {
  background-color: #f9fafb;
  padding: 25px;
  border-radius: 10px;
  margin-top: 30px;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 20px;
}

.contact-button {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  background-color: #2563eb;
  color: white;
  border-radius: 30px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.contact-button:hover {
  background-color: #1d4ed8;
  color: white;
  transform: translateY(-2px);
}

.contact-button i {
  margin-right: 8px;
}

/* Footer Styles */
footer {
  background-color: #1e3a8a;
  color: white;
  padding: 40px 0 20px;
}

.footer-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-bottom: 30px;
}

@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
    align-items: center;
  }
}

.footer-logo h3 {
  color: white;
  margin-bottom: 5px;
}

.footer-logo p {
  font-size: 0.9rem;
  opacity: 0.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 20px 0;
}

@media (min-width: 768px) {
  .footer-links {
    margin: 0;
  }
}

.footer-links a {
  color: white;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.footer-links a i {
  margin-right: 5px;
}

.footer-social {
  display: flex;
  gap: 15px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: 50%;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

.copyright {
  text-align: center;
  margin-top: 20px;
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Responsive Adjustments */
@media (max-width: 767px) {
  .header-content h1 {
    font-size: 2.2rem;
  }

  .profile-stats {
    flex-direction: column;
    gap: 20px;
  }

  .stat-item {
    border-right: none;
    border-bottom: 1px solid #e5e7eb;
    padding: 15px 0;
  }

  .stat-item:last-child {
    border-bottom: none;
  }

  .certificate-gallery {
    grid-template-columns: 1fr;
  }

  .contact-links {
    flex-direction: column;
  }

  .modal-content-wrapper {
    width: 95%;
  }

  .modal-nav-btn {
    width: 40px;
    height: 40px;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.content-section {
  animation: fadeIn 0.6s ease forwards;
}

.content-section:nth-child(2) {
  animation-delay: 0.2s;
}

.content-section:nth-child(3) {
  animation-delay: 0.4s;
}

.content-section:nth-child(4) {
  animation-delay: 0.6s;
}

.content-section:nth-child(5) {
  animation-delay: 0.8s;
}
