/* Global CSS Variables */
:root {
  --primary-color: #1e3a8a;
  --primary-dark: #1e293b;
  --secondary-color: #3b82f6;
  --success-color: #16a34a;
  --warning-color: #ea580c;
  --error-color: #dc2626;

  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --text-tertiary: #9ca3af;

  --bg-primary: #ffffff;
  --bg-secondary: #f9fafb;
  --bg-tertiary: #f3f4f6;

  --border-color: #e5e7eb;
  --border-light: #f3f4f6;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);

  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;

  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-primary);
  background-color: var(--bg-secondary);

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text-primary: #f3f4f6;
    --text-secondary: #d1d5db;
    --text-tertiary: #9ca3af;

    --bg-primary: #1f2937;
    --bg-secondary: #111827;
    --bg-tertiary: #374151;

    --border-color: #4b5563;
    --border-light: #374151;
  }
}

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

html,
body,
#root {
  height: 100%;
  width: 100%;
}

body {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
}

#root {
  display: flex;
  flex-direction: column;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 {
  font-size: 40px;
}

h2 {
  font-size: 28px;
}

h3 {
  font-size: 22px;
}

h4 {
  font-size: 18px;
}

h5 {
  font-size: 16px;
}

h6 {
  font-size: 14px;
}

p {
  margin-bottom: 1em;
  color: var(--text-secondary);
}

p:last-child {
  margin-bottom: 0;
}

/* Links */
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

/* Buttons */
button {
  cursor: pointer;
  border: none;
  font-family: inherit;
  font-size: inherit;
}

/* Lists */
ul,
ol {
  margin-bottom: 1em;
  padding-left: 2em;
}

li {
  margin-bottom: 0.5em;
}

/* Code */
code,
pre {
  font-family: 'Courier New', monospace;
  background-color: var(--bg-tertiary);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.9em;
}

pre {
  padding: 12px;
  overflow-x: auto;
}

pre code {
  padding: 0;
  background: none;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-tertiary);
}

/* Selection */
::selection {
  background-color: var(--primary-color);
  color: white;
}
/* Header Styles */
.cv-header {
  background: linear-gradient(135deg, #6F9A7D 0%, #2E4F39 100%);
  color: white;
  padding: 50px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-bottom: 3px solid #6aac80;
}

.header-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.header-content {
  flex: 1;
}

.header-name {
  margin: 0 0 6px 0;
  font-size: 42px;
  font-weight: 900;
  letter-spacing: -1px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  color: white !important;
}

.header-title {
  margin: 0 0 16px 0;
  font-size: 20px;
  font-weight: 500;
  opacity: 0.95;
  letter-spacing: 0.3px;
  color: lightgray !important;
}

.header-summary {
  margin: 16px 0;
  font-size: 16px;
  line-height: 1.5;
  opacity: 0.9;
  max-width: 600px;
  color: white !important;
}

.header-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
  font-size: 14px;
}

.contact-link {
  color: white;
  text-decoration: none;
  background-color: rgba(255, 255, 255, 0.15);
  padding: 6px 12px;
  border-radius: 20px;
  transition: all 0.2s;
  display: inline-block;
}

.contact-link:hover {
  background-color: rgba(255, 255, 255, 0.25);
  text-decoration: underline;
}

.contact-link:not(a) {
  cursor: default;
  background-color: rgba(255, 255, 255, 0.1);
}

.pdf-download-btn {
  background-color: #3F6B4E;
  color: white;
  border: 2px solid white;
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.pdf-download-btn:hover {
  background-color: #4d9c68;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.pdf-download-btn:active {
  transform: translateY(0);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .cv-header {
    padding: 30px 0;
  }

  .header-container {
    flex-direction: column;
    align-items: stretch;
  }

  .header-name {
    font-size: 32px;
  }

  .header-title {
    font-size: 18px;
  }

  .pdf-download-btn {
    width: 100%;
    text-align: center;
  }
}
/* Section Container Styles */
.section-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
  border-bottom: 1px solid #e5e7eb;
}

.section-container:last-child {
  border-bottom: none;
}

