/* remove randomness (reset) */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* base */
body {
  font-family: "Segoe UI", Arial, sans-serif;
  background-color: #0f0f0f;
  color: #e6e6e6;
  line-height: 1.6;
}

/* width of page */
header,
section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 20px;
}

/* navigation bar */
nav {
  background-color: #141414;
  border-bottom: 1px solid #222;
  padding: 18px 0;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 28px;
}

nav a {
  text-decoration: none;
  color: #bfbfbf;
  font-size: 0.9rem;
  letter-spacing: 0.2px;
  transition: color 0.2s ease;
}

nav a:hover {
  color: #ffffff;
}

/* hero */
header {
  text-align: center;
  padding-top: 110px;
  padding-bottom: 80px;
}

header h1 {
  font-size: 2.4rem;
  font-weight: 600;
  margin-bottom: 8px;
}

header h2 {
  font-size: 1rem;
  font-weight: 400;
  color: #9a9a9a;
  margin-bottom: 22px;
}

.content-card h2 {
  font-size: 1.25rem; /* smaller */
  font-weight: 500; /* less bold */
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid #2a2a2a;
  color: #eaeaea;
}

header p {
  font-size: 0.95rem;
  color: #cfcfcf;
  margin-bottom: 32px;
}

/* button to courses */
header a {
  display: inline-block;
  padding: 10px 22px;
  background-color: #1c1c1c;
  border: 1px solid #2a2a2a;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}

header a:hover {
  background-color: #242424;
  border-color: #3a3a3a;
}

/* section titles */
section h3 {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 20px;
  border-bottom: 1px solid #313030;
  padding-bottom: 8px;
}

/* paragraph */
section p {
  font-size: 0.95rem;
  color: #cfcfcf;
  margin-bottom: 16px;
}

/*  skills grid  */
section ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

section li {
  background-color: #171717;
  border: 1px solid #222;
  padding: 12px;
  font-size: 0.9rem;
}

.primary-skills li {
  color: #ffffff;
}

.secondary-skills li {
  color: #9aa0a6;
}

.primary-skills,
.secondary-skills {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.course-card {
  margin-bottom: 50px;
}

/* contact me */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-form input,
.contact-form textarea {
  padding: 10px;
  font-size: 16px;
  width: 100%;
  box-sizing: border-box;
}

.contact-form button {
  width: fit-content;
  padding: 10px 18px;
  font-size: 16px;
  cursor: pointer;
}

/*  education */
.page-container {
  width: 90%;
  max-width: 1100px;
  margin: 40px auto;
}

.page-hero {
  text-align: center;
  margin-bottom: 40px;
}

.page-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.page-hero p {
  max-width: 750px;
  margin: 0 auto;
  line-height: 1.7;
}

.content-card {
  background: #1e1e1e;
  padding: 25px;
  margin-bottom: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.content-card h2 {
  margin-bottom: 15px;
  font-size: 1.6rem;
}

.content-card p {
  line-height: 1.7;
}

.focus-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.focus-box {
  background: #2a2a2a;
  padding: 20px;
  border-radius: 10px;
}

.focus-box h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.active {
  border-bottom: 2px solid white;
}

/*  new home */
.home-hero {
  padding-top: 60px;
  padding-bottom: 30px;
}

.home-hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #f5f5f5;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: #9f9f9f;
  margin-bottom: 20px;
}

.hero-button {
  display: inline-block;
  margin-top: 18px;
  padding: 12px 24px;
  background: #1f1f1f;
  border: 1px solid #2d2d2d;
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.hero-button:hover {
  background: #282828;
  border-color: #3a3a3a;
  transform: translateY(-1px);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.info-box {
  background: #252525;
  border: 1px solid #2f2f2f;
  border-radius: 10px;
  padding: 18px;
  min-height: 90px;
  display: flex;
  align-items: flex-start;
}

.info-box p {
  margin: 0;
  line-height: 1.6;
}

/*  new about */
.profile-img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 20px;
  border: 3px solid #2a2a2a;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* new course descriptions */
.course-focus {
  margin-bottom: 20px;
  color: #bfbfbf;
  font-size: 0.96rem;
}

.course-section {
  background: #252525;
  border: 1px solid #2e2e2e;
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 16px;
}

.course-section h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #ffffff;
}

.course-section p:last-child {
  margin-bottom: 0;
}

.course-artifacts {
  margin-top: 18px;
  background: #222222;
  border: 1px solid #2d2d2d;
  border-radius: 10px;
  padding: 16px 18px;
}

.course-artifacts summary {
  cursor: pointer;
  font-weight: 600;
  color: #f1f1f1;
  margin-bottom: 12px;
}

.course-artifacts[open] summary {
  margin-bottom: 12px;
}

.artifact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.artifact-list li {
  margin-bottom: 10px;
}

.artifact-list li:last-child {
  margin-bottom: 0;
}

.artifact-list a {
  color: #d7d7d7;
  text-decoration: none;
  border-bottom: 1px solid #3a3a3a;
  padding-bottom: 2px;
}

.artifact-list a:hover {
  color: #ffffff;
  border-color: #ffffff;
}

/* new contact */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #f1f1f1;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 15px;
  background: #252525;
  border: 1px solid #313131;
  border-radius: 10px;
  color: #f0f0f0;
  font-size: 0.95rem;
  font-family: inherit;
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #4a4a4a;
  background: #2a2a2a;
}

.contact-form textarea {
  resize: vertical;
  min-height: 160px;
}

.form-message {
  margin: 18px 0;
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 0.95rem;
  border: 1px solid;
}

.success-message {
  background: rgba(60, 125, 60, 0.15);
  border-color: rgba(90, 170, 90, 0.35);
  color: #b9e7b9;
}

.error-message {
  background: rgba(140, 50, 50, 0.15);
  border-color: rgba(190, 80, 80, 0.35);
  color: #f0b3b3;
}

/* mobile stuff */
@media (max-width: 700px) {
  body {
    overflow-x: hidden;
  }

  nav {
    width: 100%;
    padding: 14px 0;
  }

  nav ul {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 0;
    margin: 0;
  }

  nav a {
    font-size: 1rem;
  }
}
