:root {
  /* Simplified custom properties for validator compatibility */
  --gray-50:  #f9f9f9;
  --gray-100: #f0f0f0;
  --gray-200: #e0e0e0;
  --gray-300: #cccccc;
  --gray-400: #b3b3b3;
  --gray-500: #999999;
  --gray-600: #808080;
  --gray-700: #666666;
  --gray-800: #4d4d4d;
  --gray-900: #1a1a1a;

  --accent-green: #4CAF50;
  --accent-beige: #e6d7b8;
  --content-bg: #f5f5f5;

  --font-body: "Roboto", sans-serif;
  --font-heading: "Caveat", cursive;
}

/* GLOBAL STYLES */
html {
  box-sizing: border-box;
  font-size: 1rem;
}
*, *::before, *::after {
  box-sizing: inherit;
}
body {
  background-color: var(--gray-50);
  color: var(--gray-800);
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.2rem;
  line-height: 1.5;
}
h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 400;
  margin: 0;
  color: var(--gray-900);
}
h1 { font-size: 3rem; line-height: 1; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

a { color: var(--accent-green); }
a:hover { color: var(--accent-beige); text-decoration: none; }

footer a { color: var(--accent-beige); }
footer a:hover { color: var(--accent-green); }

.btn {
  background-color: var(--accent-green);
  color: var(--gray-50);
  text-transform: uppercase;
  font-size: 1.2rem;
  display: inline-block;
  padding: 0.4rem;
  border-radius: 0.25rem;
  text-decoration: none;
}

.content-wrapper {
  margin: 0 auto;
  padding: 1rem;
  max-inline-size: 56rem;
}

/* HOME PAGE */
.home {
  background: url("images/html5-css3-banner.webp") no-repeat;
  background-size: cover;
  display: flex;
  flex-direction: column;
}
.home .content-wrapper {
  flex: 1 0 auto;
  padding: 0.6rem;
}
.content-bg {
  background-color: var(--content-bg);
  padding: 1.2rem;
}

/* RESUME PAGE */
.resume header {
  position: relative;
  padding: 0;
  margin: 0;
}
.resume header::before {
  background: url("images/html5-css3-banner.webp") no-repeat center;
  background-size: cover;
  content: "";
  display: block;
  position: absolute;
  inset: 0;
  z-index: -1;
  block-size: 12.5rem;
}
.resume header h1,
.resume header h2 {
  margin: 0;
}
.resume header .content-wrapper {
  padding-block-start: 12.5rem;
  position: relative;
  z-index: 1;
}

.resume-section {
  margin-block-end: 2rem;
}
.resume-section h2 {
  border-bottom: 2px dashed var(--gray-300);
}

/* WORK EXPERIENCE & EDUCATION */
.work-item {
  margin-block: 1.5rem;
}
.work-details p,
.education-item p {
  margin: 0;
}
.work-item h3 {
  margin-block-end: 0.25rem;
  font-weight: 700;
}
.work-details p {
  font-size: 1rem;
  margin-block-end: 0.25rem;
  color: var(--gray-600);
}
.work-summary ul {
  list-style: square;
  padding-inline-start: 1.2rem;
}
.work-summary li {
  margin-block-end: 0.3rem;
}

/* PROJECTS */
.project-item {
  margin-block: 1.5rem;
}
.project-item img {
  inline-size: 100%;
  margin-block-end: 0.6rem;
}

/* FOOTER */
footer {
  background-color: var(--gray-900);
  color: var(--gray-300);
  text-align: start;
  padding: 0.6rem;
}
.socials {
  list-style: none;
  padding: 0;
}
.socials li {
  display: inline-block;
  margin-inline-start: 0.6rem;
}
.socials img {
  inline-size: 2rem;
}
.socials img:hover {
  opacity: 0.5;
}

/* MEDIA QUERIES */
/* Small tablet: 31rem and up */
@media screen and (min-inline-size: 31rem) {
  h1 { font-size: 4rem; }
  h2 { font-size: 2.6rem; }

  .resume header::before {
    block-size: 23.5rem;
  }
  .resume header .content-wrapper {
    padding-block-start: 23.5rem;
  }
}

/* Tablet: 40rem and up */
@media screen and (min-inline-size: 40rem) {
  .project-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 1rem;
  }
  .project-item img {
    inline-size: 100%;
    margin-block-end: 0;
  }
}

/* Desktop: 54rem and up */
@media screen and (min-inline-size: 54rem) {
  .project-item {
    display: flow-root;
  }
  .project-item img {
    inline-size: 19rem;
    float: inline-start;
    margin-inline-end: 1rem;
  }
  .work-item {
    display: grid;
    grid-template-columns: 19rem 1fr;
    column-gap: 1rem;
  }
  footer {
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    text-align: unset;
  }
}

/* Layout Helpers */
html, body {
  height: 100%;
}

.page-container {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.content-wrapper {
  flex: 1 0 auto;
}

footer {
  flex-shrink: 0;
}
