:root {
  --primary-color: #667eea;
  --secondary-color: #764ba2;
  --accent-color: #667eea;
  --text-primary: #333;
  --text-secondary: #555;
  --border-color: #e0e0e0;
  --bg-light: #f8fbff;
  --bg-lighter: #f0f4ff;
  --bg-lightest: #e8f0ff;
  --bg-grey: #f8f9fa;
  --bg-hover: #e8ecff;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --border-radius: 8px;
  --transition: all 0.3s ease;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  max-width: 800px;
  margin: auto;
  padding: 20px;
  line-height: 1.6;
  background-color: var(--bg-light);
  color: var(--text-primary);
}

header {
  text-align: center;
  margin-bottom: 40px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  padding: 30px;
  border-radius: 8px;
}

h1 {
  margin-bottom: 5px;
  font-size: 2.5em;
  font-weight: 600;
}

header p {
  font-size: 1.1em;
  margin: 0;
  opacity: 0.95;
}

/* Education Table Styles */
.education-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
  margin-top: 15px;
}

.education-table thead {
  background-color: var(--primary-color);
  color: white;
  font-weight: 600;
}

.education-table thead th {
  padding: 12px;
  text-align: left;
  border-radius: 8px 8px 0 0;
}

.education-table thead tr,
.education-table tbody tr {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 2fr 1fr;
  align-items: center;
}

.education-table tbody tr {
  background-color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  margin-bottom: 8px;
}

.education-table tbody tr.mid-course {
  background-color: var(--bg-light);
  font-size: 0.85em;
  font-style: italic;
  margin-left: 10%;
  width: 90%;
  margin-top: -8px;
  margin-bottom: 8px;
  border-radius: 8px;
}

.education-table tbody tr.mid-course td {
  padding: 10px 12px;
  color: var(--text-secondary);
}

.education-table tbody tr.mid-course td:first-child {
  border-left: 3px solid var(--primary-color);
}

.education-table th,
.education-table td {
  padding: 12px;
  text-align: left;
  border-bottom: none;
}

.education-table tbody tr:hover {
  background-color: var(--bg-lighter);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.education-table tbody tr.mid-course:hover {
  background-color: var(--bg-lightest);
}

/* Internships Styles */
.internships-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 15px;
}

.internship {
  border: 1px solid var(--border-color);
  padding: 20px;
  border-radius: 8px;
  background-color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s, transform 0.3s;
}

.internship:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.internship h3 {
  margin-top: 0;
  color: var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 10px;
  font-size: 1.3em;
}

.internship p {
  margin: 10px 0;
}

/* Skills Styles */
.skills-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 15px;
}

.skill {
  border: 1px solid var(--border-color);
  padding: 20px;
  border-radius: 8px;
  background-color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s, transform 0.3s;
}

.skill:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.skill h3 {
  margin-top: 0;
  margin-bottom: 5px;
  color: var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 10px;
  font-size: 1.3em;
  text-align: center;
}

.skill p {
  margin: 10px 0;
}

/* Collapsible Sections Styles */
.collapsible-section {
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  background-color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.section-toggle {
  cursor: pointer;
  background-color: var(--bg-grey);
  padding: 15px;
  margin: 0;
  display: flex;
  align-items: center;
  user-select: none;
  transition: background-color 0.2s;
  font-size: 1.2em;
  font-weight: 600;
  color: var(--text-primary);
}

.section-toggle:hover {
  background-color: var(--bg-hover);
  color: var(--primary-color);
}

.arrow {
  margin-right: 10px;
  font-size: 16px;
  display: inline-block;
  transition: transform 0.3s;
  color: var(--primary-color);
}

.section-content {
  padding: 20px;
  display: none;
  border-top: 1px solid var(--border-color);
}

.static-section .section-content {
  border-top: none;
}

.static-section .section-content h2 {
  margin-top: 0;
  margin-bottom: 0.75em;
  font-size: 1em;
  font-weight: 700;
}

.static-section .section-content p {
  text-align: justify;
  text-justify: inter-word;
}

.collapsible-section[data-open="true"] .section-content {
  display: block;
}

/* Software Table Styles */
.software-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 0.95em;
}

.software-table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-color);
  text-align: left;
}

.software-table tbody tr:first-child {
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 2px solid var(--accent-color);
}

.software-table tbody tr:first-child td {
  padding: 10px 12px;
}

/* Brand Line Styles */
.brand-line {
  text-align: center;
  font-size: 1.05em;
  font-weight: 600;
  color: var(--accent-color);
  margin: 0 0 5px 0;
  letter-spacing: 0.3px;
}

/* Year/Role Line Styles */
.brand-line + p {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 8px 0 10px 0;
}

.brand-line + p strong:first-child {
  order: 2;
  margin-left: 20px;
  white-space: nowrap;
}

.brand-line + p strong:nth-of-type(2),
.brand-line + p strong:nth-of-type(2) + text {
  order: 1;
}