@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --bg-color: #f8fafc; /* light background slate-50 */
  --bg-gradient: radial-gradient(circle at 50% -20%, #f1f5f9 0%, #e2e8f0 100%); /* slate-100 to slate-200 */
  --card-bg: rgba(255, 255, 255, 0.85); /* white glassmorphism */
  --card-border: rgba(15, 23, 42, 0.06); /* very soft dark border */
  --card-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.04);
  
  --text-primary: #0f172a; /* slate-900 */
  --text-secondary: #475569; /* slate-600 */
  --text-muted: #94a3b8; /* slate-400 */
  
  --primary-accent: #4f46e5; /* Indigo-600 */
  --secondary-accent: #7c3aed; /* Purple-600 */
  --accent-gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  
  --btn-bg: rgba(15, 23, 42, 0.02); /* very soft slate button tint */
  --btn-border: rgba(15, 23, 42, 0.06); /* very soft border */
  --btn-hover-bg: rgba(79, 70, 229, 0.04); /* light indigo tint */
  --btn-hover-border: rgba(79, 70, 229, 0.3);
  
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  background-image: var(--bg-gradient);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Background decorative blobs */
.blob {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  opacity: 0.06; /* lower opacity for light mode */
  pointer-events: none;
}

.blob-1 {
  background-color: var(--primary-accent);
  top: -10%;
  left: -10%;
}

.blob-2 {
  background-color: var(--secondary-accent);
  bottom: -10%;
  right: -10%;
}

/* Main Container Card */
.profile-card {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 40px 32px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--card-shadow);
  text-align: center;
  animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  transform: translateY(15px);
  position: relative;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Profile Photo */
.avatar-container {
  position: relative;
  width: 128px;
  height: 128px;
  margin: 0 auto 24px;
}

.avatar-ring {
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  background: var(--accent-gradient);
  opacity: 0.6;
  z-index: 1;
  animation: rotateRing 8s linear infinite;
}

@keyframes rotateRing {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.avatar {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #ffffff; /* crisp white border */
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.08); /* softer shadow */
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.profile-card:hover .avatar {
  transform: scale(1.03);
}

/* Typography */
h1 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 6px;
  background: linear-gradient(to right, #0f172a, #334155); /* dark slate gradient text */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 32px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Buttons and Action Links */
.links-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.action-row {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 8px;
}

.btn-link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-grow: 1;
  padding: 14px 20px;
  border-radius: 14px;
  background-color: var(--btn-bg);
  border: 1px solid var(--btn-border);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  position: relative;
  text-align: left;
}

.btn-link:hover {
  border-color: var(--btn-hover-border);
  background-color: var(--btn-hover-bg);
  box-shadow: 0 4px 20px rgba(79, 70, 229, 0.08);
  transform: translateY(-2px);
}

.btn-link:active {
  transform: translateY(0);
}

.btn-link svg {
  margin-right: 14px;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  stroke: var(--text-secondary);
  transition: stroke 0.3s ease;
}

.btn-link:hover svg {
  stroke: var(--primary-accent);
}

.btn-link .btn-text-container {
  display: flex;
  flex-direction: column;
}

.btn-link .btn-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: 2px;
  transition: color 0.3s ease;
}

.btn-link:hover .btn-label {
  color: var(--primary-accent);
}

.btn-link .btn-value {
  font-weight: 600;
}

/* Copy Button styles */
.btn-copy {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 52px;
  border-radius: 14px;
  background-color: var(--btn-bg);
  border: 1px solid var(--btn-border);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-copy:hover {
  border-color: var(--btn-hover-border);
  background-color: var(--btn-hover-bg);
  transform: translateY(-2px);
}

.btn-copy:active {
  transform: translateY(0);
}

.btn-copy svg {
  width: 18px;
  height: 18px;
  stroke: var(--text-secondary);
  transition: stroke 0.3s ease;
}

.btn-copy:hover svg {
  stroke: var(--primary-accent);
}

/* Primary/Accent Button (Save Contact & CV) */
.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 24px;
  border-radius: 14px;
  background: var(--accent-gradient);
  border: none;
  color: #ffffff;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.2);
  margin-top: 10px;
}

.btn-primary:hover {
  box-shadow: 0 12px 28px rgba(79, 70, 229, 0.35);
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary svg {
  margin-right: 10px;
  width: 20px;
  height: 20px;
  stroke: #ffffff;
  fill: none;
}

.divider {
  height: 1px;
  background-color: rgba(15, 23, 42, 0.08); /* soft dark line */
  margin: 28px 0 18px;
}

/* Toast Notification */
.toast-notification {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background-color: #10b981; /* Emerald/Green color */
  color: white;
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.25);
  z-index: 1000;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  align-items: center;
  gap: 8px;
}

.toast-notification.show {
  transform: translateX(-50%) translateY(0);
}

.toast-notification svg {
  width: 16px;
  height: 16px;
  stroke: white;
}

/* Custom CSS Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.1);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(15, 23, 42, 0.2);
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .profile-card {
    padding: 32px 20px;
    border-radius: 20px;
  }
  
  h1 {
    font-size: 1.5rem;
  }
}
