/* ==========================================================================
   AGRIS MARKUS - EXECUTIVE BUSINESS CV
   Clean, Professional, White Background, Minimalist & Printable
   ========================================================================== */

:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;

  --bg-body: #ffffff;
  --bg-subtle: #f9fafb;
  --bg-tag: #f3f4f6;

  --border-color: #e5e7eb;
  --border-dark: #d1d5db;

  --text-main: #111827;
  --text-secondary: #374151;
  --text-muted: #6b7280;
  --text-link: #1d4ed8;
  --text-link-hover: #1e40af;

  --radius: 4px;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 15px;
  background-color: var(--bg-body);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.55;
  padding-bottom: 4rem;
}

a {
  color: var(--text-link);
  text-decoration: none;
}

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

/* Page Layout Container */
.cv-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  background: #ffffff;
}

/* Top Utility Header */
.top-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.top-bar-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.15s ease;
}

.top-bar-btn:hover {
  background: var(--bg-tag);
  color: var(--text-main);
  border-color: var(--border-dark);
}

.lang-switch {
  font-family: var(--font-mono);
  font-weight: 600;
}

.lang-switch span.active {
  color: var(--text-main);
  font-weight: 700;
}

.lang-switch span.inactive {
  color: var(--text-muted);
}

/* Header / Profile Section */
.profile-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--text-main);
  margin-bottom: 2.5rem;
}

.profile-main {
  flex: 1;
}

.profile-name {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
  line-height: 1.15;
  margin-bottom: 0.35rem;
}

.profile-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.contact-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.contact-item strong {
  color: var(--text-main);
  font-weight: 600;
}

.contact-sep {
  color: var(--border-dark);
}

.profile-summary {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Portrait Image */
.profile-photo-wrapper {
  flex-shrink: 0;
}

.profile-photo {
  width: 130px;
  height: 165px;
  object-fit: cover;
  object-position: center top;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  display: block;
}

/* Section Headings */
.cv-section {
  margin-bottom: 2.5rem;
}

.section-title {
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-main);
  border-bottom: 1px solid var(--text-main);
  padding-bottom: 0.35rem;
  margin-bottom: 1.25rem;
}

/* Experience Items */
.experience-item {
  margin-bottom: 2rem;
}

.experience-item:last-child {
  margin-bottom: 0;
}

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.2rem;
}

.exp-company {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
}

.exp-dates {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.exp-sub-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 0.65rem;
}

.exp-role {
  font-weight: 600;
  color: var(--text-secondary);
}

.exp-location {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.exp-bullets {
  list-style: disc;
  padding-left: 1.25rem;
  margin-bottom: 0.65rem;
}

.exp-bullets li {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
  line-height: 1.5;
}

.exp-tech {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: normal;
}

.exp-tech strong {
  color: var(--text-secondary);
  font-weight: 600;
}

/* Skills Layout */
.skills-table {
  width: 100%;
  border-collapse: collapse;
}

.skills-table tr {
  border-bottom: 1px solid var(--border-color);
}

.skills-table tr:last-child {
  border-bottom: none;
}

.skills-table td {
  padding: 0.65rem 0;
  vertical-align: top;
  font-size: 0.92rem;
}

.skills-category {
  width: 25%;
  font-weight: 700;
  color: var(--text-main);
}

.skills-list {
  width: 75%;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Projects Table / Grid */
.projects-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.project-entry {
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color);
}

.project-entry:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.proj-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.25rem;
}

.proj-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
}

.proj-link {
  font-size: 0.85rem;
  font-family: var(--font-mono);
}

.proj-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
  line-height: 1.5;
}

.proj-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Education & Courses */
.education-item {
  margin-bottom: 1.25rem;
}

.education-item:last-child {
  margin-bottom: 0;
}

.edu-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.15rem;
}

.edu-degree {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-main);
}

