:root {
  --clr-orange: hsl(23, 99%, 63%);
  --clr-purple: hsl(263, 91%, 62%);
  --clr-light-purple: hsl(261, 89%, 96%);
  --clr-black: #333333;
}

/* === GLOBAL STYLES === */

body {
  position: relative;
  font-family: "Clash Display", sans-serif;
  color: var(--clr-black);
  margin: 0;
  padding: 0;
}

button,
.btn {
  background-color: var(--clr-orange);
  padding-inline: 1.5rem;
  padding-block: 0.5rem;
  outline: none;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}


.purple__text {
  color: var(--clr-purple) !important;
}

img {
  user-drag: none;
  user-select: none;
  -moz-user-select: none;
  -webkit-user-drag: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}

/* === NAVBAR SECTION === */

nav {
  font-weight: 400;
}

nav i {
  color: var(--clr-orange);
}

/* Restore accessible focus styles */
nav .navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(254, 140, 69, 0.5) !important;
  outline: 2px solid transparent;
}

nav .nav-btn {
  font-size: 1rem;
  background-color: var(--clr-orange);
  width: fit-content;
  padding-inline: 1.5rem;
  padding-block: 0.5rem;
  align-self: center;
  outline: none;
  border: none;
  transition: transform 0.3s ease;
}

nav .nav-btn:active {
  transform: scale(0.98);
  scale: 0.98; /* Modern fallback */
}

/* === HERO SECTION === */

#hero {
  position: relative;

  &::before {
    content: "";
    position: absolute;
    left: 20px;
    top: 100px;
    z-index: -2;
    border-radius: 50%;
    width: 0px;
    height: 0px;
    background-color: transparent;
    box-shadow: 0px 0px 200px 200px #fe8c4580;
  }

  &::after {
    content: "";
    position: absolute;
    left: 20px;
    top: 200px;
    z-index: -2;
    border-radius: 50%;
    width: 0px;
    height: 0px;
    background-color: transparent;
    box-shadow: 0px 200px 400px 150px #8a47f67a;
  }
}

#hero .left {
  min-height: 90dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

#hero .left .hero__title {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 600;
  line-height: 1.1;
}

#hero .left .hero__title .purple__line {
  width: 120px;
  height: 16px;
  margin-bottom: 12px;
  background-color: var(--clr-purple);
  display: inline-block;
}

#hero .left .hero__btn {
  background-color: var(--clr-orange);
  padding-inline: 1.5rem;
  margin-top: 1rem;
}

#hero .right .carousel-indicators {
  position: absolute;
  bottom: -3rem;
  left: 50%;
  transform: translateX(-50%);
}

#hero .right .carousel-indicators button {
  background-color: var(--clr-black);
  opacity: 0.5;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0 5px;
  border: none;
  transition: opacity 0.3s, background-color 0.3s;
}

#hero .right .carousel-indicators button.active {
  opacity: 1;
  background-color: var(--clr-purple);
}

/* === ABOUT SECTION === */

#about {
  background-color: var(--clr-light-purple);
  padding-block: 5rem;
  font-weight: 400;
}

#about .about__subtitle {
  position: relative;
  padding-left: 30px;
  margin-bottom: 1rem;
}

#about .about__subtitle::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 25px;
  height: 2px;
  background-color: var(--clr-purple);
}

#about .about__title {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

#about img {
  max-width: 100%;
  height: auto;
}

/* === PORTFOLIO SECTION === */

#portfolio {
  position: relative;
  padding-block: 5rem;

  &::before {
    content: "";
    position: absolute;
    right: 10px;
    top: 250px;
    z-index: -2;
    border-radius: 50%;
    width: 0px;
    height: 0px;
    background-color: transparent;
    box-shadow: 0px 0px 150px 200px #fe8c4580;
  }

  &::after {
    content: "";
    position: absolute;
    left: 10px;
    bottom: 250px;
    z-index: -2;
    border-radius: 50%;
    width: 0px;
    height: 0px;
    background-color: transparent;
    box-shadow: 0px 200px 400px 150px #8a47f67a;
  }
}
#portfolio .portfolio__title {
  font-size: clamp(3rem, 12vw, 10rem);
  font-weight: 600;
  text-align: center;
  margin: 0;
}

#portfolio .portfolio__link {
  color: inherit;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: background-color 0.3s;
}

#portfolio .portfolio__link:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

#portfolio .portfolio__link.purple__text {
  background-color: rgba(138, 71, 246, 0.1);
  border-radius: 4px;
}

/* === PRICES SECTION === */

#prices {
  margin-block: 5rem;
  padding-inline: 1rem;
}

#prices .prices__title {
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
}

#prices .card {
  margin-block: 1rem 0;
  min-height: 350px;
  width: 100%;
  max-width: 320px;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

#prices .card:hover {
  transform: translateY(-5px);
}

#prices .card .card-title {
  font-weight: 500;
  font-size: 1.25rem;
}

