/* Reusable Components */

/* Profile Image */
.profile-img {
  box-shadow: 0 0 0 5px #fff, 0 0 0 10px #3d2c29;
  transition: box-shadow 0.5s, transform 0.5s;
  background: #f8fafc;
}

.profile-img:hover {
  box-shadow: 0 0 0 8px #1a1a1a, 0 0 0 16px #3d2c2999;
  transform: scale(1.04);
}

/* Skill Tags */
.skill-tag {
  background: #f1f5f9;
  color: #14b8a6;
  border: 1px solid #e2e8f0;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  padding: 0.5rem 1.2rem;
  border-radius: 9999px;
  transition: all 0.3s cubic-bezier(.4,0,.2,1), box-shadow 0.4s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 1px 4px 0 #3d2c29;
}

.skill-tag:hover {
  background: #14b8a6;
  color: #fff;
  transform: scale(1.07);
  box-shadow: 0 4px 24px 0 #1a1a1a99;
}

/* Project Cards */
.project-card {
  background: #fff;
  color: #1e293b;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  box-shadow: 0 2px 16px 0 #1a1a1a33;
  transition: transform 0.4s, box-shadow 0.4s, background 0.4s;
}

.project-card:hover {
  transform: scale(1.03) translateY(-6px);
  box-shadow: 0 8px 32px 0 #3d2c2999;
  background: #f8fafc;
}

/* Buttons */
button, .rounded-button {
  background: #14b8a6;
  color: #fff;
  border-radius: 10px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  transition: background 0.3s, color 0.3s, transform 0.3s, box-shadow 0.3s;
}

button:hover, .rounded-button:hover {
  background: #0a192f;
  color: #fff;
  transform: scale(1.05);
  box-shadow: 0 4px 24px 0 #14b8a655;
}

/* Social Icons */
.social-icon {
  color: #14b8a6;
  font-size: 1.5rem;
  transition: color 0.3s, transform 0.3s;
}

.social-icon:hover {
  color: #0a192f;
  transform: scale(1.15) rotate(-8deg);
}

/* Glassmorphism Cards */
.glass-card,
.project-card,
.shadow-md,
.shadow-sm,
.rounded-lg,
.rounded {
  position: relative;
  background: rgba(255,255,255,0.18) !important;
  border: 1.5px solid rgba(255,255,255,0.25) !important;
  box-shadow: 0 8px 32px 0 #3d2c2944, 0 2px 8px 0 #1a1a1a33 !important;
  backdrop-filter: blur(18px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(180%) !important;
  border-radius: 18px !important;
  overflow: hidden;
  transition: box-shadow var(--dur-2) var(--ease-standard), transform var(--dur-2) var(--ease-emphasized), background var(--dur-3) var(--ease-standard);
  background-image: none;
  z-index: 1;
}

/* Glass Card Overlay */
.glass-card::before,
.project-card::before,
.shadow-md::before,
.shadow-sm::before,
.rounded-lg::before,
.rounded::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  z-index: 2;
  pointer-events: none;
  transition: background var(--dur-2) var(--ease-standard);
}

/* Glass Card Content */
.glass-card > *,
.project-card > *,
.shadow-md > *,
.shadow-sm > *,
.rounded-lg > *,
.rounded > * {
  position: relative;
  z-index: 3;
}

/* GPU-accelerated hover for cards */
.glass-card, .project-card { will-change: transform; transform: translateZ(0); }
.glass-card:hover, .project-card:hover { transform: translateY(-6px) scale(1.02); }

/* Animated Buttons */
.btn-animated {
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: color 0.3s;
}

.btn-animated::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  background: linear-gradient(90deg, #38bdf8 0%, #14b8a6 100%);
  opacity: 0.18;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.4s cubic-bezier(.4,0,.2,1), height 0.4s cubic-bezier(.4,0,.2,1);
  z-index: -1;
}

.btn-animated:hover::before {
  width: 250%;
  height: 600%;
}

.btn-animated:active {
  transform: scale(0.97);
}
