/* =========================
  1) Global variables
  ========================= */
:root {
  --color-light: #fff;
  --color-dark: #222;
  --color-gray: #555;
  --section-light: #D1D1D1;
  --section-dark: #121111;
  --space-lg: 2rem;
  --space-sm: 1rem;
  --color-main: #35ca7f;
}

/* =========================
  2) Base / Reset
  ========================= */
html,
body {
margin: 0;
  padding: 0;
  min-height: 100%;
  overflow-x: clip;   /* instead of hidden */
  font-family: "Datatype", monospace;
}

section {
  position: relative;
  width: 100%;
  min-height: 100vh;
}

/* =========================
  3) Main hero
  ========================= */
#hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background-image: url("../img/portfolio2.JPG");
  background-size: cover;
  background-position: center;
}

/* Top layer for social / scroll / info */
.hero-content {
  position: absolute;
  inset: 0;
  z-index: 10;
  color: var(--color-light);
  pointer-events: none;
  width: 100%;
}

#hero h2 {
  color: var(--color-light);
  font-size: 24px;
  margin-top: 10px;
}

#hero img {
  width: 40px;
  height: 40px;
}

/* =========================
  4) Large moving text
  ========================= */
.scrolling-container {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  overflow: hidden;
  transform: translateY(-50%);
  white-space: nowrap;
  pointer-events: none;
  font-size: 200px;
}

.scrolling-track {
  display: inline-flex;
  width: fit-content;
  animation: scroll 20s linear infinite;
}

.scrolling-text {
  color: var(--color-light);
  padding-right: 3rem;
  flex-shrink: 0;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* =========================
  5) Top navigation
  ========================= */
nav {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 15%;
  font-size: 20px;
  pointer-events: auto;
}

nav a {
  display: inline-block;
  margin: var(--space-sm);
  color: var(--color-light);
  text-decoration: none;
  cursor: pointer;
}

nav a:hover {
  color: var(--color-main);
  text-decoration: underline;
}

/* =========================
  6) Hero bottom blocks
  ========================= */
#social,
#scroll,
#info {
  position: absolute;
  bottom: var(--space-lg);
  pointer-events: auto;
}

#social {
  left: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

#scroll {
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  font-size: 20px;
  color: var(--color-light);
}

#info {
  right: var(--space-lg);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  text-align: right;
  cursor: default;
}

#hero h2.subtitle:hover {
  color: var(--color-main);
}

.socialLink {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-light);
  text-decoration: none;
  font-size: 20px;
}

.socialLink:hover {
  color: var(--color-main);
  text-decoration: underline;
}

/* =========================
  7) Content sections
  ========================= */
#projects {
  background: var(--section-dark);
  color: var(--color-light);
}

#skills {
  background: var(--section-light);
  color: var(--color-dark);
}

#contact{
  background: var(--section-light);
  color: var(--color-dark);
}

.wip {
  width: min(720px, 90%);
  margin: 3rem auto 1.5rem;
  padding: 2rem 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  background: linear-gradient(120deg, rgba(53, 202, 127, 0.12), rgba(255, 255, 255, 0.06));
  backdrop-filter: blur(6px);
  position: relative;
  overflow: hidden;
}

.wip::before {
  content: "";
  position: absolute;
  inset: -40% 0 0 -60%;
  background: linear-gradient(90deg, transparent, rgba(53, 202, 127, 0.25), transparent);
  transform: rotate(8deg);
  animation: wip-sheen 2.6s linear infinite;
}

.wip h3 {
  margin: 0 0 0.5rem;
  font-size: 28px;
  color: var(--color-main);
  letter-spacing: 0.02em;
}

.wip p {
  margin: 0;
  font-size: 18px;
  color: var(--color-light);
}

@keyframes wip-sheen {
  0% {
    transform: translateX(-60%) rotate(8deg);
  }
  100% {
    transform: translateX(120%) rotate(8deg);
  }
}

.skill {
  margin: 5px 0;
}

/* =========================
  8) Mobile / tablet responsive
  ========================= */
