:root {
  /* Font Sizes */
  --XS-Fsize: clamp(0.9rem, 1vw, 1.1rem);
  --small-Fsize: clamp(1rem, 1.2vw, 1.3rem);
  --medium-Fsize: clamp(1.3rem, 1.8vw, 1.8rem);
  --mobile-small-Fsize: clamp(1rem, 1.2vw, 1.3rem);
  --mobile-large-Fsize: clamp(2rem, 3vw, 2.6rem);
  --mobile-XL-Fsize: clamp(2.5rem, 4vw, 3rem);
  --desktop-small-Fsize: clamp(1.5rem, 2vw, 2rem);
  --medium-Fsize: clamp(1.3rem, 1.8vw, 1.8rem);
  --desktop-large-Fsize: clamp(3rem, 4vw, 4.5rem);
  --desktop-XL-Fsize: clamp(5rem, 6vw, 6rem);

  /* Colors */
  --primary-color: #fff3e0; /* Bonfire Light / Ash */
  --neutral-color: #1a1a1a; /* Deep Charcoal / Night */
  --accent-color: #ff6f00; /* Bonfire Orange */
  --pastel-color: #ff3d00; /* Ember Red */
  --text-color: #ffb300; /* Flame Yellow */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

img {
  width: 100%;
}

html {
  scroll-behavior: smooth;
  scroll-padding: var(--scroll-padding, 40px);
  height: 100%;
}
body {
  background: #181818;
  position: relative;
  z-index: 0;
  color: var(--primary-color);
  font-family: "Poppins", "Inter", "Helvetica Neue", Arial, sans-serif;
  padding-top: 4.6rem;
}

h1,
h2,
h3,
h4,
h5,
h6,
.heading {
  font-family: "Poppins", "Inter", "Helvetica Neue", Arial, sans-serif;
}

.accent,
.highlight,
code,
pre {
  font-family: "JetBrains Mono", monospace;
}

/* Remove the orange glow at the bottom */
body::before {
  content: none;
}

.main-wrapper {
  --main-wrapper-max-width: 1100px;
  --main-wrapper-padding: 10%;

  width: min(var(--main-wrapper-max-width), 100% - var(--main-wrapper-padding));
  margin-inline: auto;
  position: relative; /* Ensure ember-container can be absolutely positioned inside */
  z-index: 1;
}

section {
  margin-top: 5rem;
}

section .heading {
  font-size: clamp(
    calc(var(--mobile-XL-Fsize) * 1.3),
    10vw,
    calc(var(--desktop-XL-Fsize) * 1.3)
  );
  text-align: center;
  line-height: 1.1em;
  margin-bottom: 1.5rem;
  opacity: 1;
  transition:
    color 0.4s ease,
    transform 0.4s ease,
    text-shadow 0.4s ease;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 2px;
  user-select: none;
}

section .heading:hover {
  color: var(--accent-color);
  transform: scale(1.1) rotate(-2deg);
  text-shadow: 0 6px 15px rgba(0, 0, 0, 0.5);
  opacity: 1;
}

@keyframes fadeInZoom {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

section .heading {
  animation: fadeInZoom 1s ease forwards;
}
section .heading span {
  color: var(--pastel-color);
}

@media (min-width: 1000px) {
  main {
    display: block;
    padding-top: 8rem;
  }

  section:first-child {
    margin-top: 0rem;
  }

  section {
    margin-left: auto;
    margin-right: auto;
    padding: 2rem 4rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }

  section .heading {
    font-size: clamp(var(--mobile-XL-Fsize), 8vw, var(--desktop-XL-Fsize));
    text-align: center;
    line-height: 1em;
    margin-bottom: 1rem;
  }
}

@media (max-width: 600px) {
  section {
    padding: 1rem 1.5rem;
  }
  .cv-button-wrapper {
    padding: 0 1rem;
  }
  .download-cv-btn {
    width: 100%;
    font-size: var(--mobile-small-Fsize);
  }
}

@media (min-width: 1400px) {
  .main-wrapper {
    --main-wrapper-max-width: 1400px;
    --main-wrapper-padding: 5%;
    width: min(
      var(--main-wrapper-max-width),
      100% - var(--main-wrapper-padding)
    );
    margin-inline: auto;
  }
}

main,
header,
nav,
footer,
.profile-container,
.certificates-container,
.education-container,
.projects-container,
.skills-container,
#contact-section {
  position: relative;
  z-index: 1;
}

/* Favicon round styling for better visibility */
.custom-favicon,
.favicon-round {
  border-radius: 50%;
  background: #fff;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  width: 48px;
  height: 48px;
}
