@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;500;700&display=swap');

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  color: #333;
  background: #f9f9f9;
}

/* Layout */
.container {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 14%;
  background: #2c2c2c;
  color: #fff;
  padding: 30px 20px;
}

.sidebar h2 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid #555;
  padding-bottom: 4px;
  margin-top: 25px;
  margin-bottom: 10px;
}

.sidebar p,
.sidebar li {
  font-size: 13px;
  line-height: 1.6;
}

.sidebar a {
  color: #1e90ff;
  text-decoration: none;
}

.sidebar a:hover {
  text-decoration: underline;
}

.sidebar section {
  background: #2c2c2c;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Intro Header */
.intro {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.name-title h1 {
  margin: 0;
  font-size: 45px;
  font-weight: 700;
}

.name-title p {
  margin: 5px 0 0;
  font-size: 18px;
  color: #555;
}

.contact p {
  margin: 2px 0;
  font-size: 16px;
  color: #444;
}

/* Main content */
.content {
  flex: 1;
  padding: 40px 60px;
  background: #fff;
}

.content h2 {
  font-size: 20px;
  border-bottom: 2px solid #ddd;
  padding-bottom: 5px;
  margin-top: 0;      /* prevent extra top spacing */
  margin-bottom: 15px;
  font-weight: 600;
}

.job {
  margin-bottom: 25px;
}

.job h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.job span {
  font-size: 13px;
  color: #777;
}

.job a {
  color: #1e90ff;
  text-decoration: none;
}

.job a:hover {
  text-decoration: underline;
}

/* Skills as tags */
.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
}

.skills li {
  background: #eee;
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 13px;
}

/* Card style for all sections */
.content section {
  background: #fff;
  border-radius: 8px;
  padding: 25px 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* ================================
   Responsive Design
================================ */

/* Tablets (<= 1024px) */
@media (max-width: 1024px) {
  .container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .sidebar {
    width: 100%;
    text-align: center;
    padding: 20px;
  }

  .content {
    padding: 30px 20px;
    text-align: center;
  }

  .intro {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
  }

  .contact {
    text-align: center;
  }

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

  .job ul li {
    margin-bottom: 6px;
  }
}

/* Phones (<= 768px) */
@media (max-width: 768px) {
  .name-title h1 {
    font-size: 28px;
  }

  .name-title p {
    font-size: 14px;
  }

  .contact {
    font-size: 14px;
  }

  .skills {
    justify-content: center;
  }
}

/* Small Phones (<= 480px) */
@media (max-width: 480px) {
  .sidebar {
    padding: 15px;
  }

  .content {
    padding: 20px 15px;
  }

  .name-title h1 {
    font-size: 24px;
  }

  .name-title p,
  .contact p {
    font-size: 13px;
  }

  .skills {
    justify-content: center;
  }
}
