/* Custom CSS Variables */
:root {
  --theme-50: #E8FAFF;
  --theme-100: #BEEDFC;
  --theme-200: #94DDFA;
  --theme-300: #6CCBF7;
  --theme-400: #44B7F5;
  --theme-500: #1DA1F2;
  --theme-600: #1482D1;
  --theme-700: #0D66B0;
  --theme-800: #074D8F;
  --theme-900: #03366E;
  --theme-950: #00224D;
  --heading-font: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  --body-font: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
}

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

html {
  background: linear-gradient(135deg, var(--theme-900) 0%, #1a1a1a 100%);
  min-height: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--body-font);
  line-height: 1.6;
  color: #333;
  background: linear-gradient(135deg, var(--theme-900) 0%, #1a1a1a 100%);
  min-height: 100vh;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

/* Main container */
.main-container {
  background: linear-gradient(135deg, var(--theme-900) 0%, #1a1a1a 100%);
  min-height: 100vh;
  min-height: 100dvh; /* Dynamic viewport height for mobile */
  padding: 2rem 1rem;
  width: 100%;
  overflow-x: hidden;
}

/* Profile card */
.profile-card {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.5rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2rem;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

/* Background decoration */
.profile-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(128, 202, 255, 0.1), transparent);
  pointer-events: none;
  z-index: -1;
}

/* Profile image container */
.profile-image-container {
  width: 100%;
  max-width: 300px;
  flex-shrink: 0;
}

/* Profile image */
.profile-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 1rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
  display: block;
}

/* Content section */
.profile-content {
  flex: 1;
  color: white;
}

.profile-title {
  font-family: var(--heading-font);
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: -0.025em;
}

.profile-description {
  font-size: 1.25rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2.5rem;
}

/* CTA Button */
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--theme-400);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

.cta-button:hover {
  color: var(--theme-300);
}

.cta-button:hover .arrow-icon {
  transform: translateX(0.25rem);
}

.arrow-icon {
  width: 1rem;
  height: 1rem;
  transition: transform 0.3s ease;
  fill: currentColor;
}

/* Background gradient decoration */
.bg-decoration {
  position: fixed;
  top: -4rem;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  max-width: 1400px;
  height: 47rem;
  background: linear-gradient(to right, #80caff, #4f46e5);
  opacity: 0.25;
  filter: blur(64px);
  z-index: -10;
  overflow: hidden;
  clip-path: polygon(73.6% 51.7%, 91.7% 11.8%, 100% 46.4%, 97.4% 82.2%, 92.5% 84.9%, 75.7% 64%, 55.3% 47.5%, 46.5% 49.4%, 45% 62.9%, 50.3% 87.2%, 21.3% 64.1%, 0.1% 100%, 5.4% 51.1%, 21.4% 63.9%, 58.9% 0.2%, 73.6% 51.7%);
}

/* Mobile-first improvements */
@media (max-width: 767px) {
  .bg-decoration {
    width: 100vw;
    max-width: 100vw;
    left: 0;
    transform: none;
    height: 100vh;
    top: 0;
  }
  
  .main-container {
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    min-height: 100dvh;
    position: relative;
    overflow: hidden;
  }
  
  .profile-card {
    margin: 0;
    padding: 2rem 1.5rem;
    border-radius: 1rem;
    width: 100%;
    max-width: 400px;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .profile-image-container {
    max-width: 200px;
    margin-bottom: 1rem;
  }
  
  .profile-content {
    width: 100%;
  }
  
  .profile-title {
    font-size: 1.75rem;
    margin-bottom: 1rem;
  }
  
  .profile-description {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .profile-actions {
    width: 100%;
    display: flex;
    justify-content: center;
  }
}

/* Responsive design */
@media (min-width: 768px) {
  .main-container {
    display: block;
    padding: 4rem 1rem;
  }
  
  .profile-card {
    flex-direction: row;
    align-items: center;
    text-align: left;
    padding: 3rem;
    gap: 3rem;
  }
  
  .profile-image-container {
    max-width: 350px;
  }
  
  .profile-content {
    flex: 1;
  }
  
  .profile-title {
    font-size: 3rem;
  }
  
  .profile-actions {
    width: auto;
    display: block;
  }
}

@media (min-width: 1024px) {
  .main-container {
    padding: 5rem 2rem;
  }
  
  .profile-card {
    gap: 5rem;
    padding: 5rem;
  }
  
  .profile-title {
    font-size: 3.75rem;
  }
}