@import "theme.css";
@import "./sections/header.css";
@import "./sections/about-me.css";
@import "./sections/skills.css";
@import "./sections/projects.css";
@import "./sections/footer.css";
@import "./animation.css";

* {
  box-sizing: border-box;
}

:root {
  font-size: var(--p-font-size);
  line-height: var(--p-line-height);
  letter-spacing: var(--p-letter-spacing);
  font-family: "Chakra Petch", sans-serif;
  font-weight: 400;
  font-style: normal;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
}

/* Grid Background Wrapper */
.grid-background-wrapper {
  min-height: 100vh;
  width: 100%;
  background-color: var(--foreground-color);
  position: relative;
}

/* Top Fade Grid Background */
.grid-background-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: linear-gradient(to right, var(--p-100) 1px, transparent 1px),
                    linear-gradient(to bottom, var(--p-100) 1px, transparent 1px);
  background-size: 20px 30px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 60%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 60%, transparent 100%);
}

/* Page Content */
.page-content {
  position: relative;
  z-index: 1;
}

a {
  text-decoration: none;
}

section {
  margin-top: 120px;
  margin-bottom: 120px;
}

.container {
  margin: 0 auto;
  max-width: 1536px;
  padding: 0 2rem;
}

.section__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.section__title {
  font-size: var(--h1-font-size);
  line-height: var(--h1-line-height);
  font-weight: bold;
  color: var(--p-950);
  text-transform: capitalize;
}

.section__description {
  text-align: center;
  max-width: 65ch;
  color: var(--n-500);
}
