/* CSS Reset & Variables */
:root {
  --bg-gradient: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  --card-bg: rgba(30, 41, 59, 0.7);
  --card-border: rgba(255, 255, 255, 0.1);
  --card-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --primary: #38bdf8;
  --primary-hover: #0ea5e9;
  --accent-bg: rgba(56, 189, 248, 0.12);
  --item-bg: rgba(51, 65, 85, 0.5);
  --item-border: rgba(255, 255, 255, 0.08);
  --item-hover: rgba(51, 65, 85, 0.85);
  --radius-lg: 24px;
  --radius-md: 14px;
  --radius-sm: 8px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
  min-height: 100vh;
  background: var(--bg-gradient);
  color: var(--text-main);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 24px 16px;
  -webkit-font-smoothing: antialiased;
}

.card-container {
  width: 100%;
  max-width: 480px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Header */
.profile-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.avatar-wrap {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, var(--primary), #818cf8);
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.25);
  position: relative;
}

.profile-pic {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #1e293b;
  display: block;
}

.name {
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

.tagline {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Quick Actions */
.quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1.3fr;
  gap: 10px;
}

.action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--item-bg);
  border: 1px solid var(--item-border);
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 12px 10px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
}

.action-btn:hover {
  background: var(--item-hover);
  transform: translateY(-1px);
}

.action-btn.primary {
  background: var(--primary);
  color: #0f172a;
  border-color: transparent;
}

.action-btn.primary:hover {
  background: var(--primary-hover);
}

.icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Sections */
.section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.section-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 700;
}

/* Contact Details */
.contact-card {
  background: var(--item-bg);
  border: 1px solid var(--item-border);
  border-radius: var(--radius-md);
  padding: 6px 14px;
}

.contact-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 0.92rem;
}

.contact-row:not(:last-child) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-row .label {
  color: var(--text-muted);
}

.contact-row .value {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  word-break: break-all;
}

.contact-row .value:hover {
  text-decoration: underline;
}

/* Projects */
.projects-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.project-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--item-bg);
  border: 1px solid var(--item-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

.project-item:hover {
  background: var(--item-hover);
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-2px);
}

.project-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.project-title {
  font-weight: 600;
  font-size: 0.98rem;
  color: #fff;
}

.project-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.project-arrow {
  color: var(--primary);
  font-size: 1.2rem;
  margin-left: 10px;
}

/* Social Links */
.social-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.social-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--item-bg);
  border: 1px solid var(--item-border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  text-decoration: none;
  color: var(--text-main);
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.social-item:hover {
  background: var(--item-hover);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.social-icon {
  width: 20px;
  height: 20px;
}

/* Footer */
.footer {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #0284c7;
  color: white;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
  transition: transform 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
}

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

@media (max-width: 420px) {
  .quick-actions {
    grid-template-columns: 1fr 1fr;
  }
  .quick-actions .primary {
    grid-column: span 2;
  }
  .social-links {
    grid-template-columns: 1fr;
  }
}

