/* Reset and base styles */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 2rem 1.5rem;
  background-color: #F7F9FC;
  color: #1C1C1E;
  min-height: 100vh;
  width: 100%;
}

/* Center content column with max width */
header,
main {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

/* Header styles */
header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #ddd;
}

/* Profile photo styling */
.profile-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}

/* Header content container for better layout control */
.header-content {
  flex: 1;
  display: flex;
  flex-direction: column; /* Stack info and actions vertically */
  align-items: flex-start; /* Align text to the left */
}

/* Header text container */
.header-info {
  margin-bottom: 0.8rem; /* Space between info and actions */
}

/* Name styling */
header h1 {
  margin: 0 0 0.3rem 0;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
}

/* Subtitle styling */
header p {
  margin: 0;
  font-size: 1.1rem;
  color: #444;
  font-weight: 500;
}

/* Buttons container */
.header-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

/* Resume button */
#resume-button,
.contact-button { /* Added .contact-button for consistent styling */
  background-color: #0078d7;
  color: white;
  padding: 0.55rem 1.1rem;
  text-decoration: none;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 1rem;
  transition: background-color 0.25s ease;
  white-space: nowrap;
}

#resume-button:hover,
#resume-button:focus,
.contact-button:hover,
.contact-button:focus {
  background-color: #005ea2;
  outline: none;
}

/* LinkedIn icon styling */
.linkedin-icon {
  width: 32px;
  height: 32px;
  filter: grayscale(0);
  transition: filter 0.25s ease;
  cursor: pointer;
}

.linkedin-icon:hover,
.linkedin-icon:focus {
  filter: grayscale(1);
  outline: none;
}

/* Panel styling */
.panel {
  padding: 1.8rem 0 2.4rem 0;
  border-bottom: 1px solid #ddd;
}

/* Section headings */
.panel h2 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: #222;
  font-weight: 700;
}

/* Skill lists */
.skill-list,
.skill-list-alt {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
}

.skill-list li,
.skill-list-alt li {
  background-color: #e1e7f0;
  color: #1c1c1e;
  padding: 0.4rem 0.9rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.95rem;
  user-select: none;
}

/* Experience section articles */
#experience article {
  margin-bottom: 2rem;
}

/* Job title styling */
.job-title {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
  color: #0078d7;
}

/* Company name styling (new class) */
.company-name {
  font-weight: 600; /* Slightly less bold than job title */
  font-size: 1rem;
  margin-bottom: 0.2rem; /* Small space below company name */
  color: #333; /* Darker than location/date for emphasis */
}

/* Company, location, and date styling */
.company-location-date {
  font-style: italic;
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 0.7rem;
}

/* Experience bullet points */
#experience ul {
  padding-left: 1.3rem;
  margin: 0;
  color: #333;
  font-size: 1rem;
  line-height: 1.5;
}

/* Google Forms embed styling */
.contact-form-embed {
  margin-top: 1.5rem;
  /* Optional: Center the iframe if it's narrower than the container */
  display: flex;
  justify-content: center;
}

.contact-form-embed iframe {
  max-width: 100%; /* Ensure it doesn't overflow on small screens */
  border: 1px solid #ddd; /* Optional: add a subtle border */
  border-radius: 8px; /* Optional: round corners */
}


/* Responsive tweaks */
@media (max-width: 600px) {
  header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .header-content {
    align-items: center; /* Center content when header is a column */
  }

  .header-info {
    margin-top: 1rem;
    margin-bottom: 1rem; /* Adjust spacing when stacked */
  }

  .header-actions {
    justify-content: center;
  }
}