/* Contact and social container */
.contact-social-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  margin-top: 30px; /* Half grid */
  height: 60px; /* Match grid height */
  background-color: var(--subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0 15px; /* Quarter grid padding */
}

/* Contact info section */
.contact-info {
  display: flex;
  align-items: center;
  height: 100%;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 8px; /* Compact spacing */
  height: 40px; /* Smaller height for compact layout */
  padding: 0;
  box-sizing: border-box;
  white-space: nowrap;
}

.info-separator {
  width: 1px;
  height: 24px;
  background-color: var(--border);
  margin: 0 15px; /* Quarter grid spacing */
}

.info-item a,
.info-item span {
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text);
  text-decoration: none;
}

.info-item a:hover {
  text-decoration: underline;
  color: var(--link);
}

.icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px; /* Smaller size for better alignment */
  height: 30px;
  border-radius: var(--radius-md);
  background-color: var(--background);
  border: 1px solid var(--border);
  flex-shrink: 0;
}

/* Social links inline */
.social-links-inline {
  display: flex;
  align-items: center;
  gap: 8px;
}

.social-icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.2s ease;
}

.social-icon-link:hover .icon-wrapper {
  background-color: var(--border);
  color: var(--text);
  transform: translateY(-2px);
}

/* Media queries for smaller screens */
@media (max-width: 768px) {
  .contact-social-container {
    flex-direction: column;
    height: auto;
    padding: 15px;
    gap: 15px;
  }
  
  .contact-info {
    flex-direction: column;
    gap: 15px;
    justify-content: center;
    width: 100%;
  }
  
  .info-separator {
    display: none;
  }
  
  .info-item {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    height: auto;
    gap: 10px;
    padding: 5px 0;
  }
  
  .social-links-inline {
    justify-content: center;
    width: 100%;
    gap: 15px;
  }
  
  .hero-top-row {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  
  .hero-content {
    align-items: center;
  }
}

/* Specific styling for each info item in horizontal layout */
.info-location {
  flex: 0 0 auto;
  min-width: 180px;
}

.info-email {
  flex: 1 1 auto;
  min-width: 200px;
}

.info-phone {
  flex: 0 0 auto;
  min-width: 140px;
}

/* Override icon-wrapper size for contact items */
.hero-contact-info .icon-wrapper {
  width: 30px;
  height: 30px;
}

.hero-contact-info .icon-wrapper svg {
  width: 15px;
  height: 15px;
}

/* Align profile pic perfectly with grid */
.profile-avatar {
  display: grid;
  place-items: center;
  width: 120px;
  height: 120px;
  margin: 0;
  padding: 0;
}

.profile-pic {
  grid-area: 1/1;
  z-index: 1;
}

/* Grid alignment helper for profile pic */
.profile-avatar::before {
  content: '';
  grid-area: 1/1;
  width: 120px;
  height: 120px;
  border: 1px dashed rgba(180, 180, 190, 0.2);
  border-radius: 50%;
  z-index: 0;
}

/* Contact form styling */
#contact-form-container {
  width: 100%;
  max-width: 500px;
  margin: 2rem auto;
  background-color: var(--subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.form-actions {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}
