/* css/cv.css - Resume Page Styling */

main {
  padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2rem);
  min-height: calc(100vh - 200px);
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  overflow-x: hidden;
}

/* ==========================================
   CV CONTAINER
   ========================================== */

.cv-container {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  color: #f5f5f5;
  box-sizing: border-box;
  padding: 0 clamp(1rem, 2vw, 1.5rem);
}

/* ==========================================
   HEADER SECTION
   ========================================== */

.cv-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid rgba(168, 178, 161, 0.3);
  box-sizing: border-box;
}

.cv-header h1 {
  font-family: var(--font-heading);
  font-size: clamp(32px, 4vw, 80px);
  font-weight: var(--weight-semibold);
  color: var(--color-text);
  margin: 0 0 1rem 0;
  text-transform: lowercase;
  letter-spacing: -0.025em;
  line-height: 1.15;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.cv-contact {
  font-family: var(--font-body);
  font-size: clamp(13px, 1.2vw, 15px);
  font-weight: var(--weight-light);
  color: var(--color-accent);
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(0.35rem, 0.8vw, 0.5rem);
  letter-spacing: 0.005em;
  padding: 0 0.5rem;
}

.cv-contact a {
  color: var(--color-accent);
  text-decoration: none;
}

.cv-contact .divider {
  color: rgba(168, 178, 161, 0.5);
}

.cv-summary {
  font-family: var(--font-body);
  font-size: clamp(14px, 1.4vw, 18px);
  font-weight: var(--weight-regular);
  line-height: 1.65;
  letter-spacing: 0.005em;
  color: var(--color-text);
  max-width: 100%;
  margin: 0 auto;
  text-transform: lowercase;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  padding: 0 0.5rem;
}

/* ==========================================
   TWO-COLUMN LAYOUT
   ========================================== */

.cv-content {
  display: grid;
  grid-template-columns: 35% 65%;
  gap: clamp(1.5rem, 3vw, 3rem);
  margin-bottom: 3rem;
  width: 100%;
  box-sizing: border-box;
}

/* ==========================================
   SECTIONS
   ========================================== */

.cv-section {
  margin-bottom: 2.5rem;
}

.cv-section:last-child {
  margin-bottom: 0;
}

.cv-section h2 {
  font-family: var(--font-heading);
  font-size: clamp(24px, 2.8vw, 48px);
  font-weight: var(--weight-medium);
  color: var(--color-accent);
  margin: 0 0 1rem 0;
  text-transform: lowercase;
  letter-spacing: -0.015em;
  line-height: 1.25;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(168, 178, 161, 0.3);
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* ==========================================
   LEFT COLUMN - SKILLS
   ========================================== */

.cv-left ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cv-left ul li {
  font-family: var(--font-body);
  font-size: clamp(13px, 1.15vw, 15px);
  font-weight: var(--weight-regular);
  line-height: 1.55;
  letter-spacing: 0.005em;
  color: var(--color-text);
  margin-bottom: 0.5rem;
  padding-left: 1.25rem;
  position: relative;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.cv-left ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #a8b2a1;
  font-weight: bold;
}

/* ==========================================
   RIGHT COLUMN - EXPERIENCE & EDUCATION
   ========================================== */

.cv-entry {
  margin-bottom: 2rem;
}

.cv-entry:last-child {
  margin-bottom: 0;
}

.entry-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.25rem;
  flex-wrap: wrap;
  gap: clamp(0.35rem, 0.8vw, 0.5rem);
}

.entry-header h3 {
  font-family: var(--font-body);
  font-size: clamp(14px, 1.35vw, 18px);
  font-weight: var(--weight-semibold);
  color: var(--color-text);
  margin: 0;
  text-transform: lowercase;
  letter-spacing: 0.005em;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  flex: 1 1 auto;
  min-width: 0;
}

.entry-date {
  font-family: var(--font-body);
  font-size: clamp(13px, 1.15vw, 15px);
  font-weight: var(--weight-medium);
  color: var(--color-accent);
  letter-spacing: 0.005em;
  white-space: normal;
  flex-shrink: 0;
}

.entry-title {
  font-family: var(--font-body);
  font-size: clamp(13px, 1.15vw, 15px);
  font-weight: var(--weight-light);
  color: var(--color-accent);
  letter-spacing: 0.005em;
  margin: 0 0 0.75rem 0;
  font-style: italic;
  text-transform: lowercase;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.entry-details {
  list-style: none;
  padding: 0;
  margin: 0;
}

.entry-details li {
  font-family: var(--font-body);
  font-size: clamp(13px, 1.15vw, 15px);
  font-weight: var(--weight-regular);
  line-height: 1.55;
  letter-spacing: 0.005em;
  color: var(--color-text);
  margin-bottom: 0.5rem;
  padding-left: 1.25rem;
  position: relative;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.entry-details li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: #a8b2a1;
}

/* ==========================================
   VOLUNTEER LIST
   ========================================== */

.volunteer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.volunteer-list li {
  font-family: var(--font-body);
  font-size: clamp(13px, 1.15vw, 15px);
  font-weight: var(--weight-regular);
  line-height: 1.6;
  letter-spacing: 0.005em;
  color: var(--color-text);
  margin-bottom: 0.75rem;
  text-transform: lowercase;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.volunteer-list li strong {
  color: var(--color-text);
  font-weight: var(--weight-semibold);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* ==========================================
   DOWNLOAD BUTTON
   ========================================== */

.cv-download {
  text-align: center;
  padding-top: rem;
  border-top: 2px solid rgba(168, 178, 161, 0.3);
}

.cv-download .button {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.05em;
  text-decoration: none;
  border-radius: 6px;
  text-transform: lowercase;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(168, 178, 161, 0.3);
}

.cv-download .button:hover {
  background: #9a6b7e;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(168, 178, 161, 0.4);
}

/* ==========================================
   PRINT STYLES
   ========================================== */

@media print {
  body {
    background: white;
    color: black;
  }

  header, footer, .cv-download {
    display: none;
  }

  .cv-container {
    max-width: 100%;
  }

  .cv-section h2 {
    page-break-after: avoid;
  }

  .cv-entry {
    page-break-inside: avoid;
  }
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

/* Problem Range 750px-1205px Fix */
@media (max-width: 1205px) {
  main {
    padding: clamp(1.75rem, 3vw, 2.5rem) clamp(1.25rem, 2.5vw, 1.75rem);
  }

  .cv-container {
    padding: 0 clamp(0.75rem, 1.5vw, 1rem);
  }

  .cv-content {
    gap: clamp(1rem, 2.25vw, 2rem);
  }

  .cv-header h1 {
    font-size: clamp(28px, 3.5vw, 52px);
    letter-spacing: -0.03em;
  }

  .cv-contact {
    font-size: clamp(12px, 1.1vw, 14px);
    gap: clamp(0.3rem, 0.6vw, 0.4rem);
  }

  .cv-summary {
    font-size: clamp(13px, 1.25vw, 15px);
    padding: 0 0.5rem;
  }

  .cv-section h2 {
    font-size: clamp(22px, 2.5vw, 36px);
  }

  .cv-left ul li {
    font-size: clamp(12px, 1.05vw, 14px);
  }

  .entry-header h3 {
    font-size: clamp(13px, 1.25vw, 16px);
  }

  .entry-date {
    font-size: clamp(12px, 1.05vw, 14px);
  }

  .entry-title {
    font-size: clamp(12px, 1.05vw, 14px);
  }

  .entry-details li {
    font-size: clamp(12px, 1.05vw, 14px);
  }

  .volunteer-list li {
    font-size: clamp(12px, 1.05vw, 14px);
  }
}

/* Large Tablet - Problem Range Fix */
@media (max-width: 1283px) {
  .cv-content {
    gap: clamp(1.25rem, 2.5vw, 2.25rem);
  }

  .cv-header h1 {
    font-size: clamp(30px, 4vw, 60px);
  }

  .cv-summary {
    font-size: clamp(13px, 1.3vw, 16px);
  }

  .cv-section h2 {
    font-size: clamp(24px, 2.75vw, 38px);
  }

  .entry-header h3 {
    font-size: clamp(13px, 1.3vw, 16px);
  }
}

/* Tablet */
@media (max-width: 992px) {
  .cv-content {
    grid-template-columns: 38% 62%;
    gap: clamp(1.25rem, 2.5vw, 2rem);
  }
}

/* Small Tablet */
@media (max-width: 850px) {
  main {
    padding: 2rem 1.5rem;
  }

  .cv-container {
    padding: 0 0.75rem;
  }

  .cv-content {
    gap: 1.5rem;
  }
}

/* Mobile - Single Column */
@media (max-width: 768px) {
  main {
    padding: 2rem 1.5rem;
  }

  .cv-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
  }

  .cv-contact {
    flex-direction: column;
    gap: 0.25rem;
  }

  .cv-contact .divider {
    display: none;
  }

  .cv-content {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .cv-section {
    margin-bottom: 2rem;
  }

  .cv-download {
    padding-top: 1.5rem;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .cv-header h1 {
    font-size: 2rem;
  }

  .cv-contact {
    font-size: 0.85rem;
  }

  .cv-summary {
    font-size: 0.95rem;
  }

  .entry-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .entry-date {
    font-size: 0.85rem;
  }
}

/* ==========================================
   ACCESSIBILITY
   ========================================== */

.cv-contact a:focus,
.cv-download .button:focus {
  outline: 3px solid #a8b2a1;
  outline-offset: 2px;
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none;
    transition: none;
  }
}
