/* Critical CSS - Above the fold styles for fastest rendering */

/* Base resets and typography */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #222222;
  background-color: #ffffff;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Navigation critical styles */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
  position: relative;
}

.nav-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a202c;
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-links a {
  color: #4a5568;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 20px;
  transition: all 0.3s ease;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: #667eea;
  background-color: rgba(102, 126, 234, 0.1);
}

/* Hero section critical styles */
.main-container {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 20px 50px;
  gap: 40px;
  min-height: 100vh;
}

.left-panel,
.right-panel {
  flex: 1;
}

.profile-card {
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.avatar {
  width: 150px;
  height: 150px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.typing-animation {
  font-size: 2.5rem;
  font-weight: 800;
  color: #1a202c;
  text-align: center;
  margin-bottom: 10px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.subtitle {
  font-size: 1.2rem;
  color: #718096;
  text-align: center;
  margin-bottom: 20px;
  font-weight: 500;
}

.signature {
  font-size: 1.1rem;
  color: #1976d2;
  text-align: center;
  font-weight: 600;
  font-style: italic;
}

/* Dark mode critical styles */
body.dark-mode {
  background-color: #1a202c;
  color: #e2e8f0;
}

body.dark-mode .navbar {
  background: rgba(26, 32, 44, 0.95);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .nav-brand,
body.dark-mode .typing-animation {
  color: #e2e8f0;
}

body.dark-mode .nav-links a {
  color: #a0aec0;
}

body.dark-mode .profile-card {
  background: linear-gradient(145deg, #2d3748 0%, #1a202c 100%);
  border-color: rgba(255, 255, 255, 0.1);
}


/* Mobile critical styles */
@media (max-width: 768px) {
  .nav-container {
    padding: 0 15px;
    height: 60px;
  }


  .main-container {
    flex-direction: column;
    padding: 80px 15px 30px;
    gap: 30px;
  }

  .profile-card {
    padding: 30px 20px;
  }

  .typing-animation {
    font-size: 2rem;
  }

  .avatar {
    width: 120px;
    height: 120px;
  }
}

/* Loading states */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}