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

:root {
  --primary-color: #2563eb;
  --secondary-color: #6366f1;
  --accent-color: #8b5cf6;
  --text-color: #f8fafc;
  --text-muted: #94a3b8;
  --bg-color: #0f172a;
  --card-bg: rgba(30, 41, 59, 0.7);
  --card-border: rgba(148, 163, 184, 0.1);
  --shadow-color: rgba(0, 0, 0, 0.3);
  --animation-timing: cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Main container */
.container {
  width: 100%;
  max-width: 1200px;
  padding: 2rem;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

/* Card */
.card {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 10px 30px var(--shadow-color);
  border: 1px solid var(--card-border);
  text-align: center;
  transition: transform 0.3s var(--animation-timing), box-shadow 0.3s var(--animation-timing);
  overflow: hidden;
}

.card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(to bottom right, var(--primary-color), var(--accent-color));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Background shapes */
.bg-shapes {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.2;
  transition: transform 0.5s var(--animation-timing);
}

.shape-1 {
  top: 15%;
  left: 20%;
  width: 300px;
  height: 300px;
  background: var(--primary-color);
}

.shape-2 {
  bottom: 10%;
  right: 20%;
  width: 400px;
  height: 400px;
  background: var(--secondary-color);
}

.shape-3 {
  top: 50%;
  left: 50%;
  width: 250px;
  height: 250px;
  background: var(--accent-color);
  transform: translate(-50%, -50%);
}

.shape-4 {
  top: 70%;
  left: 30%;
  width: 200px;
  height: 200px;
  background: var(--primary-color);
  opacity: 0.15;
}

/* Profile section */
.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
}

.profile-image {
  position: relative;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--animation-timing), transform 0.5s var(--animation-timing);
}

.profile-image.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.profile-image img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s var(--animation-timing);
}

.profile-image::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(to right, var(--primary-color), var(--accent-color));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.8;
}

.profile-image img:hover {
  transform: scale(1.05);
}

h1 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.5s var(--animation-timing), transform 0.5s var(--animation-timing);
}

h1.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.tagline {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.5s var(--animation-timing), transform 0.5s var(--animation-timing);
}

.tagline.animate-in {
  opacity: 1;
  transform: translateY(0);
}

p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Social links */
.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-color);
  font-size: 1rem;
  transition: all 0.3s var(--animation-timing);
  position: relative;
  opacity: 0;
  transform: translateY(20px);
}

.social-link.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.social-link i {
  position: relative;
  z-index: 2;
  transition: transform 0.3s var(--animation-timing);
}

.social-link::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
  opacity: 0;
  transition: opacity 0.3s var(--animation-timing);
  z-index: 1;
}

.social-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.social-link:hover::before {
  opacity: 1;
}

.social-link:hover i {
  transform: scale(1.1);
}

/* Footer */
footer {
  margin-top: 2rem;
  text-align: center;
  width: 100%;
}

footer p {
  font-size: 0.8rem;
  opacity: 0.5;
  transition: opacity 0.3s var(--animation-timing);
}

footer p:hover {
  opacity: 0.8;
}

/* Responsive styles */
@media (max-width: 768px) {
  .container {
    padding: 1.5rem;
  }
  
  .card {
    padding: 2rem 1.5rem;
    max-width: 320px;
  }
  
  h1 {
    font-size: 1.75rem;
  }
  
  .profile-image img {
    width: 100px;
    height: 100px;
  }
  
  .social-links {
    gap: 0.75rem;
  }
  
  .social-link {
    width: 38px;
    height: 38px;
    font-size: 0.9rem;
  }
  
  /* Ensure icons are visible on mobile */
  .social-link i {
    color: var(--text-color) !important;
    /* Force hardware acceleration for mobile */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    /* Prevent animation issues */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }
  
  /* Smaller background shapes for mobile */
  .shape-1, .shape-2 {
    width: 200px;
    height: 200px;
  }
  
  .shape-3, .shape-4 {
    width: 150px;
    height: 150px;
  }
}

/* Mobile fixes for icons */
@media (max-width: 768px) {
  .fa-xmark {
    font-family: 'Font Awesome 6 Free' !important;
    font-weight: 900;
  }
  
  .fab {
    font-family: 'Font Awesome 6 Brands' !important;
    font-weight: 400;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .card, .social-link, .profile-image img {
    transition: none !important;
  }
  
  .shape {
    display: none;
  }
}

/* Dark mode optimization */
@media (prefers-color-scheme: dark) {
  :root {
    --shadow-color: rgba(0, 0, 0, 0.5);
  }
}

/* Light mode support */
@media (prefers-color-scheme: light) {
  :root {
    --bg-color: #f1f5f9;
    --card-bg: rgba(255, 255, 255, 0.7);
    --text-color: #0f172a;
    --text-muted: #475569;
    --card-border: rgba(203, 213, 225, 0.3);
    --shadow-color: rgba(0, 0, 0, 0.1);
  }
  
  .shape {
    opacity: 0.15;
  }
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--primary-color), var(--secondary-color));
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(var(--secondary-color), var(--accent-color));
}
