/* General Body and Font Styles */
body {
  font-family: "Inter", sans-serif;
  background-color: #f8fafc;
  color: #334155;
  margin: 0;
  padding: 2rem;
}

/* Container for the resume content */
.container {
  max-width: 8.5in;
  min-height: 11in;
  margin: auto;
  background-color: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 3rem;
  border-radius: 8px;
}

/* Header and Contact Info */
.header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.main-name {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
}

.job-title {
  font-size: 1.25rem;
  color: #475569;
  margin-top: 0.5rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  color: #64748b;
  font-size: 0.875rem;
}

.contact-info a {
  color: #4f46e5;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-info a:hover {
  color: #312e81;
}

.contact-info .icon {
  margin-right: 0.25rem;
}

/* Section Styling */
.section {
  margin-bottom: 2rem;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.summary-text {
  line-height: 1.6;
  color: #475569;
}

/* Skills Section */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  position: relative;
  padding: 1rem;
  margin: -1rem; /* Counteracts padding */
  border-radius: 0.75rem;
  transition: background-color 0.3s ease;
}

.skills-grid::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  border-radius: 0.75rem;
  background: radial-gradient(
    400px circle at var(--x, 0px) var(--y, 0px),
    rgba(79, 70, 229, 0.2),
    transparent 80%
  );
  opacity: 0;
  transition: opacity 0.2s ease-out;
  pointer-events: none;
}

.skills-grid:hover::before {
  opacity: 1;
}

.skill-category-title {
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.5rem;
}

.skills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tag {
  background-color: #e2e8f0;
  color: #334155;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease-in-out;
  cursor: default;
}

.skill-tag:hover {
  transform: translateY(-3px);
  background-color: #4f46e5;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(79, 70, 229, 0.3);
}

/* Projects Section */
.project-card {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border-color: #4f46e5;
}

.project-title {
  font-weight: 700;
  font-size: 1.125rem;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.project-manager {
  color: #475569;
  margin-bottom: 1rem;
  font-style: italic;
  font-size: 0.875rem;
}

.project-details {
  list-style-position: inside;
  list-style-type: disc;
  color: #475569;
  margin-bottom: 1rem;
  padding-left: 0;
}

.project-details li {
  margin-bottom: 0.25rem;
}

/* Experience & Education Section */
.experience-item {
  margin-bottom: 1.5rem;
}

.experience-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.experience-title {
  font-weight: 700;
  font-size: 1.125rem;
  color: #1e293b;
}

.experience-date {
  font-size: 0.875rem;
  color: #64748b;
}

.experience-details,
.education-list {
  list-style-position: inside;
  list-style-type: disc;
  color: #475569;
  margin-top: 0.5rem;
  padding-left: 0;
}

.experience-details li,
.education-list li {
  margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (min-width: 768px) {
  .contact-info {
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
  }
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .skills-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