@media (max-width: 768px) {
  nav {
    gap: 1.25rem;
    font-size: 16px;
    flex-wrap: wrap;
  }

  nav a {
    margin: 0.5rem;
  }

  .scrolling-container {
    font-size: 90px;
  }

  #hero h2 {
    font-size: 16px;
    margin-top: 6px;
  }

  #hero img {
    width: 30px;
    height: 30px;
  }

  .socialLink {
    font-size: 16px;
  }

  #social,
  #scroll,
  #info {
    bottom: var(--space-sm);
  }

  #social {
    left: var(--space-sm);
    max-width: 38vw;
  }

  #scroll {
    font-size: 16px;
  }

  #info {
    right: var(--space-sm);
    max-width: 38vw;
  }

  #skill {
    margin-top: 0;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem 0.5rem;
  }

  #hardSkillsList,
  #softSkillsList {
    width: min(520px, 92%);
    padding: 16px;
    border-radius: 16px;
  }

  .skillTitle {
    font-size: 24px;
  }

  .skill-group-title {
    font-size: 18px;
  }

  .skill-group-items {
    gap: 10px;
    padding: 12px;
  }

  .skill {
    padding: 6px 8px;
  }

  .skillIcon {
    width: 18px;
    height: 18px;
  }

  section {
    min-height: auto;
    padding: 3.5rem 0;
  }

  .section-title {
    position: static;
    font-size: 20px;
    padding: 0.75rem 0.75rem;
  }

  #aboutMe {
    width: min(560px, 92%);
    padding: 0;
    font-size: 34px;
    text-align: center;
  }

  #right,
  #left {
    text-align: center;
  }

  #myWork {
    width: min(260px, 75%);
    margin: 1.5rem auto 0;
    height: 56px;
    font-size: 16px;
    min-width: 200px;
    margin-left: auto;
    margin-right: auto;
  }

  .wip {
    width: min(560px, 92%);
    margin: 2.5rem auto 1.25rem;
    padding: 1.5rem 1.5rem;
  }

  .wip h3 {
    font-size: 22px;
  }

  .wip p {
    font-size: 16px;
  }
}

/* =========================
  9) Intro
  ========================= */

#about {
  background: var(--section-dark);
  color: var(--color-light);
  display: block;
}

.section-title {
  position: sticky;
  color: var(--color-main);
  width: 100%;
  top: 0;
  z-index: 30;
  padding: 0.75rem 1rem;
  font-size: 25px;
  margin-bottom: var(--space-sm);
}

#aboutMe {
  width: 80%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.1;
  font-weight: 700;
  padding-left: 10%;
  padding-top: 1%;
  font-size: 65px;
  text-align: end;
  text-wrap: balance;
}
.accent {
  color: var(--color-main);
}

#right {
  color: white;
  text-align: right;
}
#left {
  color: white;
  text-align: left;
}

#myWork{
  width: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  height: 70px;
  background: linear-gradient(120deg, rgba(53, 202, 127, 0.12), rgba(255, 255, 255, 0.06));
  backdrop-filter: blur(6px);
  color: var(--color-light);
  font-size: 20px;
  font-weight: 700;
  border-radius: 5px;
  margin-left: 45%;
  margin-bottom: 10%;
  margin-right: 0;
  z-index: 0;
  cursor: pointer;
}

#myWork:before {
  content: "";
  position: absolute;
  inset: -40% 0 0 -60%;
  background: linear-gradient(90deg, transparent, rgba(53, 202, 127, 0.25), transparent);
  transform: rotate(8deg);
  animation: wip-sheen 3s linear infinite;
  cursor: pointer;
}

#btnLabel{
  color: var(--color-gray);
  font-size: 18px;
  margin-left: 45%;
  margin-bottom: 0.5rem;
  width: 200px;
  text-align: center;
}


/* =========================
  9) Skills
  ========================= */

#skill {
  margin-top: -3%;
  background: var(--section-light);
  color: var(--color-dark);
  display:flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10%;
  flex-wrap: wrap;
}

#hardSkillsList, #softSkillsList {
  margin: 3%;
  color: var(--section-light);
  width: 30%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--section-dark);
  padding: 20px;
  border-radius: 20px;
  min-width: 350px;
}

.skill-group-title {
  width: 100%;
  color: var(--color-main);
  font-size: 20px;
  margin-bottom: 10px;
  text-align: center;
}

.skillTitle{
  width: 100%;
  color: var(--color-main);
  font-size: 30px;
  margin-bottom: 10px;
  text-align: center;
}

.skill-group-items {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 5%;
  padding: 20px;
  flex-wrap: wrap;
}

.skill{
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--color-light);
  padding: 5px;
  border-radius: 10px;
  cursor: default;
}

.skill:hover{
    transition: 0.3s;
    box-shadow: 0 0 10px var(--color-main);
}

.skillIcon{
  width: 15px;
  height: 15px;
}