:root {
  --bg: #f4f6fb;
  --pn: #fff;
  --tx: #0c1226;
  --mu: #56627d;
  --sig: #b45f00;
  --ice: #0369a1;
  --ln: #d7deec;
  --gl: rgba(180, 95, 0, 0.16);
  --e: cubic-bezier(0.2, 0.7, 0.2, 1);
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #080d19;
    --pn: #0f1629;
    --tx: #e8edf7;
    --mu: #8b97b0;
    --sig: #ffb224;
    --ice: #6ee7ff;
    --ln: #1c2640;
    --gl: rgba(255, 178, 36, 0.15);
  }
}
:root[data-theme="dark"] {
  --bg: #080d19;
  --pn: #0f1629;
  --tx: #e8edf7;
  --mu: #8b97b0;
  --sig: #ffb224;
  --ice: #6ee7ff;
  --ln: #1c2640;
  --gl: rgba(255, 178, 36, 0.15);
}
*,
*::before,
*::after {
  box-sizing: inherit;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 70px);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--tx);
  font:
    400 1.02rem/1.7 "Chakra Petch",
    system-ui,
    sans-serif;
  overflow-x: hidden;
}
a {
  color: inherit;
}
.wrap {
  max-width: 1080px;
  margin: auto;
  padding: 0 24px;
}
.mono,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
section {
  padding: 100px 0 40px;
}
h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0 0 36px;
  line-height: 1.1;
  position: relative;
  padding-bottom: 16px;
}
h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 72px;
  background: var(--sig);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.9s var(--e) 0.3s;
}
h2.in::after {
  transform: scaleX(1);
}
#bar {
  position: fixed;
  top: env(safe-area-inset-top, 0px);
  left: 0;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, var(--sig), var(--ice));
  transform: scaleX(0);
  transform-origin: 0 50%;
  z-index: 100;
}
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: calc(env(safe-area-inset-top, 0px) + 10px) 20px 10px;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--ln);
}
.logo {
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.04em;
}
.logo b {
  color: var(--sig);
  animation: bl 1.1s steps(1) infinite;
}
.links {
  position: relative;
  display: flex;
}
.links a {
  position: relative;
  z-index: 1;
  padding: 7px 14px;
  border-radius: 99px;
  color: var(--mu);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.3s;
}
.links a:hover,
.links a.on {
  color: var(--tx);
}

body {
  margin: 0;
}

/****************   Nav Section **********************/
nav {
  background-color: navy;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1rem;
  text-decoration: none;
  padding: 1rem, 2rem;
}

/***********************  Footer Section   **************************/
footer {
  background-color: navy;
  color: white;
  display: flex;
  justify-content: center;
  margin-top: 30px;
  padding: 30px 0;
  text-decoration: none;
}

/*********** Splash Page ************************/
header {
  background-color: wheat;
  color: #333;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

header h1 {
  display: flex;
  justify-content: center;
  font-family: "Poppins", sans-serif;
  font-size: 2.5rem;
  color: #3a3a3a;
}

header img {
  width: 250px;
  height: 250px;
  object-fit: cover;
  border: 3px solid #a8895c;
  border-radius: 50%;
  display: block;
}

.address {
  font-size: 0.9rem;
  color: #666;
  font-style: italic;
}

.tagline {
  font-size: 1.1rem;
  color: #555;
  max-width: 500px;
  line-height: 1.5;
}

/************* Sections ********************/
hr {
  border: none;
  height: 4px;
  background-color: black;
}

section h3 {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 1.5rem;
  color: white;
  display: flex;
  justify-content: center;
}

section dl {
  display: grid;
  justify-content: center;
  grid-template-columns: max-content max-content;
  column-gap: 1.5rem;
  row-gap: 0.5rem;
  align-items: baseline;
}

section ul {
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.5rem 1rem;
}

section a {
  color: #6b4f3f;
  text-decoration: none;
}

section a:hover {
  color: #a8895c;
  text-decoration: underline;
}

/**************   Projects   *****************/
.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.card img {
  object-fit: cover;
  border-radius: 20px;
  margin-bottom: 0.8rem;
}

.card {
  background-color: navy;
  border: 2px solid #a8895c;
  border-radius: 20px;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
}

/**************   Responsiveness   *****************/
@media (max-width: 680px) {
  nav {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .three-col {
    grid-template-columns: 1fr;
  }
}

/**************   Contact Page   *****************/
.one-col {
  display: flex;
  flex-direction: column;
  max-width: 500px;
  margin: 2rem auto;
  padding: 1.5rem;
  gap: 1rem;
}

input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.6rem;
  border: 1px solid #a8895c;
  border-radius: 6px;
}

textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.6rem;
  border: 1px solid #a8895c;
  border-radius: 6px;
}

.skills-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.skills-list a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  aspect-ratio: 1 / 1;
  background-color: white;
  border-radius: 12px;
  border: 2px solid #a8895c;

  text-decoration: none;
  color: #6b4f3f;
  padding: 1rem;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
}

.skills-list a:hover {
  background-color: #e8c584;
  color: #4a3a2a;
}

.skills-list i {
  font-size: 2rem;
}

.skills-list span {
  font-size: 0.85rem;
  font-weight: 600;
}
