:root {
  --primary-blue: #0a66c2;
  --dark-blue: #004182;
  --light-bg: #f3f2ef;
  --white: #ffffff;
  --text-dark: #1d1d1d;
  --text-muted: #666666;
  --border-color: #e5e5e5;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--light-bg);
  color: var(--text-dark);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  background-color: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

/* Update logo styling to include text and image */
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  color: var(--text-dark);
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
}

.logo-img {
  width: 32px;
  height: 32px;
  display: block;
}

.nav {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-blue);
}

.header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* Buttons */
.btn-primary {
  background-color: var(--primary-blue);
  color: var(--white);
  border: none;
  padding: 10px 24px;
  border-radius: 24px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s;
}

.btn-primary:hover {
  background-color: var(--dark-blue);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-blue);
  border: 1px solid var(--primary-blue);
  padding: 10px 24px;
  border-radius: 24px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
}

.btn-secondary:hover {
  background-color: rgba(10, 102, 194, 0.1);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  padding: 8px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-outline:hover {
  border-color: var(--primary-blue);
  color: var(--primary-blue);
}

/* Profile Hero */
.profile-hero {
  background-color: var(--white);
  margin-bottom: 24px;
}

.profile-banner {
  height: 200px;
  background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
}

.profile-content {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: start;
  padding: 24px 0;
  position: relative;
}

.profile-photo {
  width: 150px;
  height: 150px;
  margin-top: -100px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--white);
  box-shadow: var(--shadow-lg);
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-info h1 {
  font-size: 36px;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.profile-info h2 {
  font-size: 20px;
  color: var(--text-muted);
  font-weight: 400;
  margin-bottom: 8px;
}

.location {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 12px;
}

.bio {
  color: var(--text-muted);
  margin-bottom: 16px;
}

.profile-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.profile-actions .btn-primary,
.profile-actions .btn-secondary {
  padding: 8px 24px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-stats {
  display: flex;
  gap: 32px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.stat strong {
  font-size: 20px;
  color: var(--text-dark);
}

.stat span {
  font-size: 12px;
  color: var(--text-muted);
}

/* Sections */
section {
  margin-bottom: 24px;
}

.section-card {
  background-color: var(--white);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.section-card h3 {
  font-size: 24px;
  margin-bottom: 20px;
  color: var(--text-dark);
  border-bottom: 2px solid var(--light-bg);
  padding-bottom: 12px;
}

.section-card p {
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.8;
}

/* Experience & Education */
.experience-item,
.education-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
}

.experience-item:last-child,
.education-item:last-child {
  border-bottom: none;
}

.exp-icon,
.edu-icon {
  width: 48px;
  height: 48px;
  background-color: var(--light-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-blue);
  flex-shrink: 0;
}

.exp-content h4,
.edu-content h4 {
  font-size: 16px;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.company,
.school {
  color: var(--primary-blue);
  font-weight: 500;
  margin-bottom: 8px;
}

.duration {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge {
  background-color: var(--light-bg);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  color: var(--text-muted);
}

.description {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.8;
}

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}

.skill-tag {
  background-color: var(--light-bg);
  padding: 12px 16px;
  border-radius: 20px;
  text-align: center;
  color: var(--text-dark);
  cursor: pointer;
  transition: all 0.3s;
  border: 1px solid transparent;
}

.skill-tag:hover {
  border-color: var(--primary-blue);
  background-color: rgba(10, 102, 194, 0.1);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-item i {
  font-size: 24px;
  color: var(--primary-blue);
  margin-top: 4px;
  width: 30px;
  text-align: center;
}

.contact-item h4 {
  font-size: 16px;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.contact-item a {
  color: var(--primary-blue);
  text-decoration: none;
}

.contact-item a:hover {
  text-decoration: underline;
}

/* Social Links */
.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  background-color: var(--light-bg);
  border-radius: 8px;
  color: var(--primary-blue);
  text-decoration: none;
  transition: all 0.3s;
  font-weight: 500;
}

.social-link:hover {
  background-color: var(--primary-blue);
  color: var(--white);
}

/* Footer */
.footer {
  background-color: var(--text-dark);
  color: var(--white);
  padding: 32px 0;
  text-align: center;
  margin-top: 48px;
}

.footer p {
  margin: 8px 0;
  font-size: 14px;
}

/* Add modal and auth form styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s ease-in;
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  background-color: var(--white);
  padding: 40px;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  max-width: 400px;
  width: 90%;
  position: relative;
  animation: slideUp 0.3s ease-out;
  max-height: 90vh;
  overflow-y: auto;
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-close {
  position: absolute;
  right: 20px;
  top: 20px;
  background: none;
  border: none;
  font-size: 28px;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.3s;
}

.modal-close:hover {
  color: var(--text-dark);
}

.auth-form {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(243, 242, 239, 0.98));
}

.auth-header {
  text-align: center;
  margin-bottom: 32px;
}

.auth-header h2 {
  font-size: 28px;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.auth-header p {
  color: var(--text-muted);
  font-size: 14px;
}

.form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-dark);
  font-size: 14px;
}

.form-group input {
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.3s;
  font-family: inherit;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(10, 102, 194, 0.1);
  background-color: rgba(10, 102, 194, 0.02);
}

.form-group input::placeholder {
  color: var(--text-muted);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.btn-full {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  margin-top: 8px;
  border-radius: 8px;
}

.form-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: var(--text-muted);
}

.link-btn {
  background: none;
  border: none;
  color: var(--primary-blue);
  cursor: pointer;
  text-decoration: underline;
  font-weight: 600;
  padding: 0;
  font-size: 14px;
  transition: color 0.3s;
}

.link-btn:hover {
  color: var(--dark-blue);
  text-decoration: none;
}

/* Enhanced mobile menu and navigation toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-dark);
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-toggle.active {
  color: var(--primary-blue);
}

.nav-mobile {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--white);
  border-top: 1px solid var(--border-color);
  box-shadow: var(--shadow);
  flex-direction: column;
  gap: 0;
  z-index: 99;
}

.nav-mobile.active {
  display: flex;
}

.nav-mobile .nav-link {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  display: block;
}

/* Improved mobile layout for profile section */
.profile-content {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: start;
  padding: 24px 0;
  position: relative;
}

/* Better touch targets for mobile buttons */
.btn-primary,
.btn-secondary,
.btn-outline {
  min-height: 44px;
  font-size: 16px;
}

/* Improved form layout for mobile */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Enhanced responsive breakpoints */
@media (max-width: 768px) {
  /* Hide desktop navigation */
  .nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
    order: -1;
  }

  .header-content {
    flex-wrap: nowrap;
    align-items: center;
  }

  .header-actions {
    margin-left: auto;
  }

  .header-actions .btn-secondary {
    display: none;
  }

  .profile-content {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .profile-photo {
    width: 100px;
    height: 100px;
    margin-top: -50px;
    margin-left: auto;
    margin-right: auto;
  }

  .profile-info {
    text-align: center;
  }

  .profile-info h1 {
    font-size: 24px;
  }

  .profile-info h2 {
    font-size: 16px;
  }

  .location,
  .bio {
    font-size: 14px;
  }

  .profile-actions {
    flex-direction: column;
    gap: 8px;
    justify-content: center;
  }

  .profile-actions .btn-primary,
  .profile-actions .btn-secondary {
    width: 100%;
  }

  .profile-stats {
    flex-direction: row;
    gap: 16px;
    justify-content: center;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .social-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-card {
    padding: 16px;
  }

  .section-card h3 {
    font-size: 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 12px;
  }

  .header-content {
    padding: 8px 0;
  }

  .logo {
    font-size: 18px;
  }

  .logo-img {
    width: 28px;
    height: 28px;
  }

  .header-actions {
    gap: 8px;
  }

  .header-actions .btn-primary {
    padding: 8px 16px;
    font-size: 14px;
  }

  .profile-banner {
    height: 120px;
  }

  .profile-photo {
    width: 80px;
    height: 80px;
    margin-top: -40px;
  }

  .profile-info h1 {
    font-size: 20px;
  }

  .profile-info h2 {
    font-size: 14px;
  }

  .profile-actions .btn-primary,
  .profile-actions .btn-secondary {
    padding: 10px 16px;
    font-size: 12px;
    min-height: auto;
  }

  .stat strong {
    font-size: 18px;
  }

  .stat span {
    font-size: 11px;
  }

  .section-card {
    padding: 12px;
    border-radius: 8px;
  }

  .section-card h3 {
    font-size: 16px;
    margin-bottom: 16px;
  }

  .experience-item,
  .education-item {
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 16px;
  }

  .exp-icon,
  .edu-icon {
    width: 40px;
    height: 40px;
  }

  .exp-content h4,
  .edu-content h4 {
    font-size: 14px;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .skill-tag {
    padding: 10px 12px;
    font-size: 12px;
  }

  .modal-content {
    padding: 24px 16px;
    width: 95%;
  }

  .auth-header h2 {
    font-size: 20px;
  }

  .auth-header p {
    font-size: 12px;
  }

  .form-group {
    margin-bottom: 16px;
  }

  .form-group input {
    padding: 12px 12px;
    font-size: 16px;
  }

  .btn-full {
    padding: 12px;
    font-size: 14px;
  }

  .contact-item {
    gap: 12px;
  }

  .contact-item i {
    font-size: 20px;
  }

  .contact-item h4 {
    font-size: 14px;
  }

  .social-link {
    padding: 10px 12px;
    font-size: 12px;
  }

  .footer p {
    font-size: 12px;
  }
}

@media (max-width: 320px) {
  .container {
    padding: 0 8px;
  }

  .profile-info h1 {
    font-size: 18px;
  }

  .profile-actions {
    gap: 6px;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .social-grid {
    grid-template-columns: 1fr;
  }
}
