:root {
  --color-primary: #e9b744;
  --color-secondary: #f9e7cf;
  --color-bg: #202731;
  --color-bg-dark: #161b24;
  --color-accent: #df4d40;
  --color-orange: #dd3f31;
  --font-main: "Prompt", sans-serif;
}

/* --- Basic default tags specifications --- */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-main);
  color: var(--color-secondary);
  background: var(--color-bg);
  overflow-x: hidden;
}

h1 {
  font-size: clamp(2rem, 7vh, 5rem);
  padding: 0 3% 0 6%;
  color: var(--color-primary);
}

h2 {
  font-size: 1.7rem;
}

p {
  font-size: 1.5rem;
  padding: 0 5% 0 10%;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: var(--color-secondary);
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-primary);
}

.siteWrapper {
  overflow-x: hidden;
  position: relative;
}

section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 72vh;
  padding: 100px 0 0 0;
}

/* --- Makes images undraggable --- */
img {
  user-drag: none;
  user-select: none;
  -webkit-user-drag: none;
}

/* --- Selection Color --- */
::selection {
  background: var(--color-primary);
  color: var(--color-bg);
}

/* --- Font Awesome Adjustments --- */
.fa::before {
  font-size: clamp(1.5rem, 5vw, 3rem);
  padding-right: 1rem;
}

/* --- About section --- */
#about {
  padding-bottom: 10vh;
}

#hi {
  align-self: flex-start;
  margin-left: 10%;
  font-size: 2rem;
}

/* --- Nav styles --- */
header {
  width: 100%;
  padding: 2rem;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
}

.nav_links ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  padding: 0;
  margin: 0;
}

.nav_links a {
  font-size: 1.2rem;
  font-weight: 400;
}

/* --- Hamburger button --- */
.menu-btn {
  display: none;
  width: 2rem;
  height: 2rem;
  cursor: pointer;
  z-index: 20;
  position: relative;
}

.menu-btn__lines,
.menu-btn__lines::before,
.menu-btn__lines::after {
  width: 2rem;
  height: 0.2rem;
  background-color: var(--color-secondary);
  transition: all 0.3s ease-in-out;
}

.menu-btn__lines::before,
.menu-btn__lines::after {
  content: "";
  position: absolute;
}

.menu-btn__lines::before { transform: translateY(-0.6rem); }
.menu-btn__lines::after { transform: translateY(0.6rem); }

.menu-btn.open .menu-btn__lines {
  background-color: transparent;
}

.menu-btn.open .menu-btn__lines::before {
  transform: rotate(45deg);
}

.menu-btn.open .menu-btn__lines::after {
  transform: rotate(-45deg);
}

/* --- Skills section --- */
.circle {
  display: flex;
  width: 80%;
  max-width: 1000px;
  margin: 2rem auto;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: -5px 5px 15px rgba(0, 0, 0, 0.5);
}

.left-section {
  flex: 1;
  background-color: var(--color-secondary);
  color: var(--color-bg);
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.left-section h2 {
  font-size: 2rem;
  text-align: center;
}

.right-section {
  flex: 1.5;
  background-color: var(--color-accent);
  padding: 2rem;
  display: flex;
  align-items: center;
}

.right-section ul {
  list-style: none;
  padding: 0;
}

.right-section h2 {
  font-weight: 400;
  font-size: 1.1rem;
  text-align: left;
  margin-bottom: 1rem;
}

/* --- Project display --- */
.projects_display {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  width: 98%;
  max-width: 1400px;
  padding: 4rem 0;
  align-items: stretch;
}

.project_container {
  background-color: var(--color-secondary);
  color: var(--color-bg);
  border-radius: 15px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  padding-bottom: 5rem;
  aspect-ratio: 1 / 1.15;
  width: 100%;
}

.project_container:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.project_container h3 {
  text-align: center;
  font-size: 1.4rem;
  margin: 0;
}

.project_tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: -0.5rem;
}

.project_tags span {
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.05);
  color: var(--color-bg);
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.project_container p {
  padding: 0;
  font-size: 1rem;
  color: var(--color-bg);
  line-height: 1.4;
}