.section-title {
  margin: 0 0 24px 0;
  font-size: 28px;
  font-weight: 700;
  color: #1f2937;
  position: relative;
  padding-bottom: 12px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #348c51 0%, #27412f 100%);
  border-radius: 2px;
}

.section-content {
  color: #374151;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .section-container {
    padding: 30px 16px;
  }

  .section-title {
    font-size: 22px;
  }
}
/* Experience Card Styles */
.experience-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.experience-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.experience-card:hover {
  border-color: #3F6B4E;
  box-shadow: 0 4px 12px rgba(63, 107, 78, 0.12);
  transform: translateY(-1px);
  background-color: #f8fafc;
}

.experience-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
  gap: 12px;
}

.experience-position {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #1f2937;
  flex: 1;
}

.experience-company {
  margin: 4px 0;
  font-size: 15px;
  font-weight: 700;
  color: #1e3a8a;
  letter-spacing: 0.2px;
}

.experience-date {
  margin: 4px 0 12px 0;
  font-size: 14px;
  color: #6b7280;
}

.experience-summary {
  margin: 12px 0;
  font-size: 15px;
  line-height: 1.6;
  color: #374151;
}

.experience-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.tech-badge {
  display: inline-block;
  background-color: #e2ffee;
  color: #2E4F39;
  padding: 4px 10px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
}

.badge-current {
  background-color: #dcfce7;
  color: #166534;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.details-btn {
  background: none;
  border: none;
  color: #2563eb;
  cursor: pointer;
  font-weight: 600;
  padding: 8px 0;
  margin-top: 12px;
  transition: color 0.2s;
}

.details-btn:hover {
  color: #3F6B4E;
  text-decoration: underline;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .experience-card {
    padding: 16px;
  }

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

  .experience-position {
    font-size: 18px;
  }

  .experience-company {
    font-size: 14px;
  }
}
/* Skills Section Styles */
.skills-container {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.skill-category {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.category-title {
  margin: 0 0 8px 0;
  font-size: 16px;
  font-weight: 700;
  color: #3F6B4E;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.skill-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.skill-card:hover {
  border-color: #1e3a8a;
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.12);
  transform: translateY(-2px);
  background-color: #f0f4f8;
}

.skill-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.skill-name {
  font-weight: 600;
  color: #1f2937;
  font-size: 15px;
}

.skill-proficiency {
  font-size: 12px;
  white-space: nowrap;
}

.skill-hint {
  display: block;
  font-size: 12px;
  color: #9ca3af;
  margin-top: 8px;
}

.skill-card:hover .skill-hint {
  color: #6b7280;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .skills-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }

  .skill-card {
    padding: 12px;
  }

  .skill-name {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* Project Card Styles */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.project-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  border-color: #3F6B4E;
  box-shadow: 0 8px 16px rgba(30, 58, 138, 0.15);
  transform: translateY(-4px);
  background-color: #f8fafc;
}

.project-name {
  margin: 0 0 8px 0;
  font-size: 18px;
  font-weight: 700;
  color: #1f2937;
}

.project-description {
  margin: 0 0 12px 0;
  font-size: 15px;
  line-height: 1.6;
  color: #374151;
  flex: 1;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.project-tech .tech-badge {
  display: inline-block;
  background-color: #e2ffee;
  color: #2E4F39;
  padding: 4px 10px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
}

.project-footer {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
}

.project-link,
.project-card .details-btn {
  flex: 1;
  background: none;
  border: 1px solid #3F6B4E;
  color: #3F6B4E;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s;
  text-decoration: none;
  text-align: center;
}

.project-link:hover,
.project-card .details-btn:hover {
  background-color: #3F6B4E;
  color: white;
  box-shadow: 0 2px 8px rgba(63, 107, 78, 0.3);
}

.project-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
  }

  .project-card {
    padding: 16px;
  }

  .project-name {
    font-size: 16px;
  }

  .project-description {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-footer {
    flex-direction: column;
  }

  .project-link,
  .project-card .details-btn {
    width: 100%;
  }
}
/* Education Card Styles */
.education-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.education-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.education-card:hover {
  border-color: #3F6B4E;
  box-shadow: 0 4px 12px rgba(63, 107, 78, 0.1);
  transform: translateY(-2px);
}

.education-institution {
  margin: 0 0 8px 0;
  font-size: 18px;
  font-weight: 700;
  color: #1f2937;
}

.education-degree {
  margin: 4px 0;
  font-size: 16px;
  font-weight: 600;
  color: #3F6B4E;
}

.education-date {
  margin: 8px 0 12px 0;
  font-size: 14px;
  color: #6b7280;
}

.education-footer {
  display:contents;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
}

.education-card .details-btn,
.education-link {
  flex: 1;
  background: none;
  border: 1px solid #3F6B4E;
  color: #3F6B4E;
  padding: 8px 12px;
  margin-right: 15px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s;
  text-decoration: none;
  text-align: center;
}

.education-card .details-btn:hover,
.education-link:hover {
  background-color: #3F6B4E;
  color: white;
  box-shadow: 0 2px 8px rgba(63, 107, 78, 0.3);
}

.education-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .education-card {
    padding: 16px;
  }

  .education-institution {
    font-size: 16px;
  }

  .education-degree {
    font-size: 14px;
  }
}
/* CV Display Styles */
.cv-display {
  background-color: #f9fafb;
  min-height: 100vh;
}

@media print {
  .cv-display {
    background-color: white;
    min-height: auto;
  }

  .section-container {
    page-break-inside: avoid;
    border-bottom: none;
    padding: 20px 0;
  }

  .experience-card,
  .project-card,
  .education-card {
    page-break-inside: avoid;
  }

  .pdf-download-btn {
    display: none;
  }
}
/* Popup Styles */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  animation: fadeIn 0.3s ease-out;
}