.edu-date {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.edu-school {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.edu-details {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Languages */
.lang-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.lang-list strong {
  color: var(--text-main);
}

/* Footer */
.cv-footer {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Toast */
.toast-msg {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--text-main);
  color: #ffffff;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  animation: fadeIn 0.2s ease, fadeOut 0.2s ease 2.6s forwards;
}

@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeOut { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(6px); } }

/* Print Media */
@media print {
  .top-bar,
  .toast-msg {
    display: none !important;
  }

  body {
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 11pt !important;
    padding-bottom: 0 !important;
  }

  .cv-container {
    max-width: 100% !important;
    padding: 0 !important;
  }

  a {
    color: #000000 !important;
    text-decoration: none !important;
  }

  .experience-item,
  .project-entry,
  .education-item {
    break-inside: avoid;
  }
}

/* Mobile Responsive */
@media (max-width: 650px) {
  .profile-header {
    flex-direction: column-reverse;
    align-items: center;
    text-align: center;
  }

  .contact-row {
    justify-content: center;
  }

  .exp-header, .exp-sub-header, .proj-top, .edu-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .skills-table td {
    display: block;
    width: 100%;
  }

  .skills-category {
    padding-bottom: 0.2rem;
  }
}

/* ==========================================================================
   MOTIVATION LETTER STYLES (Strict Executive Business Standard)
   Clean, Pure White, Unembellished Typography
   ========================================================================== */

.letter-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  background: #ffffff;
}

.letter-head-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color);
}

.sender-block .sender-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.02em;
  margin-bottom: 0.2rem;
}

.sender-block .sender-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.sender-block .sender-contacts {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.sender-block .sender-contacts a {
  color: var(--text-secondary);
}

.recipient-block {
  text-align: right;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.recipient-block .recipient-org {
  font-weight: 700;
  color: var(--text-main);
  font-size: 0.95rem;
}

.letter-date-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

.letter-subject {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1.75rem;
  line-height: 1.4;
}

.letter-salutation {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 1.25rem;
}

.letter-paragraph {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.letter-point {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.point-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.45rem;
}

.letter-closing {
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.signature-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 0.4rem;
  margin-bottom: 0.2rem;
}

.signature-title {
  font-size: 0.88rem;
  color: var(--text-muted);
}

@media print {
  .letter-container {
    max-width: 100% !important;
    padding: 0 !important;
  }
  .letter-point {
    break-inside: avoid;
  }
}

@media (max-width: 650px) {
  .letter-head-grid {
    flex-direction: column;
    gap: 1.25rem;
  }
  .recipient-block {
    text-align: left;
  }
}

/* ==========================================================================
   CONTACT FORM STYLES
   ========================================================================== */

.contact-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #ffffff !important;
  background-color: var(--text-main);
  border-radius: var(--radius);
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.contact-cta-btn:hover {
  background-color: var(--text-secondary);
  text-decoration: none;
}

.contact-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.75rem 2rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.04), 0 2px 4px -2px rgba(0, 0, 0, 0.03);
  margin-top: 1rem;
}

.contact-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f1f5f9;
}

.contact-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #065f46;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
}

.badge-dot {
  width: 7px;
  height: 7px;
  background-color: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.contact-notice {
  font-size: 0.82rem;
  color: #64748b;
  font-weight: 500;
}

.contact-section-desc {
  font-size: 0.95rem;
  color: #475569;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.cv-contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .contact-card {
    padding: 1.25rem;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.45rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.form-label .req {
  color: #ef4444;
}

.form-input,
.form-textarea {
  display: block;
  width: 100%;
  padding: 0.75rem 0.95rem;
  font-family: inherit;
  font-size: 0.92rem;
  color: #0f172a;
  background-color: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  box-sizing: border-box;
  outline: none;
  transition: all 0.15s ease;
}

.form-input:focus,
.form-textarea:focus {
  background-color: #ffffff;
  border-color: #0f172a;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #94a3b8;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.5;
}

.form-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.85rem 1.5rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
  background-color: #0f172a;
  border: 1px solid #0f172a;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.1);
  transition: all 0.2s ease;
}

.form-submit-btn:hover:not(:disabled) {
  background-color: #1e293b;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.15);
  transform: translateY(-1px);
}

.form-submit-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.btn-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: spin 0.75s linear infinite;
  display: inline-block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.contact-status {
  padding: 1rem 1.25rem;
  border-radius: 8px;
  font-size: 0.92rem;
  margin-bottom: 1.25rem;
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.contact-status.status-success {
  background-color: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.contact-status.status-error {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

@media print {
  #contact,
  .contact-cta-btn {
    display: none !important;
  }
}



