/*
  Alex Jessup — Portfolio Stylesheet
  Organized with section headers for quick navigation.

  SECTIONS
  1. Globals (Base, Elements)
  2. Navigation
  3. Typography & Headings
  4. Avatar
  5. Projects
  6. Skills (Charts, Donuts, Labels, Table Layout)
  7. Contact Form
  8. Footer
  9. Background Rays
 10. Animations
*/

/* =============================
   1) Globals (Base, Elements)
   ============================= */
.forum-regular {
  font-family: "Forum", serif;
  font-weight: 400;
  font-style: normal;
}

body {
  padding: 1rem;
  background-color: #3b3b3b;
  font-family: 'Inter', Arial, sans-serif;
  max-width: 1040px;
  margin-left: auto;
  margin-right: auto;
}

textarea {
  width: 315px;
}

p {
  color: #FFFFFF;
  font-size: larger;
  font-family: 'Inter', Arial, sans-serif;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  margin-top: 0;
  margin-bottom: 0;
}

img {
  border-radius: 10px;
  width:19%;
  z-index: 1;
}
/* =============================
   2) Navigation
   ============================= */
nav {
  display: flex;
  justify-content: center;
  gap: 40px;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  background-color: #3b3b3b;
  padding-top: 10px;
  padding-bottom: 15px;
  align-items: center;
  text-align: center;
  border-bottom: solid 1px #8271ff;
}

a.nav {
  color: #8271ff;
  font-weight: 600;
  font-size: xx-large;
  font-family: "VT323", monospace;
  text-decoration: none;
}

/* =============================
   3) Typography & Headings
   ============================= */
h1 {
  text-align: center;
  font-family: "VT323", monospace;
  font-size: 50px;
  margin-top: 10px;
  margin-bottom: 10px;
  animation: blink 3s infinite;
  animation-fill-mode: both;
  color: #FFFFFF

}

h2 {
  text-align: center;
  margin-top: 40px;
  font-family: "VT323", monospace;
  font-size: 40px;
  margin-bottom: 5px;
  color: #FFFFFF;
}

h3 {
  text-align: left;
  font-family: "VT323", monospace;
  font-size: 30px;
  margin-top: 0;
  margin-bottom: 0;
  color: #8271ff;
}

h4 {
  text-align: left;
  font-family: "VT323", monospace;
  font-size: 25px;
  margin-top: 0;
  margin-bottom: 0;
  color: #00F8F1;
}

a {
  color: #8271ff;
  font-weight: 700;
  font-size: large;
  text-decoration: none;
}

a:hover {
  opacity: 50%;
}

footer a {
  color: #00F8F1;
  font-weight: 700;
  text-decoration: none;
}

h3 a {
  color: #8271ff;
  text-align: left;
  font-family: "VT323", monospace;
  font-size: 30px;
  margin-top: 0;
  margin-bottom: 0;
  text-decoration: none;
}

h3 a:hover {
  color: #8271ff;
  text-align: left;
  font-family: "VT323", monospace;
  font-size: 30px;
  margin-top: 0;
  margin-bottom: 0;
  opacity: 50%;
}

/* =============================
   4) Avatar
   ============================= */
#avatar {
  display: block;
  margin: auto;
  width: 300px;
  clip-path: circle(50%);
  z-index: 1;
  margin-bottom: -20px;
}

/* =============================
   5) Projects
   ============================= */
.projects {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .25%;
  z-index: 1;
  text-align: center;
}

.projects > a {
  width: 19%;
  display: block;
  opacity: 1 !important;
  position: relative;
}

.projects > a img {
  width: 100%;
  display: block;
  border-radius: 10px;
  transition: all 0.2s ease-in-out;
}

.projects img {
  transition: all 0.2s ease-in-out;
}

/* Standalone images hover */
.projects > img:hover {
  scale: 1.05;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 25px 10px #00F8F1;
}

/* Linked images hover */
.projects > a:hover {
  z-index: 2;
}

.projects > a:hover img {
  scale: 1.05;
  box-shadow: 0 0 25px 10px #00F8F1;
}

/* Ensure project cards on /projects behave like the home page thumbnails */
.projects .project-card {
  width: 19%;
  display: block;

}
.projects .project-card img {
  width: 100%;
  display: block;
  border-radius: 10px;
  transition: all 0.2s ease-in-out;
}
.projects .project-card:hover img {
  scale: 1.05;
  box-shadow: 0 0 25px 10px #00F8F1;
}
/* =============================
   6) Skills (Charts, Donuts, Labels, Table Layout)
   ============================= */
.charts-container {
  --chart-size: clamp(70px, 16vw, 100px);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;

}

