/* Modern Typography and Color Palette */
:root {
  --primary: #2c3e50;
  --secondary: #4ca1af;
  --text-main: #2b2b2b;
  --text-muted: #6c757d;
  --bg-color: #f4f6f8;
  --card-bg: #ffffff;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
}

/* Master Container – now spans nearly the full width */
.resume-container {
  position: relative;
  width: 85vw;;      /* available width minus 15px on each side */
  max-width: 1600px;             /* optional cap for ultra‑wide screens */
  margin: 3rem auto;
  background: var(--card-bg);
  padding: 3.5rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);

  /* Flex layout: header on left, photo on right */
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 2.5rem;
}

/* Header Styling */
.resume-header {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 2.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(76, 161, 175, 0.25);

  flex: 3;                      /* text takes 3 parts, photo takes 1 */
  text-align: left;
  margin-bottom: 0;
}

.resume-header h1 {
  margin-bottom: 0.2rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: white;
  text-align: left;
}

.resume-header h3 {
  font-weight: 300;
  margin-top: 0;
  color: #e0f2f1;
  text-align: left;
}

/* Flexbox for clean contact info alignment */
.resume-header .contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;  /* left‑aligned on larger screens */
  gap: 1.5rem;
  margin-top: 1.2rem;
  font-size: 0.95rem;
}

.resume-header .contact a, 
.resume-header .contact span {
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: opacity 0.2s ease;
}

.resume-header .contact a:hover {
  opacity: 0.8;
}

.resume-header .contact i {
  margin-right: 0.5rem;
  font-size: 1.1rem;
}

/* Section Titles */
h2.section-title {
  border-bottom: 2px solid var(--secondary);
  padding-bottom: 0.5rem;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
  font-weight: 700;
  font-size: 1.5rem;
}

h2.section-title i {
  color: var(--secondary);
  margin-right: 0.4rem;
}

/* Experience and Education Blocks */
.experience-item, .project-item, .edu-item {
  margin-bottom: 2rem;
}

.item-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.item-title {
  font-weight: 700;
  color: var(--primary);
  font-size: 1.15rem;
  margin: 0;
}

.item-company {
  font-weight: 500;
  color: var(--secondary);
  margin-left: 0.4rem;
}

.item-date {
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Bullet Points */
ul {
  padding-left: 1.2rem;
  margin-top: 0.5rem;
}

ul li {
  margin-bottom: 0.4rem;
  color: var(--text-main);
}
/* Modern Pill-Style Skills */
.skill-category {
  margin-bottom: 1.2rem;
}

.skill-category strong {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  column-gap: 0.5rem; /* Horizontal spacing */
  row-gap: 0.9rem;    /* Vertical spacing to prevent overlap */
}

.skill-tag {
  display: inline-block; /* Forces the span to respect top/bottom padding and gaps */
  background-color: #f1f3f5;
  color: var(--primary);
  padding: 0.5rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid #e9ecef;
  transition: all 0.2s ease;
  line-height: 1.2; /* Ensures internal text doesn't stretch the bubble strangely */
}

.skill-tag:hover {
  background-color: var(--secondary);
  color: white;
  border-color: var(--secondary);
}

.profile-photo {
  flex: 0 0 auto;               /* don't grow or shrink */
  width: 300px;                 /* fixed width */
  height: 300px;                /* same as width → perfect square */
  margin-left: auto;
  border-radius: 20px;          /* rounds all corners */
  border: 6px solid var(--card-bg);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;            /* crops the image to fill the square */
  display: block;
}

/* Subtle hover effect */
.profile-photo:hover {
  box-shadow: 0 12px 28px rgba(0,0,0,0.18);
  transform: translateY(-4px);
}

/* Responsive: stack vertically on smaller screens */
@media (max-width: 768px) {
  .resume-container {
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1.5rem;
    margin: 1rem;
    width: calc(100% - 2rem);    /* maintain small side gap */
  }

  .profile-photo {
    max-width: 300px;
    max-height: 300px;
    margin-left: 0;
    margin-bottom: 1.5rem;
    order: -1;                   /* show photo above the header */
  }

  .resume-header {
    flex: none;
    text-align: center;          /* center text on small screens */
  }

  .resume-header h1,
  .resume-header h3 {
    text-align: center;
  }

  .resume-header .contact {
    justify-content: center;
  }

  .item-header {
    flex-direction: column;
  }
}