#prices .card .card-subtitle {
  font-weight: 400;
  font-size: 0.95rem;
  color: #555;
}

#prices .card .card-text {
  font-weight: 700;
  font-size: 2rem;
  margin: 1rem 0;
}

#prices .card .card-link {
  background-color: var(--clr-orange);
  color: white;
  text-decoration: none;
  padding: 0.5rem 1.5rem;
  border-radius: 2rem;
  display: inline-block;
  margin-top: 1rem;
}

#prices .card:nth-child(2) {
  background-color: var(--clr-black);
  color: white;
}

#prices .card:nth-child(2) .card-link {
  background-color: white;
  color: var(--clr-black);
}

#prices .card:nth-child(3) .card-text {
  margin-top: 2rem !important;
}

/* === TESTIMONIAL SECTION === */

#testimonial {
  padding-block: 5rem;
  padding-inline: 1rem;
  background-color: var(--clr-light-purple);
}

#testimonial .testimonial__subtitle {
  position: relative;
  font-weight: 500;
  font-size: 1.2rem;
  display: inline-block;
  margin-bottom: 1.5rem;
}

#testimonial .testimonial__subtitle::before {
  content: "";
  position: absolute;
  bottom: -5px;
  left: -15px;
  width: 20px;
  height: 2px;
  background-color: var(--clr-purple);
}

#testimonial .testimonial__title {
  font-weight: 600;
  font-size: clamp(2rem, 6vw, 3rem);
  margin-bottom: 1.5rem;
}

#testimonial .testimonial__desc {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

#testimonial .testimonial__person .left {
  background-color: hsl(262, 91%, 91%);
  padding: 0.75rem 1rem;
}

#testimonial .testimonial__person .testimonial__person-name {
  display: inline-flex;
  font-size: 1.1rem;
  margin: 0;
  align-items: center;
  gap: 0.5rem;
}

#testimonial .testimonial__person .right i {
  cursor: pointer;
  color: var(--clr-black);
  transition: color 0.3s, transform 0.2s;
}

#testimonial .testimonial__person .right i:hover {
  color: var(--clr-orange);
  transform: scale(1.05);
}

/* === INSTAGRAM SECTION === */

#instagram {
  position: relative;
  padding-block: 5rem;
  text-align: center;
}

#instagram::after {
  content: "";
  position: absolute;
  left: 10px;
  bottom: 250px;
  z-index: -2;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  background-color: transparent;
  box-shadow: 0px 200px 400px 150px #8a47f67a;
}

#instagram .instgram__title {
  /* typo fix in HTML needed too → "instagram__title" */
  font-weight: 700;
  margin-bottom: 1.5rem;
}

#instagram button {
  background-color: var(--clr-orange);
  color: white;
  border: none;
  padding: 0.5rem 2rem;
  border-radius: 2rem;
  font-weight: 500;
  cursor: pointer;
  margin-top: 1rem;
}

/* === CONTACT SECTION === */

#contact form {
  max-width: 500px;
}

#contact form .form-label {
  font-weight: 500;
  margin-bottom: 0.5rem;
}

#contact form .form-control {
  border-radius: 0.5rem;
  padding: 0.75rem;
  border: 1px solid #ddd;
}

#contact form button[type="submit"] {
  width: 100%;
  margin-top: 1rem;
  font-weight: 500;
  font-size: 1.1rem;
  padding: 0.75rem;
}

/* === FOOTER SECTION === */

#footer {
  background-color: var(--clr-black);
  padding-block: 1.5rem;
  color: white;
  text-align: center;
}

#footer img {
  height: 40px;
  margin-bottom: 1rem;
}

#footer a {
  color: white;
  text-decoration: none;
  margin: 0 0.5rem;
  font-size: 0.95rem;
}

#footer a:hover {
  text-decoration: underline;
}

#footer i {
  color: var(--clr-black); /* Fixed contrast issue */
}

/* === RESPONSIVE TWEAKS === */

@media (max-width: 992px) {
  #about .left {
    flex-direction: column;
    align-items: center;
  }

  #about .left > div {
    margin-top: 1.5rem;
  }

  #testimonial .row {
    text-align: center;
  }

  #testimonial .testimonial__subtitle::before {
    left: 50%;
    transform: translateX(-50%);
    bottom: -10px;
  }
}

@media (max-width: 768px) {
  .container-xl {
    padding-inline: 1rem;
  }

  #hero .left .hero__title {
    font-size: 3.5rem;
  }

  #prices .card__container {
    justify-content: center;
  }

  #contact form {
    margin-inline: auto;
  }
}

@media (max-width: 576px) {
  #hero .left .hero__title {
    font-size: 2.5rem;
  }

  #about,
  #testimonial,
  #instagram {
    padding-block: 3rem;
  }

  #prices .card {
    max-width: 100%;
  }

  #footer .container-xl {
    flex-direction: column;
    gap: 1.5rem;
  }

  #footer a {
    display: block;
    margin: 0.25rem 0;
  }
}
