/* Resume Styling */
.page-resume .resume {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
  font-family: var(--font-family-base);
}

/* Resume Header Styling with Flex */
.page-resume .resume-content .resume-header-container {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  background: linear-gradient(135deg, var(--highlight-color-lighter) 0%, var(--highlight-color) 100%) !important;
  padding: 2rem !important;
  border-radius: 8px !important;
  margin-bottom: 2rem !important;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
}

.page-resume .resume-content .resume-header-container h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: var(--highlight-color);
}

.resume-header-container h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-color-secondary);
  font-weight: normal;
}

.resume-header-container blockquote {
  font-style: italic;
  max-width: 600px;
  margin: 0 auto 1.5rem;
  border-left: none;
  padding: 0;
}

.professional-summary {
  max-width: 800px;
  margin: 1.5rem auto 0;
  text-align: left;
  line-height: 1.6;
}

.professional-summary p {
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.professional-summary ul {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  list-style-type: disc;
}

.professional-summary li {
  margin-bottom: 0.3rem;
  color: var(--text-color);
}

/* Dark mode adjustment for professional summary */
body.dark-mode .professional-summary p,
body.dark-mode .professional-summary li {
  color: var(--text-color-dark);
}

/* Skills Tables Styling */
.skills-tables {
  margin-bottom: 2rem;
}

.skills-tables table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.skills-tables th {
  background-color: var(--highlight-color);
  color: #fff;
  font-weight: 600;
  text-align: left;
  padding: 0.8rem 1rem;
}

.skills-tables td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--border-color);
}

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

.skills-tables tr:nth-child(even) {
  background-color: rgba(0, 0, 0, 0.03);
}

.skills-tables tr:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

/* Dark mode adjustments for tables */
body.dark-mode .skills-tables th {
  background-color: var(--highlight-color);
  color: #fff;
}

body.dark-mode .skills-tables tr:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.05);
}

body.dark-mode .skills-tables tr:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

/* Experience Table Styling */
.experience-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.experience-table th {
  background-color: var(--highlight-color);
  color: #fff;
  font-weight: 600;
  text-align: left;
  padding: 1rem;
}

.experience-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  vertical-align: top;
}

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

.experience-table .company-col {
  width: 30%;
  font-weight: 600;
}

.experience-table .role-col {
  width: 25%;
}

.experience-table .period-col {
  width: 15%;
  color: var(--text-color-secondary);
}

.experience-table td.description-col {
  width: 50%;
}

.experience-table ul {
  margin: 0;
  padding-left: 1.5rem;
  list-style-type: disc;
}

.experience-table li {
  margin-bottom: 0.5rem;
  text-align: left;
}

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

.experience-table tr:nth-child(even) {
  background-color: rgba(0, 0, 0, 0.03);
}

.experience-table tr:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

/* Dark mode adjustments for experience table */
body.dark-mode .experience-table th {
  background-color: var(--highlight-color);
}

body.dark-mode .experience-table tr:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.05);
}

body.dark-mode .experience-table tr:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

.page-resume .resume-header {
  margin-bottom: 2rem;
}

.page-resume .resume-header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: var(--highlight-color);
}

.page-resume .resume-description {
  font-size: 1.2rem;
  color: var(--text-color-secondary);
  margin-bottom: 1rem;
}

.page-resume .resume-content h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: var(--highlight-color);
}

.page-resume .resume-content h2 {
  font-size: 1.8rem;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.page-resume .resume-content h3 {
  font-size: 1.4rem;
  margin-top: 1.5rem;
  margin-bottom: 0.25rem;
  color: var(--highlight-color);
}

.page-resume .resume-content h4 {
  font-size: 1.2rem;
  font-weight: bold;
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--text-color-secondary);
}

/* Education and Certifications Flex Layout */
.education-cert-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
}

.education-section, .certifications-section {
  flex: 1;
  min-width: 300px;
}

