/* Base styles */
body {
    font-family: 'Georgia', serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #7f7fd5, #86a8e7, #91eae4);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    animation: gradientBG 15s ease infinite;
    background-size: 400% 400%;
}

/* Container styles */
.container {
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.15);  /* More transparent background */
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.2);  /* Softer shadow */
  backdrop-filter: blur(12px);  /* Increased blur effect */
  -webkit-backdrop-filter: blur(12px);  /* For Safari support */
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.25);  /* Slightly more visible border */
  animation: fadeIn 1s ease-out;
}

/* Optional: Add these effects to enhance the glass look */
.container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 20px;
  background: linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.1),
      rgba(255, 255, 255, 0.05)
  );
  pointer-events: none;
}

/* Ensure text remains readable on glass background */
.container * {
  color: rgba(0, 0, 0, 0.8);  /* Slightly darker text for better contrast */
}

/* Optional: Add a subtle hover effect */
.container:hover {
  background: rgba(255, 255, 255, 0.2);
  transition: background 0.3s ease;
}

/* Header styles */
header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #7f7fd5, #86a8e7, #91eae4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  animation: gradientText 15s ease infinite;
}

.subtitle {
  font-style: italic;
  background: linear-gradient(135deg, #181891, #375895, #0db3a7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 1.2rem;
  font-weight: 500;
  opacity: 0.9;
}

@keyframes gradientText {
  0% {
      background-position: 0% 50%;
  }
  50% {
      background-position: 100% 50%;
  }
  100% {
      background-position: 0% 50%;
  }
}

header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid rgba(127, 127, 213, 0.3);  /* Matching gradient color */
  position: relative;
  animation: float 6s ease-in-out infinite;
}

