/* style.css */
:root {
  /* Default Theme Variables (will be overridden by config.js) */
  --bg-main: #11b9ba;
  --bg-gradient: linear-gradient(135deg, #11b9ba 0%, #0d8a8b 100%);
  --card-bg: rgba(255, 255, 255, 0.15);
  --card-border: rgba(255, 255, 255, 0.3);
  --text-primary: #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.8);
  --highlight-bg: #222222;
  --highlight-text: #FFFFFF;
  --hover-transform: translateY(-5px) scale(1.02);
}

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

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-gradient);
  background-color: var(--bg-main);
  background-attachment: fixed;
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 3rem 1.5rem;
  /* Smooth color transitions if theme changes */
  transition: background 0.5s ease-in-out; 
}

#app {
  width: 100%;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  /* Entry animation */
  animation: fadeIn 0.8s ease-out forwards;
}

/* ========================================= */
/* PROFILE SECTION                           */
/* ========================================= */
.profile-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--text-primary);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.avatar:hover {
  transform: scale(1.05) rotate(5deg);
}

.profile-name {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.profile-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.badge {
  background: var(--highlight-bg);
  color: var(--highlight-text);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.profile-bio {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 400px;
  line-height: 1.5;
}

/* ========================================= */
/* SOCIAL ICONS                              */
/* ========================================= */
.social-icons {
  display: flex;
  gap: 1.2rem;
  margin-bottom: 1rem;
}

.social-icon {
  color: var(--text-primary);
  font-size: 1.5rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-decoration: none;
}

.social-icon:hover {
  transform: translateY(-5px);
  background: var(--text-primary);
  color: var(--highlight-bg);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* ========================================= */
/* LINK CARDS                                */
/* ========================================= */
.links-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.link-card {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  padding: 1.2rem 2rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1.1rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  /* Optional: keeps perspective for VanillaTilt */
  transform-style: preserve-3d; 
}

.link-card i {
  position: absolute;
  left: 1.5rem;
  font-size: 1.3rem;
  /* Lift icons visually when tilted */
  transform: translateZ(20px); 
}

.link-card span {
  /* Lift text visually when tilted */
  transform: translateZ(20px); 
}

.link-card.highlight {
  background: var(--highlight-bg);
  color: var(--highlight-text);
  border: 1px solid transparent;
}

.link-card:hover {
  transform: var(--hover-transform);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.link-card.highlight:hover {
  background: var(--text-primary);
  color: var(--highlight-bg); /* Inverse on hover */
}

/* ========================================= */
/* ANIMATIONS                                */
/* ========================================= */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Add staggered animation to links */
.links-section .link-card:nth-child(1) { animation: fadeIn 0.5s ease-out 0.1s both; }
.links-section .link-card:nth-child(2) { animation: fadeIn 0.5s ease-out 0.2s both; }
.links-section .link-card:nth-child(3) { animation: fadeIn 0.5s ease-out 0.3s both; }
.links-section .link-card:nth-child(4) { animation: fadeIn 0.5s ease-out 0.4s both; }
.links-section .link-card:nth-child(5) { animation: fadeIn 0.5s ease-out 0.5s both; }
.links-section .link-card:nth-child(n+6) { animation: fadeIn 0.5s ease-out 0.6s both; }


/* ========================================= */
/* FOOTER                                    */
/* ========================================= */
.footer {
  margin-top: 3rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
}

.footer a:hover {
  text-decoration: underline;
}