.education-card, .certification-card {
  background-color: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.education-card:hover, .certification-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.education-card h4, .certification-card h4 {
  margin-top: 0;
  color: var(--highlight-color);
}

.education-card p, .certification-card p {
  margin-bottom: 0.5rem;
  color: var(--text-color-secondary);
}

.education-card .specialisation {
  font-style: italic;
  margin-top: 0.5rem;
}

/* Dark mode adjustments for cards */
body.dark-mode .education-card, body.dark-mode .certification-card {
  background-color: var(--bg-color-dark);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Projects Grid Layout */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.project-card {
  background-color: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.project-card h4 {
  margin-top: 0;
  color: var(--highlight-color);
}

.project-card p {
  flex-grow: 1;
}

.project-card .project-links {
  margin-top: 1rem;
  display: flex;
  gap: 1rem;
}

.project-card .project-links a {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: var(--highlight-color);
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background-color 0.2s ease;
}

.project-card .project-links a:hover {
  background-color: var(--highlight-color-darker);
}

/* Dark mode adjustments for project cards */
body.dark-mode .project-card {
  background-color: var(--bg-color-dark);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Contact Section Styling */
.contact-section {
  background-color: #fff;
  border-radius: 8px;
  padding: 2rem;
  margin-top: 2rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.contact-section h2 {
  margin-top: 0;
  color: var(--highlight-color);
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1.5rem;
}

.contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--highlight-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-links a:hover {
  color: var(--highlight-color-darker);
}

/* Dark mode adjustments for contact section */
body.dark-mode .contact-section {
  background-color: var(--bg-color-dark);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .resume-header-container {
    padding: 1.5rem;
  }
  
  .experience-table, .experience-table thead, .experience-table tbody, 
  .experience-table th, .experience-table td, .experience-table tr {
    display: block;
  }
  
  .experience-table thead tr {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }
  
  .experience-table tr {
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
  }
  
  .experience-table td {
    border: none;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    padding-left: 50%;
    text-align: left;
  }
  
  .experience-table td:before {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 45%;
    padding-right: 10px;
    white-space: nowrap;
    font-weight: bold;
  }
  
  .experience-table td:nth-of-type(1):before { content: "Company"; }
  .experience-table td:nth-of-type(2):before { content: "Role"; }
  .experience-table td:nth-of-type(3):before { content: "Period"; }
  .experience-table td:nth-of-type(4):before { content: "Description"; }
  
  .education-cert-container {
    flex-direction: column;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-links {
    flex-direction: column;
    gap: 1rem;
  }
}

.page-resume .resume-content p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.page-resume .resume-content ul {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.page-resume .resume-content ul li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.page-resume .resume-content blockquote {
  border-left: 4px solid var(--highlight-color);
  padding-left: 1rem;
  margin-left: 0;
  margin-right: 0;
  font-style: italic;
  color: var(--text-color-secondary);
}

.page-resume .resume-content hr {
  border: 0;
  height: 1px;
  background-color: var(--border-color);
  margin: 2rem 0;
}

.page-resume .resume-content a {
  color: var(--highlight-color);
  text-decoration: none;
}

.page-resume .resume-content a:hover {
  text-decoration: underline;
}

/* Dark mode adjustments */
body.dark-mode .page-resume .resume-content h1,
body.dark-mode .page-resume .resume-content h3,
body.dark-mode .page-resume .resume-header h1 {
  color: var(--highlight-color);
}

body.dark-mode .page-resume .resume-content h2,
body.dark-mode .page-resume .resume-content h4 {
  color: #e0e0e0;
}

body.dark-mode .page-resume .resume-content blockquote {
  color: #b0b0b0;
}

/* Print styles */
@media print {
  .page-resume .resume {
    padding: 0;
  }
  
  .header, .footer, .menu-main-mobile {
    display: none !important;
  }
  
  .page-resume .resume-content h1,
  .page-resume .resume-content h3,
  .page-resume .resume-header h1 {
    color: #0077cc !important;
  }
  
  .page-resume .resume-content h2,
  .page-resume .resume-content h4 {
    color: #333 !important;
  }
  
  .page-resume .resume-content a {
    color: #0077cc !important;
    text-decoration: none !important;
  }
  
  .page-resume .resume-content hr {
    background-color: #ccc !important;
  }
}