/* Skills > Donut charts (per-skill) */
.chart.html {
  width: var(--chart-size);
  height: var(--chart-size);
  border-radius: 100%;
  background: conic-gradient(#8271ff 0deg 340deg, #dbdada 340deg 360deg);
  margin-inline: 15px;

}

.chart.javascript {
  width: var(--chart-size);
  height: var(--chart-size);
  border-radius: 100%;
  background: conic-gradient(#8271ff 0deg 40deg, #dbdada 40deg 360deg);
  margin-inline: 15px;

}

.chart.python {
  width: var(--chart-size);
  height: var(--chart-size);
  border-radius: 100%;
  background: conic-gradient(#8271ff 0deg 195deg, #dbdada 195deg 360deg);
  margin-inline: 15px;

}

.chart.blender {
  width: var(--chart-size);
  height: var(--chart-size);
  border-radius: 100%;
  background: conic-gradient(#8271ff 0deg 260deg, #dbdada 260deg 360deg);
  margin-inline: 15px;

}

.chart.adobe {
  width: var(--chart-size);
  height: var(--chart-size);
  border-radius: 100%;
  background: conic-gradient(#8271ff 0deg 320deg, #dbdada 320deg 360deg);
  margin-inline: 15px;

}

.chart.linux {
  width: var(--chart-size);
  height: var(--chart-size);
  border-radius: 100%;
  background: conic-gradient(rgb(130, 113, 255) 0deg 300deg, #dbdada 300deg 360deg);
  margin-inline: 15px;

}
.donut {
  display: grid;
  place-items: center;
}

/* Skills > Donut hole */
.donut::after {
  content: "";
  display: block;
  width: calc(var(--chart-size) * 0.6);
  height: calc(var(--chart-size) * 0.6);
  background: #3b3b3b;
  border-radius: 100%;
}

/* Skills > Labels */
.skill {
  font-size: 25px;
  width: var(--chart-size);
  text-align: center;
  margin-top: 10px;
  margin-inline: 0;
  font-family: "VT323", monospace;
  color: #00F8F1;
  white-space: nowrap;
}

/* Skills > Table layout */
.charts-container {
  --chart-size: clamp(70px, 16vw, 100px);
}

.charts-container table {
    display: block;
    width: fit-content;
    margin-inline: auto;
    border: 0;
}

.charts-container tr {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.charts-container td {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    border: 0;
}

/* Normalize donut margins so donuts and labels align perfectly */
.chart {
    margin-inline: 0;
}

/* =============================
   7) Contact Form
   ============================= */
#contact {
  display: flex;
  flex-direction: column;
  width: 360px;
  padding: 10px;
  border-radius: 15px;
  margin: 0 auto;
  color: #FFFFFF;
}

/*.form-group {*/
/*  margin-bottom: 12px;*/
/*}*/

#contact input {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 4px;
  background: transparent;
  border: 1px solid #8271ff;
  border-radius: 8px;
  padding: 10px;
  color: #FFFFFF;
  text-align: center;
}

#contact textarea {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 4px;
  background: transparent;
  border: 1px solid #8271ff;
  border-radius: 8px;
  padding: 10px;
  color: #FFFFFF;
}

#contact input::placeholder,
#contact textarea::placeholder {
  color: #00F8F1;
  opacity: .5;
  text-align: center;
}

.contact-methods input[type="radio"] {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #00F8F1;
  border-radius: 50%;
  background: #3b3b3b;
  position: relative;
  cursor: pointer;
  outline: none;
}

.contact-methods input[type="radio"]:checked::before {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  background: #00F8F1;
  border-radius: 50%;
  position: absolute;
  inset: 0;
  margin: auto;
}

.contact-methods {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 0;
  margin-top: 0;
  color: #00F8F1;
}

.label {
  text-align: center;
  width: 100%;
  color: #00F8F1;
  margin-bottom: 0;
  margin-top: 0;
}

.contact-methods label {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-start;
  margin-bottom: 0;
  margin-top: 0;
}

.button-group {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 0px 0 10px 0;
}

.button-group input[type="submit"],
.button-group input[type="reset"] {
  width: auto;
  min-width: 90px;
  padding: 6px 18px;
  font-size: medium;
  border-radius: 8px;
  border: none;
  background: #8271ff;
  color: #fff;
  cursor: pointer;
}
.btn.btn-secondary.mt-1 {
  background: #8271ff;
  color: #fff;
  border-radius: 8px;
  font-size: medium;
  border: none;
  cursor: pointer;
  opacity: 1;
}


/* =============================
   8) Footer
   ============================= */
footer {
  text-align: center;
  font-size: small;
  color:#FFFFFF;
  margin-top:25px;
}


/* =============================
   9) Background Rays
   ============================= */
.s__rays {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
  height: 100%;
  width: 350px;
  z-index: -1;

}

.a-rays {
    position: absolute;
    display: block;
    width: 100%;
    height: 100%;
    opacity: .3;
    pointer-events: none;
    transform: skew(-20deg);
    transition: opacity .7s linear;
    will-change: opacity;
    z-index: -1;
}

.a-rays .a__scene {
    position: absolute;
    top: 0;
    left: 50%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    transform: translate3d(-50%,0,0);
}
.a-rays .a__scene path {
    stroke-linecap: round;
    stroke-width: 2px;
    animation: a-rays-move 25s linear infinite;
    will-change: transform;
    z-index: -1;
}

/* =============================
   10) Animations
   ============================= */
@keyframes blink {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

/* Background Rays animation */
@keyframes a-rays-move {
  0% {
      transform: translateZ(0);
  }
  100% {
      transform: translate3d(0,-100%,0);
  }
}

/* =============================
   Anchor offset for sticky navigation
   Ensures in-page anchors (e.g., #about) are scrolled below the sticky nav
   by providing a top padding to the scroll container and per-element margins.
   Adjust --nav-height if the nav height changes.
   ============================= */
:root {
  /* Approximate sticky nav height (padding + line-height). Tweak as needed. */
  --nav-height: 35px;
}

/* If the nav wraps into two lines on smaller screens, increase the offset */
@media (max-width: 900px) {
  :root { --nav-height: 120px; }
}

/* Native offset for hash navigation and programmatic scrolling */
html {
  scroll-padding-top: var(--nav-height);
  scroll-behavior: smooth; /* Optional: comment out if not desired */
}

/* Ensure any element with an id (typical anchor targets) sits below nav */
[id] {
  scroll-margin-top: var(--nav-height);
}

