/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Corporate color palette */
  --primary-color: #4a4a4a;
  --secondary-color: #6a6a6a;
  --accent-color: #2980b9;
  --success-color: #27ae60;
  --warning-color: #f39c12;
  --danger-color: #e74c3c;

  /* Professional neutral tones */
  --text-primary: #2c3e50;
  --text-secondary: #5d6d7e;
  --text-light: #85929e;
  --background-primary: #ffffff;
  --background-secondary: #f8f9fb;
  --background-accent: #ecf0f1;
  --background-dark: #34495e;

  /* Social media colors */
  --instagram-color: #E1306C;
  --linkedin-color: #0077B5;
  --whatsapp-color: #25D366;

  /* Shadows */
  --shadow-subtle: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.12);
  --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.15);

  /* Border radius */
  --border-radius-sm: 6px;
  --border-radius-md: 8px;
  --border-radius-lg: 12px;
  --border-radius-xl: 16px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-medium: 0.25s ease;
  --transition-slow: 0.4s ease;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  min-height: 100vh;
  color: var(--text-primary);
  line-height: 1.6;
  font-weight: 400;
}

.container {
  max-width: 480px;
  margin: 0 auto;
  padding: 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Profile Header */
.profile-header {
  text-align: center;
  margin-bottom: 32px;
  padding: 40px 24px;
  background: var(--background-primary);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-light);
  border: 1px solid rgba(0, 0, 0, 0.06);
  position: relative;
}

.profile-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.profile-image {
  margin-bottom: 20px;
}

.logo {
  width: 100px;
  height: 100px;
  border-radius: var(--border-radius-md);
  object-fit: contain;
  background: var(--background-secondary);
  padding: 8px;
  border: 2px solid var(--background-accent);
  box-shadow: var(--shadow-subtle);
  transition: transform var(--transition-medium);
}

.logo:hover {
  transform: scale(1.05);
}

.profile-name {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 8px;
}

.profile-bio {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.4;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

/* Social Icons */
.social-icons {
  display: flex;
  justify-content: center;
  gap: 18px;
}

.social-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: white;
  transition: all var(--transition-medium);
  box-shadow: var(--shadow-light);
}

.social-icon:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
}

.social-icon.instagram {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-icon.linkedin {
  background: var(--linkedin-color);
}

.social-icon.whatsapp {
  background: var(--whatsapp-color);
}

/* Links Container */
.links-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

.link-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  background: var(--background-primary);
  border-radius: var(--border-radius-md);
  text-decoration: none;
  color: var(--text-primary);
  box-shadow: var(--shadow-subtle);
  transition: all var(--transition-medium);
  border: 1px solid rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
}

.link-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left var(--transition-slow);
}

.link-button:hover::before {
  left: 100%;
}

.link-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-light);
  border-color: var(--accent-color);
}

.link-content {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.link-icon {
  width: 44px;
  height: 44px;
  background: var(--background-secondary);
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--primary-color);
}

.link-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.link-title {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.link-subtitle {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Arrow */
.link-arrow {
  color: var(--text-light);
  font-size: 0.9rem;
  transition: all var(--transition-medium);
}

.link-button:hover .link-arrow {
  color: var(--accent-color);
  transform: translateX(3px);
}

/* Primary button */
.link-button.primary {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  border: 1px solid var(--primary-color);
}

.link-button.primary .link-title,
.link-button.primary .link-subtitle {
  color: white;
}

.link-button.primary .link-icon {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.link-button.primary .link-arrow {
  color: rgba(255, 255, 255, 0.8);
}

/* Specific buttons */
.link-button.whatsapp-button .link-icon {
  background: var(--whatsapp-color);
  color: white;
}

.link-button.instagram-button .link-icon {
  background: var(--instagram-color);
  color: white;
}

.link-button.linkedin-button .link-icon {
  background: var(--linkedin-color);
  color: white;
}

/* Phone button */
.link-button:has(.fa-phone) .link-icon {
  background: #16a085;
  color: white;
}

/* Email button */
.link-button:has(.fa-envelope) .link-icon {
  background: #e67e22;
  color: white;
}

/* Footer */
.footer {
  text-align: center;
  padding: 16px;
  color: var(--text-secondary);
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.8);
  border-radius: var(--border-radius-md);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.footer-subtitle {
  margin-top: 4px;
  font-size: 0.7rem;
  opacity: 0.7;
}

/* Responsive */
@media (min-width: 768px) {
  .container {
    max-width: 520px;
    padding: 32px;
  }
  .logo { width: 110px; height: 110px; }
  .profile-name { font-size: 2rem; }
  .profile-bio { font-size: 1rem; max-width: 360px; }
  .social-icon { width: 44px; height: 44px; font-size: 1.2rem; }
  .link-button { padding: 20px 24px; }
}

@media (max-width: 480px) {
  .container { padding: 16px; }
  .logo { width: 90px; height: 90px; }
  .profile-name { font-size: 1.6rem; }
  .profile-bio { font-size: 0.85rem; }
  .social-icon { width: 36px; height: 36px; font-size: 1rem; }
  .link-button { padding: 16px 18px; }
}

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

.profile-header {
  animation: fadeInUp 0.5s ease-out;
}

.link-button {
  animation: fadeInUp 0.4s ease-out;
  animation-fill-mode: both;
}

.link-button:nth-child(1) { animation-delay: 0.05s; }
.link-button:nth-child(2) { animation-delay: 0.1s; }
.link-button:nth-child(3) { animation-delay: 0.15s; }
.link-button:nth-child(4) { animation-delay: 0.2s; }
.link-button:nth-child(5) { animation-delay: 0.25s; }
.link-button:nth-child(6) { animation-delay: 0.3s; }

/* Accessibility focus */
.link-button:focus,
.social-icon:focus {
  outline: 3px solid var(--accent-color);
  outline-offset: 2px;
}
