/* === Root Variables === */
:root {
  --text-size: 20px;
  --text-weight: 400;

  --heading-size: 45px;
  --heading-top-margin: 100px;

  --highlight-color: #e68a2e; /* orange for header */
  --background-color: #fdfbe9;
  --card-bg: #f7f4dc; /* darker than background */
  --border-color: var(--highlight-color); /* border = highlight color */
}

/* === CSS Reset === */
.long-resume {
  display: none;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  width: 100%;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  font-size: var(--text-size);
  font-weight: var(--text-weight);
  background-color: var(--background-color);
  color: black;
}

/* === Header === */
.header {
  background-color: var(--highlight-color);
  padding: 20px 0;
  width: 100%;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.header-content h2 {
  font-size: 2rem;
  margin: 0;
}

#visitor-count {
  font-size: 1.1rem;
  margin: 0;
}

/* Contact + icons */
.social {
  display: flex;
  align-items: center;
  gap: 15px;
}

.social a {
  text-decoration: underline;
  font-weight: bold;
}

.social img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

#toggle-resume {
  background-color: var(--card-bg); /* white background for contrast */
  color: var(--highlight-color); /* same orange accent */
  border: 2px solid var(--highlight-color);
  border-radius: 8px;
  padding: 8px 15px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

/* === Page Content Wrapper === */
.space {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}

/* === Section Headings === */
h1 {
  font-size: var(--heading-size);
  margin-top: var(--heading-top-margin);
  text-align: center;
  font-weight: bold;
}

/* === Section Wrapper (adds border everywhere except jobs/projects) === */
.skills,
.certifications,
.about-me,
.education-details,
.interests,
#email-container {
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  position: relative;
}

/* === About Me === */
.about-me {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.about-me img {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  object-fit: cover;
}

.about-me p {
  flex: 1;
}
/* === Skills.=== */
.skills ul li {
  margin-bottom: 20px; /* more space specifically for skills */
}

/* === Jobs & Projects Cards === */
.job,
.project {
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
}
.skills:hover,
.certifications:hover,
.about-me:hover,
.education-details:hover,
.interests:hover,
#email-container:hover,
.job:hover,
.project:hover {
  transform: translateY(-5px);
}

.job-heading,
.project-heading {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.job-heading h3,
.project-heading h3 {
  font-size: 1.5rem;
}

.education-details ul,
.skills ul,
.job ul,
.certifications ul,
.interests ul,
.project ul {
  margin-top: 10px;
  padding-left: 20px;
}

.job li,
.project li {
  margin-bottom: 8px;
}

/* === Education, Certifications, Interests === */
.education-details {
  margin: 10px 0;
}

.certification li,
.interest li,
.education-details li {
  margin-bottom: 10px;
  padding-left: 15px; /* shifted right */
}

/* === Contact Section === */
#email-container {
  text-align: center;
}

/* === Responsive Design === */
@media (max-width: 768px) {
  h1 {
    font-size: 30px;
    margin-top: 60px;
  }

  .about-me {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .about-me img {
    width: 200px;
    height: 200px;
  }

  .job-heading,
  .project-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  .header-content {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .social {
    flex-wrap: wrap;
    justify-content: center;
  }

  .social img {
    width: 32px;
    height: 32px;
  }

  .about-me img {
    width: 180px;
    height: 180px;
  }
}
