/* Custom CSS for the portfolio - Improved version */

/* Import Montserrat font with font-display: swap for better performance */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600&display=swap');

/* Ensure Montserrat is used throughout the site */
* {
  font-family: 'Montserrat', -apple-system, system-ui, sans-serif;
}

/* Set explicit background */
body {
  background-color: #101010;
  background-image: none;
}

/* Shiny text effects using preferred purple color */
.shiny-white {
  background: linear-gradient(90deg, #ffffff, #a0a0a0, #ffffff);
  background-size: 200% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shinyAnimation 8s ease-in-out infinite;
}

.shiny-sec {
  background: linear-gradient(90deg, #5e4491, #ffffff, #5e4491);
  background-size: 200% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shinyAnimation 8s ease-in-out infinite;
}

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

/* Footer styles with preferred link styling */
.footer-container {
  background: rgba(16, 16, 16, 0.8);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 2rem 0 1rem;
  margin-top: 3rem;
  color: #a0a0a0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-column h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #ffffff;
}

.footer-column h4 {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
  color: #ffffff;
}

.footer-column p {
  color: #a0a0a0;
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 0.25rem;
}

/* Make links distinguishable with underlines and better contrast */
.footer-column ul li a {
  color: #a476ff; /* Use purple for better contrast */
  text-decoration: underline; /* Add underline for distinction */
  transition: color 0.2s ease;
}

.footer-column ul li a:hover {
  color: #ffffff;
}

.social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: #a0a0a0;
  transition: all 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  transform: translateY(-1px);
}

.copyright-section {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1rem;
  text-align: center;
}

/* Make copyright links more distinguishable */
.copyright-text {
  color: #a0a0a0;
  font-size: 0.8rem;
}

.copyright-text a {
  color: #a476ff; /* Use purple for better contrast */
  text-decoration: underline; /* Add underline for distinction */
  transition: color 0.2s ease;
}

.copyright-text a:hover {
  color: #ffffff;
}

.portfolio-like-button {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  color: #a0a0a0;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.8rem;
}

.portfolio-like-button:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.portfolio-like-button svg {
  width: 0.8rem;
  height: 0.8rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .social-links {
    justify-content: center;
  }
}

/* Additional styles for About section */
.about-paragraph {
  line-height: 1.6;
}

.additional-content {
  display: none;
}

.read-more-btn {
  background: none;
  border: none;
  padding: 0.25rem 0.75rem;
  border-radius: 0.25rem;
  cursor: pointer;
  opacity: 0;
  transition: all 0.2s ease;
  color: #a476ff; /* Use purple for better contrast */
  font-size: 0.8rem;
  position: relative;
  overflow: hidden;
  text-decoration: underline; /* Add underline for distinction */
}

.read-more-btn:hover {
  color: #ffffff;
}

.read-more-btn.visible {
  opacity: 1;
}

/* Profile image container */
.profile-image-container {
  position: relative;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, #5e4491, #241a38);
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 3/4;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
}

.profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: opacity 0.5s ease;
  opacity: 0;
}

.profile-image-placeholder {
  transition: opacity 0.5s ease;
  opacity: 1;
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

/* When image loads successfully, hide placeholder and show image */
.profile-image.opacity-100 {
  opacity: 1;
}

.profile-image.opacity-100 + .profile-image-placeholder {
  opacity: 0;
  pointer-events: none;
}

/* Project image containers */
.project-image-container {
  aspect-ratio: 4/3;
}

/* Project image modal */
.project-image-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.project-image-modal.active {
  opacity: 1;
  visibility: visible;
}

.project-image-modal img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}

.project-image-modal .close-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Responsive adjustments for profile image */
@media (max-width: 768px) {
  .profile-image-container {
    max-width: 100%;
    aspect-ratio: 3/4;
  }
}

/* Like button animation */
@keyframes likePulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.like-button svg {
  transition: transform 0.2s ease;
}

.like-button.text-\[var\(--sec\)\] svg {
  animation: likePulse 0.3s ease;
}