.project_container p a {
  color: #c99624; /* A slightly darker version of your primary yellow for readability on light BG */
  font-weight: 700;
  text-decoration: underline;
}

.project_container p a:hover {
  color: var(--color-bg);
}

.project_container img {
  border-radius: 10px;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background-color: rgba(0, 0, 0, 0.03);
  margin: 0 auto;
}

.button {
  display: block;
  text-align: center;
  padding: 0.8rem;
  background-color: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  font-weight: 900;
  border-radius: 5px;
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  transition: all 0.3s ease;
}

.button:hover {
  background-color: var(--color-primary);
  color: var(--color-secondary);
}

/* --- Contact section --- */
.contact {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.contact a {
  display: flex;
  align-items: center;
  font-size: 1.2rem;
  padding: 1rem;
  border-radius: 8px;
  transition: background 0.3s ease;
}

.contact a:hover {
  background: var(--color-secondary);
  color: var(--color-bg);
}

/* --- Footer --- */
footer {
  padding: 2rem 0;
  background-color: var(--color-bg-dark);
  text-align: center;
}

footer p {
  padding: 0;
  font-size: 1rem;
}

#names {
  color: var(--color-primary);
}

.huawei-highlight {
  color: #ffffff;
  font-weight: 400;
  background: linear-gradient(transparent 70%, rgba(237, 28, 36, 0.4) 70%);
  padding: 0 2px;
  display: inline;
}

/* --- Decorations --- */
.gradientCurve {
  background: linear-gradient(180deg, #373860 0%, #733c80 30%, #bd2a83 65%, #ff0066 88%);
}

.orange {
  background: var(--color-orange);
}

.curve {
  position: absolute;
  height: 250px;
  width: 100%;
  bottom: 0;
  text-align: center;
}

.curve::before {
  content: "";
  display: block;
  position: absolute;
  border-radius: 100% 50%;
  width: 55%;
  height: 100%;
  transform: translate(85%, 60%);
  background-color: var(--color-bg);
}

.curve::after {
  content: "";
  display: block;
  position: absolute;
  border-radius: 100% 50%;
  width: 55%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(255, 0, 102, 1) 85%,
    rgba(55, 56, 96, 1) 100%
  );
  transform: translate(-4%, 40%);
  z-index: -1;
}

/* --- Scroll down indicator --- */
.scroll-down {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-primary);
  font-size: 2rem;
  z-index: 5;
  animation: bounceOnce 2s ease-out forwards;
  transition: transform 0.3s ease, color 0.3s ease;
}

.scroll-down:hover {
  transform: translateX(-50%) translateY(5px);
  color: var(--color-secondary);
}

@keyframes bounceOnce {
  0% { transform: translateX(-50%) translateY(-20px); opacity: 0; }
  50% { transform: translateX(-50%) translateY(0); opacity: 1; }
  70% { transform: translateX(-50%) translateY(-5px); }
  100% { transform: translateX(-50%) translateY(0); }
}

.wave {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  line-height: 0;
}

.wave svg {
  width: 100%;
  height: 100px;
}

.wave .shape-fill {
  fill: var(--color-bg);
}

.spacer {
  aspect-ratio: 960/300;
  width: 100%;
  background-size: cover;
  background-position: center;
}

.layer1 { background-image: url("img/layer1.svg"); }
.layer2 { background-image: url("img/layer2.svg"); }

.flip { transform: rotate(180deg); }

/* --- Mobile Queries --- */
@media (max-width: 768px) {
  h1 { font-size: 3rem; }
  
  .menu-btn { display: flex; }
  
  .nav_links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: right 0.3s ease-in-out;
  }

  .nav_links.open { right: 0; }

  .nav_links ul {
    flex-direction: column;
    align-items: center;
  }

  .nav_links a { font-size: 2rem; }

  .circle { flex-direction: column; }
  
  .left-section, .right-section { width: 100%; }

  .project_container img { height: 150px; }
}

html { scroll-behavior: smooth; }