.popup-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  max-width: 600px;
  max-height: 80vh;
  width: 90%;
  overflow-y: auto;
  z-index: 1000;
  animation: slideUp 0.3s ease-out;
}

.popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  border-bottom: 1px solid #e0e0e0;
  position: sticky;
  top: 0;
  background: white;
}

.popup-header h2 {
  margin: 0;
  font-size: 24px;
  color: #1f2937;
}

.popup-close-btn {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #6b7280;
  transition: color 0.2s;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.popup-close-btn:hover {
  color: #1f2937;
}

.popup-body {
  padding: 24px;
  color: #374151;
  line-height: 1.6;
}

.popup-body p {
  margin: 0 0 12px;
}

.popup-body p:last-child {
  margin-bottom: 0;
}

.popup-body ul,
.popup-body ol {
  margin: 0 0 12px;
  padding-left: 20px;
}

.popup-body li {
  margin-bottom: 4px;
}

.popup-body h1,
.popup-body h2,
.popup-body h3,
.popup-body h4 {
  margin: 16px 0 8px;
  color: #1f2937;
}

.popup-body h1:first-child,
.popup-body h2:first-child,
.popup-body h3:first-child {
  margin-top: 0;
}

.popup-body a {
  color: #3b82f6;
  text-decoration: underline;
}

.popup-body a:hover {
  color: #1d4ed8;
}

.popup-body strong {
  font-weight: 600;
  color: #1f2937;
}

.popup-body code {
  background: #f3f4f6;
  border-radius: 3px;
  padding: 1px 5px;
  font-size: 0.9em;
  font-family: monospace;
}

.popup-body pre {
  background: #f3f4f6;
  border-radius: 6px;
  padding: 12px;
  overflow-x: auto;
  margin: 0 0 12px;
}

.popup-body pre code {
  background: none;
  padding: 0;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translate(-50%, -40%);
    opacity: 0;
  }
  to {
    transform: translate(-50%, -50%);
    opacity: 1;
  }
}

/* Mobile responsiveness */
@media (max-width: 640px) {
  .popup-modal {
    width: 95%;
    max-height: 90vh;
  }

  .popup-header {
    padding: 16px;
  }

  .popup-body {
    padding: 16px;
  }
}
/* App Wrapper */
.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Print Styles */
@media print {
  .pdf-download-btn {
    display: none !important;
  }

  .cv-header {
    position: static;
  }

  .section-container {
    page-break-inside: avoid;
  }
}
