/*
 * Stylesheet for the generated CV website.
 * The colour palette uses blue accents to complement the header image.
 * Adjust variables below to customise primary colours and spacing.
 */

/* Base Styles */
body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

a {
  color: #007bff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Hero Section */
.hero {
  position: relative;
  height: 80vh;
  background-image: url('../images/hero.png');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}

.hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 1rem;
}

.hero-content h1 {
  font-size: 3rem;
  margin: 0 0 0.5rem;
  font-weight: 700;
}

.hero-content .subtitle {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  font-weight: 300;
}

.btn {
  display: inline-block;
  background-color: #007bff;
  color: #fff;
  padding: 0.8rem 1.6rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s ease;
}

.btn:hover {
  background-color: #0062cc;
}

/* Navigation Bar */
.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 100;
}

.navbar ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  justify-content: center;
}

.navbar li {
  margin: 0 1rem;
}

.navbar a {
  display: block;
  padding: 1rem 0;
  color: #333;
  font-weight: 500;
  transition: color 0.2s ease;
}

.navbar a:hover {
  color: #007bff;
}

/* Section Styling */
section {
  padding: 4rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

section h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
  color: #222;
}

/* About Section */
.about-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.summary,
.personal-info {
  flex: 1;
  min-width: 260px;
}

.summary h3,
.personal-info h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: #007bff;
}

.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-list li {
  margin-bottom: 0.4rem;
  line-height: 1.4;
}

/* Education Section */
.education-entry {
  margin-bottom: 2rem;
}

.education-entry h3 {
  margin: 0;
  color: #007bff;
  font-size: 1.2rem;
}

.education-entry p {
  margin: 0.2rem 0 0;
}

/* Timeline Styling */
.timeline {
  position: relative;
  padding-left: 2.5rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 1rem;
  top: 0;
  width: 2px;
  height: 100%;
  background-color: #007bff;
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
  padding-left: 1.5rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 0.5rem;
  top: 0.4rem;
  width: 0.8rem;
  height: 0.8rem;
  background-color: #fff;
  border: 2px solid #007bff;
  border-radius: 50%;
}

.timeline-item .date {
  font-weight: 600;
  color: #007bff;
  display: block;
  margin-bottom: 0.3rem;
}

.timeline-item h4 {
  margin: 0 0 0.2rem;
  font-size: 1.2rem;
  font-weight: 600;
}

.timeline-item p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Skills Section */
.skill-category {
  margin-bottom: 2.5rem;
}

.skill-category h3 {
  font-size: 1.35rem;
  color: #007bff;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
}

.skill-category h3 i {
  margin-right: 0.6rem;
}

.skill-category ul {
  list-style: disc;
  margin-left: 1.5rem;
  padding: 0;
}

.skill-category ul li {
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

/* Courses Section */
.courses-list h3 {
  margin-top: 1.5rem;
  font-size: 1.35rem;
  color: #007bff;
}

.courses-list ul {
  list-style: disc;
  margin-left: 1.5rem;
  padding: 0;
  margin-bottom: 0;
}

.courses-list ul li {
  margin-bottom: 0.4rem;
  line-height: 1.4;
}

/* Contact Section */
.contact-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.contact-list li {
  margin-bottom: 0.7rem;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
}

/* Contact icons */
.contact-list .icon {
  color: #007bff;
  margin-right: 0.6rem;
  font-size: 1.2rem;
}

.contact-list a {
  margin-right: 0.3rem;
}

/* Footer */
.footer {
  background-color: #f8f8f8;
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem;
  color: #666;
}

/* Responsive Queries */
@media (max-width: 992px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
  .hero-content .subtitle {
    font-size: 1.1rem;
  }
}

/* Additional responsive improvements for small screens */
@media (max-width: 600px) {
  /* Reduce hero height and font sizes */
  .hero {
    height: 60vh;
  }
  .hero-content h1 {
    font-size: 2rem;
  }
  .hero-content .subtitle {
    font-size: 1rem;
  }
  /* Allow navigation items to wrap on small screens */
  .navbar ul {
    flex-wrap: wrap;
  }
  .navbar li {
    margin: 0.5rem;
  }
  /* Reduce section padding */
  section {
    padding: 2rem 1rem;
  }
  /* Work experience cards stack fully on small screens (default) */
  .exp-grid {
    grid-template-columns: 1fr;
  }
  /* Contact cards stack content vertically */
  .contact-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .contact-meta .value {
    font-size: 1rem;
  }
  /* About section photo smaller */
  #about .about-photo {
    max-width: 140px;
    margin-bottom: 1rem;
  }
}

@media (max-width: 768px) {
  .hero {
    height: 70vh;
  }
  .hero-content h1 {
    font-size: 2rem;
  }
  .hero-content .subtitle {
    font-size: 0.95rem;
  }
  .navbar ul {
    flex-wrap: wrap;
  }
  .navbar li {
    margin: 0.5rem;
  }
  section {
    padding: 3rem 1.5rem;
  }
  .timeline::before {
    left: 0.8rem;
  }
  .timeline-item {
    padding-left: 1rem;
  }
  .timeline-item::before {
    left: -0.2rem;
  }
}