/* Cards Container */
.cards-container {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* GitHub Repository Cards */
.card {
    flex: 0 1 300px;
    padding: 20px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.card:hover {
    transform: translateY(-10px);
}

.github-icon {
  width: 24px;
  height: 24px;
  margin-bottom: 15px;
  fill: #333;  /* Default color */
  transition: fill 0.3s ease;
}

.card:hover .github-icon {
  fill: #2b3137;  /* GitHub's darker color on hover */
}

.card-link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.card svg {
    width: 24px;
    height: 24px;
    margin-bottom: 15px;
}

.card__title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.card__description {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

/* Chrome Extension Cards */
.e-card {
    width: 300px;
    height: 200px;
    background: linear-gradient(#313131, #000);
    border-radius: 1rem;
    padding: 1rem;
    box-sizing: border-box;
    position: relative;
    display: flex;
    align-items: flex-end;
    transition: 0.5s ease-in-out;
}

.e-card:hover {
    transform: translateY(-20px);
}

.e-card:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, #000 0%, rgba(0, 0, 0, 0) 100%);
    z-index: 2;
    transition: 0.5s;
    border-radius: 1rem;
}

.e-card .image {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 1rem;
}

.e-card .infotop {
  position: relative;
  z-index: 3;
  color: white;
  opacity: 1;  /* Changed from 0 to 1 to show by default */
  transform: translateY(0);  /* Remove initial transform */
  transition: 0.5s;
  padding: 1rem;  /* Add padding for better spacing */
}

.e-card:hover .infotop {
    opacity: 1;
    transform: translateY(0px);
}

.e-card .infotop .title {
  color: #f5f5f5;
  font-weight: bold;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.e-card .infotop .name {
  font-size: 0.9rem;
  color: rgba(245, 245, 245, 0.7);
  opacity: 0;  /* Hide description by default */
  transform: translateY(20px);
  transition: 0.5s;
}

/* Wave Animation */
.e-card:hover .wave {
  opacity: 0.3;
  animation: wave 3000ms infinite linear;
}

.e-card:hover .infotop .name {
  opacity: 1;
  transform: translateY(0);
}

.e-card:hover .infotop .title {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

.e-card:hover .wave:nth-child(2) {
  animation: wave 4000ms infinite linear;
  animation-delay: 0.1s;
}

.e-card:hover .wave:nth-child(3) {
  animation: wave 5000ms infinite linear;
  animation-delay: 0.2s;
}

/* Keep the wave elements static when not hovering */
.wave {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 1rem;
  z-index: 1;
  opacity: 0; /* Hide by default */
  background: linear-gradient(to top, #30cfd0, #330867);
  transition: opacity 0.3s ease;
}

.playing .wave {
    animation: wave 3000ms infinite linear;
}

.wave:nth-child(2) {
    animation-delay: 0.1s;
}

.wave:nth-child(3) {
    animation-delay: 0.2s;
}

.contact-link {
  font-weight: 700;
  text-decoration: none;
  background: linear-gradient(135deg, #181891, #375895, #0db3a7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
  transition: all 0.3s ease;
}

.contact-link::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: -2px;
  left: 0;
  background: linear-gradient(135deg, #181891, #375895, #0db3a7);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.contact-link:hover::after {
  transform: scaleX(1);
}

.contact-link:hover {
  opacity: 0.8;
}


/* Profile section */
.profile-section {
  margin: 2rem 0 4rem 0;
  animation: fadeIn 1s ease-out;
}

.profile-card {
  position: relative;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: transform 0.3s ease;
}

.profile-card:hover {
  transform: translateY(-5px);
}

.profile-background {
  height: 150px;
  background: linear-gradient(135deg, #7f7fd5, #86a8e7, #91eae4);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
}

.profile-content {
  position: relative;
  padding: 20px;
  text-align: center;
}

.profile-image {
  position: relative;
  margin-top: -75px;
  margin-bottom: 20px;
}

.profile-image img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 5px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
  object-fit: cover;
  transition: transform 0.3s ease;
}

.profile-image img:hover {
  transform: scale(1.05);
}

.profile-info h2 {
  color: #333;
  margin-bottom: 10px;
  font-size: 1.8rem;
}

.profile-info p {
  color: #666;
  margin-bottom: 20px;
  font-style: italic;
}

.profile-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 25px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: bold;
  color: #7f7fd5;
}

.stat-label {
  font-size: 0.9rem;
  color: #666;
}

.profile-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  min-width: 160px;
  text-align: center;
}

.profile-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.profile-button.github {
  background: linear-gradient(135deg, #2b3137, #24292e);
  color: white;
}

.profile-button.portfolio {
  background: linear-gradient(135deg, #7f7fd5, #86a8e7);
  color: white;
}

.profile-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.profile-button.github:hover {
  box-shadow: 0 5px 15px rgba(43, 49, 55, 0.4);
}

.profile-button.portfolio:hover {
  box-shadow: 0 5px 15px rgba(127, 127, 213, 0.4);
}

.github-icon-2, .portfolio-icon {
  width: 20px;
  height: 20px;
  fill: white;
  flex-shrink: 0;
}

/* Particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: moveParticle 20s infinite linear;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { left: 30%; animation-delay: -4s; }
.particle:nth-child(3) { left: 50%; animation-delay: -8s; }
.particle:nth-child(4) { left: 70%; animation-delay: -12s; }
.particle:nth-child(5) { left: 90%; animation-delay: -16s; }
.particle:nth-child(6) { left: 10%; animation-delay: 0s; }
.particle:nth-child(7) { left: 30%; animation-delay: -4s; }
.particle:nth-child(8) { left: 50%; animation-delay: -8s; }
.particle:nth-child(9) { left: 70%; animation-delay: -12s; }
.particle:nth-child(10) { left: 90%; animation-delay: -16s; }

/* Footer */
footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(255, 255, 255, 0.3);
    text-align: center;
    font-size: 0.9rem;
    color: #666;
}

footer a {
    color: #2980b9;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Animations */
@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes wave {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes moveParticle {
    from { transform: translateY(-100vh); }
    to { transform: translateY(100vh); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        margin: 1rem;
        padding: 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    .card, .e-card {
        flex: 0 1 100%;
    }
}

@media (max-width: 480px) {
  .profile-links {
      flex-direction: column;
      align-items: center;
  }

  .profile-button {
      width: 100%;
      justify-content: center;
  }
}

/* Optional: Add a subtle animation when the buttons appear */
.profile-links {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
      opacity: 0;
      transform: translateY(20px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}