/* CSS Variables for colors */
:root {
  --primary-color: #002358;
  --secondary-color: #1a3a52;
  --text-color: #333;
  --text-light: #666;
  --text-lighter: #999;
  --background: #f5f5f5;
  --background-light: #f2f2f2;
  --white: #ffffff;
  --border-color: #e5e7eb;
  --progress-bg: #e0e0e0;
}

/* Remove default margins and padding */
body, h1, h2, h3, p {
  margin: 0;
  padding: 0;
}

/* Main body styling with font and background */
body {
  font-family: "Roboto", sans-serif;
  background-color: var(--background);
  padding: 20px;
}

/* Main container with grid layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 20px;
}

/* Sticky sidebar that stays in view */
.left-section {
  position: sticky;
  top: 20px;
  align-self: start;
}

/* White card container with shadow */
.card {
  background-color: var(--white);
  padding: 25px;
  margin-bottom: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Extra padding for main content cards */
.right-section .card {
  padding: 20px 30px 30px 30px;
}

/* Profile picture styling */
.profile-pic {
  width: 100%;
  max-width: 250px;
  height: 250px;
  margin: 0 auto 20px;
  display: block;
  border-radius: 10px;
}

/* Full name heading */
.name {
  text-align: center;
  font-size: 28px;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 10px;
  font-family: "Poppins", sans-serif;
}

/* Job title badge */
.title {
  text-align: center;
  font-size: 20px;
  color: var(--text-light);
  background-color: var(--background-light);
  padding: 6px 20px;
  margin-bottom: 20px;
  border-radius: 15px;
}

/* Flex container for social media icons */
.social-icons {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 20px;
}

/* Individual social icon link */
.social-icons a,
.social-icons span {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 20px;
}

/* Contact info container */
.contact-info {
  margin-bottom: 20px;
}

/* Individual contact item row */
.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  font-size: 14px;
}

/* Icon in contact item */
.contact-item i {
  color: var(--primary-color);
  width: 15px;
  margin-right: 10px;
  flex-shrink: 0;
}

/* Text and links in contact item */
.contact-item span,
.contact-item a {
  color: var(--text-color);
  text-decoration: none;
}

/* Download CV as PDF button */
.export-btn {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 12px 0;
  width: 100%;
  font-size: 17px;
  font-weight: 300;
  text-decoration: none;
  display: block;
  text-align: center;
  border-radius: 25px;
}

/* Main content area */
.right-section {
  min-width: 0;
}

/* Header for each section with icon */
.section-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  color: var(--primary-color);
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 10px;
}

/* Icon in section header */
.section-header i {
  margin-right: 10px;
}

/* Title in section header */
.section-header h2 {
  font-size: 28px;
  font-weight: 500;
  font-family: "Poppins", sans-serif;
}

/* Paragraph text in about section */
.about-text {
  margin-bottom: 15px;
  line-height: 1.5;
}

/* 3-column grid for skills */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 15px;
}

/* Skill name label */
.skill-name {
  font-size: 14px;
  margin-bottom: 8px;
  font-weight: 400;
}

/* Skill progress bar background */
.skill-bar {
  width: 100%;
  height: 8px;
  background-color: var(--progress-bg);
  border-radius: 4px;
  overflow: hidden;
}

/* Skill progress bar fill */
.skill-fill {
  height: 100%;
  background-color: var(--primary-color);
}

/* Separator between skill groups */
.skills-divider {
  width: 100%;
  height: 1px;
  background-color: var(--border-color);
  margin: 30px 0;
}

/* Timeline container */
.timeline {
  position: relative;
}

/* Vertical line for timeline */
.timeline::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 10px;
  bottom: 0;
  width: 2px;
  background-color: var(--border-color);
}

/* Timeline item (education or experience) */
.education-item,
.experience-item {
  margin-bottom: 30px;
  position: relative;
  padding-left: 20px;
}

/* Circle marker on timeline */
.timeline-dot {
  position: absolute;
  left: 0;
  top: 5px;
  width: 10px;
  height: 10px;
  background-color: var(--primary-color);
  border-radius: 50%;
}

/* Date range for timeline item */
.item-date {
  font-size: 12px;
  color: var(--text-color);
  float: right;
  margin-bottom: 5px;
}

/* Title of timeline item */
.item-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 5px;
  font-family: "Poppins", sans-serif;
}

/* Subtitle (place/company name) */
.item-subtitle {
  font-size: 14px;
  color: var(--text-light);
  font-style: italic;
  margin-bottom: 10px;
  font-family: "Poppins", sans-serif;
}

/* Description text for timeline item */
.item-description {
  font-size: 14px;
  line-height: 1.5;
}

/* Layout adjustments for smaller screens */
@media only screen and (max-width: 768px) {
  /* Single column layout */
  .container {
    grid-template-columns: 1fr;
  }
  
  /* Remove sticky positioning on mobile */
  .left-section {
    position: relative;
    top: 0;
  }
  
  /* Stack skills vertically */
  .skills-grid {
    grid-template-columns: 1fr;
  }
}
