/* Connect Page Styles */
:root {
  /* Colors - Enhanced for better accessibility */
  --primary-color: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #3b82f6;
  --secondary-color: #7c3aed;
  --accent-color: #0891b2;
  --success-color: #059669;
  --warning-color: #d97706;
  --error-color: #dc2626;
  
  /* Neutral Colors */
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  
  /* Dark Mode Colors */
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-tertiary: #334155;
  --text-primary: #f8fafc;
  --text-secondary: #e2e8f0;
  --text-muted: #94a3b8;
  
  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  
  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  
  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  
  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-normal: 300ms ease-in-out;
  --transition-slow: 500ms ease-in-out;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Background Animation */
.bg-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.shape {
  position: absolute;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: var(--radius-full);
  opacity: 0.1;
  animation: float 6s ease-in-out infinite;
}

.shape-1 {
  width: 80px;
  height: 80px;
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.shape-2 {
  width: 120px;
  height: 120px;
  top: 20%;
  right: 10%;
  animation-delay: 1s;
}

.shape-3 {
  width: 60px;
  height: 60px;
  bottom: 30%;
  left: 15%;
  animation-delay: 2s;
}

.shape-4 {
  width: 100px;
  height: 100px;
  bottom: 20%;
  right: 20%;
  animation-delay: 3s;
}

.shape-5 {
  width: 90px;
  height: 90px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: 4s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

/* Connect Container */
.connect-container {
  max-width: 480px;
  margin: 0 auto;
  padding: var(--space-8) var(--space-4);
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* Header */
.connect-header {
  text-align: center;
  margin-bottom: var(--space-12);
  animation: fadeInUp 0.8s ease-out;
}

.profile-image {
  margin-bottom: var(--space-6);
}

.profile-image img {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-full);
  border: 4px solid var(--primary-color);
  object-fit: cover;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4);
  }
  50% {
    box-shadow: 0 0 0 20px rgba(37, 99, 235, 0);
  }
}

.profile-name {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  margin-bottom: var(--space-2);
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.profile-bio {
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
  font-weight: 500;
}

.profile-description {
  font-size: var(--font-size-base);
  color: var(--text-muted);
  max-width: 400px;
  margin: 0 auto;
}

/* Links Section */
.links-section {
  margin-bottom: var(--space-8);
}

.section-title {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
  text-align: center;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: var(--radius-full);
}

/* Connect Links */
.connect-link {
  display: flex;
  align-items: center;
  padding: var(--space-4) var(--space-5);
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  text-decoration: none;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  animation: slideIn 0.6s ease-out;
}

.connect-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

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

.connect-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-color);
  background: var(--bg-tertiary);
}

.connect-link.featured {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border: none;
  color: var(--white);
}

.connect-link.featured:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.3);
}

.link-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  margin-right: var(--space-4);
  font-size: var(--font-size-xl);
  flex-shrink: 0;
}

.connect-link.featured .link-icon {
  background: rgba(255, 255, 255, 0.2);
}

.link-icon.linkedin {
  color: #0077b5;
}

.link-icon.twitter {
  color: #1da1f2;
}

.link-icon.github {
  color: #333;
}

.link-icon.wordpress {
  color: #21759b;
}

.link-icon.email {
  background: linear-gradient(135deg, #ea4335, #fbbc05);
  color: white;
}

.link-content {
  flex: 1;
}

.link-title {
  display: block;
  font-weight: 600;
  font-size: var(--font-size-base);
  margin-bottom: var(--space-1);
}

.link-description {
  display: block;
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}

.connect-link.featured .link-description {
  color: rgba(255, 255, 255, 0.8);
}

.link-arrow {
  font-size: var(--font-size-lg);
  color: var(--text-muted);
  transition: transform var(--transition-fast);
}

.connect-link:hover .link-arrow {
  transform: translateX(4px);
}

/* Footer */
.connect-footer {
  text-align: center;
  margin-top: var(--space-16);
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.connect-footer p {
  color: var(--text-muted);
  margin-bottom: var(--space-4);
  font-size: var(--font-size-sm);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: var(--font-size-sm);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--primary-color);
}

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

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Staggered animation for links */
.connect-link:nth-child(1) { animation-delay: 0.1s; }
.connect-link:nth-child(2) { animation-delay: 0.2s; }
.connect-link:nth-child(3) { animation-delay: 0.3s; }
.connect-link:nth-child(4) { animation-delay: 0.4s; }
.connect-link:nth-child(5) { animation-delay: 0.5s; }
.connect-link:nth-child(6) { animation-delay: 0.6s; }
.connect-link:nth-child(7) { animation-delay: 0.7s; }
.connect-link:nth-child(8) { animation-delay: 0.8s; }

/* Responsive Design */
@media (max-width: 640px) {
  .connect-container {
    padding: var(--space-6) var(--space-3);
  }
  
  .profile-name {
    font-size: var(--font-size-2xl);
  }
  
  .profile-bio {
    font-size: var(--font-size-base);
  }
  
  .connect-link {
    padding: var(--space-3) var(--space-4);
  }
  
  .link-icon {
    width: 40px;
    height: 40px;
    margin-right: var(--space-3);
  }
  
  .footer-links {
    flex-direction: column;
    gap: var(--space-3);
  }
}

@media (max-width: 480px) {
  .profile-image img {
    width: 100px;
    height: 100px;
  }
  
  .section-title {
    font-size: var(--font-size-base);
  }
  
  .connect-link {
    padding: var(--space-3);
  }
}

/* Focus states for accessibility */
.connect-link:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Hover effects for touch devices */
@media (hover: none) {
  .connect-link:hover {
    transform: none;
  }
  
  .connect-link:active {
    transform: scale(0.98);
  }
}

/* Dark mode support (already optimized) */
@media (prefers-color-scheme: light) {
  :root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #64748b;
  }
  
  .connect-link {
    border-color: rgba(0, 0, 0, 0.1);
  }
  
  .link-icon.github {
    color: #24292e;
  }
}