/* Reset and Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Helvetica', Arial, sans-serif;
  line-height: 1.6;
  background: #f4f4f4;
  color: #333;
}

/* Header & Navigation */
header {
  background: #333;
  color: #fff;
  padding: 1em 0;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
}

nav ul li {
  margin: 0 15px;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 1.1em;
  padding: 5px 10px;
  transition: background 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
  background: #fff;
  color: #333;
  border-radius: 5px;
}

/* Hero Section */
.hero {
  position: relative;
  background: url('hero-bg.png') center center/cover no-repeat;
  height: 70vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  padding: 0 20px;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.hero-overlay {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 3em;
  margin-bottom: 0.5em;
}

.hero p {
  font-size: 1.5em;
  margin-bottom: 1em;
}

.btn {
  background: #333;
  color: #fff;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.btn:hover {
  background: #555;
}

/* Main Content Styling */
main {
  padding: 2em;
  max-width: 960px;
  margin: 20px auto;
  background: #fff;
  border-radius: 5px;
}

/* Resume / Timeline Styles */
.timeline {
  border-left: 2px solid #666;
  margin-left: 40px;
  padding-left: 20px;
}

.timeline-item {
  margin-bottom: 2em;
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -30px;
  background: #666;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  top: 0;
}

/* Improved bullet list styling for work details */
.timeline-item ul {
  list-style-type: disc;     /* use a standard disc */
  margin: 10px 0 0 20px;       /* add top margin and left indent */
}

.timeline-item ul li {
  margin-bottom: 8px;          /* space between items */
  line-height: 1.4;
}

/* Enhanced Skills Card Styles */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5em;
  margin-bottom: 2em;
}

.skill-card {
  background: #eaeaea;
  padding: 1.5em;
  border-radius: 5px;
  text-align: left;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.skill-card h3 {
  text-align: center;
  margin-bottom: 0.8em;
  color: #333;
}

.skill-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.skill-card ul li {
  position: relative;
  padding-left: 1.2em;
  margin-bottom: 0.6em;
  color: #333;
}

.skill-card ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #333;
}

/* Projects Section Styles */
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5em;
  margin-top: 1em;
}

.project-item {
  background: #eaeaea;
  padding: 1.5em;
  border-radius: 5px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.project-item h3 {
  color: #333;
  margin-bottom: 0.6em;
}

.project-item p {
  color: #555;
  line-height: 1.5;
}


/* Footer */
footer {
  text-align: center;
  padding: 1em 0;
  background: #333;
  color: #fff;
  margin-top: 20px;
}

/* Headings */
h2 {
  margin-bottom: 1em;
  color: #333;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
  }

  .hero h1 {
    font-size: 2.5em;
  }

  .hero p {
    font-size: 1.2em;
  }
}
