:root {
  --background: #080808;
  --primary: #040404;
  --accent: #faeb1e;
  --title: #f6f6f6;
  --desc: #B0B0B0;
  --line: #262626;

  --radius: 0.6em;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  margin: 0;
  padding: 70px 0 0;
  background-color: var(--background);
  user-select: none;
}

a {
  text-decoration: none;
}

h1, p, .contact-email {
  margin: 0;
}

h1 {
  margin-bottom: 1rem;
}

p {
  margin: 0.5rem 0 2rem;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--background);
  border-bottom: 1px solid var(--line);
  z-index: 1000;
  transition: transform 0.3s ease;
}

#header.hidden {
  transform: translateY(-100%);
}

.navbar {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0.8rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 40px;
  cursor: pointer;
  transition: opacity 0.3s ease;
  -webkit-user-drag: none;
}


/* Buttons */
.contact-btn,
.learn-btn,
.view-btn {
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: clamp(0.75rem, 0.679rem + 0.357vw, 1rem);
  transition: opacity 0.3s ease;
}

.contact-btn {
  color: var(--primary);
  background-color: var(--accent);
  font-weight: 500;
}

.learn-btn {
  color: var(--background);
  background-color: var(--title);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.view-btn {
  padding: 2rem;
  color: var(--desc);
  margin: 2rem;
}

.contact-btn:hover,
.logo img:hover,
.view-btn:hover,
.learn-btn:hover,
.footer-social .icon:hover,
.expand-btn:hover,
.links img:hover {
  opacity: .8;
}

/* Sections */
section {
  margin: 0 auto;
  padding: 4rem 1rem;
  max-width: 1200px;
  text-align: center;
}

.section-header h1,
.talent-details h1 {
  font-size: clamp(1.75rem, 1.464rem + 0.595vw, 2rem);
  color: var(--title);
  margin-bottom: 1rem;
}

.section-header p {
  font-size: clamp(1rem, 0.714rem + 0.595vw, 1.25rem);
  color: var(--desc);
  line-height: 1.6;
}

/* Home */
.home-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.home-text h1 {
  font-size: clamp(2rem, 1.429rem + 1.19vw, 2.5rem);
  color: var(--title);
  line-height: 1.2;
  letter-spacing: 1px;
  font-weight: 700;
}

.home-text p {
  font-size: clamp(1rem, 0.857rem + 0.298vw, 1.125rem);
  color: var(--desc);
  line-height: 1.6;
}

/* Work */
.swiper {
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
  margin-bottom: 2rem;
}

.swiper-slide {
  display: -webkit-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  -webkit-align-items: center;
  align-items: center;
  overflow: hidden;
}

.swiper-slide .swiper-slide-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 2/3;
  border-radius: var(--radius);
  -webkit-user-drag: none;
}

.swiper-slide .swiper-slide-menu {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: center;
  padding: 2rem;
}

.swiper-slide-menu img {
  height: 100px;
  width: auto;
  object-fit: contain;
  max-width: 75%;
  margin-bottom: 1rem;
}

.swiper .swiper-pagination-bullet {
  background: var(--title);
  height: 8px;
  width: 8px;
  opacity: 0.5;
}

.swiper .swiper-pagination-bullet-active {
  opacity: 1;
}

.swiper-button-prev::after,
.swiper-button-next::after {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--title);
  z-index: 10;
}

/* Brands */
.brands-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(0.625rem, 0.405rem + 0.939vw, 1.25rem);
}

.brands-container img {
  height: auto;
  width: clamp(4.688rem, 3.147rem + 6.573vw, 9.063rem);
  -webkit-user-drag: none;
  user-select: none;
  filter: invert(0.5);
}

/* Talent */
.talent-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.talent-wrapper {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  text-align: left;
}

.talent-profile {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}


.talent-profile .talent-pp {
  height: 80px;
  width: 80px;
  object-fit: cover;
  border-radius: var(--radius);
  -webkit-user-drag: none;
}

.talent-details {
  flex: 1;
}

.talent-details h2 {
  margin: 0;
  margin-bottom: 0.5rem;
  font-size: clamp(1.25rem, 0.964rem + 0.595vw, 1.5rem);
  color: var(--title);
  font-weight: 600;
}

.talent-desc {
  --max-lines: 2;
  --line-height: 1.5;

  max-height: calc(var(--max-lines) * 1em * var(--line-height));
  line-height: var(--line-height);

  overflow: hidden;
  position: relative;
  font-size: 1rem;
  color: var(--desc);

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: var(--max-lines);
}

/*
.talent-desc:has(+ .talent-bottom .expand-btn:not(:checked))::before {
  content: "";
  position: absolute;
  height: calc(1em * var(--line-height));
  width: 100%;
  bottom: 0;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--background));
}
*/

.talent-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
}

.expand-btn {
  appearance: none;
  color: var(--desc);
  font-size: clamp(0.75rem, 0.679rem + 0.357vw, 1rem);
  transition: opacity 0.3s ease;
  font-weight: 500;
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  margin: 0;
  display: inline-block;
  white-space: nowrap;
}

.expand-btn::before {
  content: "Read more";
}

.expand-btn:checked::before {
  content: "Read less";
}

.talent-desc:has(+ .talent-bottom .expand-btn:checked) {
  max-height: none;
  display: block;
}

.social-links {
  display: flex;
  gap: 20px;
}

.social-links .links {
  height: 100%;
  width: 100%;
}

.social-links .links img {
  height: 16px;
  width: auto;
  -webkit-user-drag: none;
  cursor: pointer;
  transition: opacity 0.3s ease;
  filter: invert(0.5);
}

/* Contact */
.contact-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
}

.contact-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  height: clamp(9.375rem, 8.275rem + 4.695vw, 12.5rem);
  width: 100%;
  text-align: center;
  background: url(https://i.ibb.co/2tRhdQM/rekkitz-co-cover.jpg);
  background-position: center;
  background-size: contain;
  border-radius: var(--radius);
}

.contact-email {
  color: var(--line);
  font-weight: 600;
  font-size: clamp(1rem, 0.857rem + 0.298vw, 1.125rem);
}

.contact-email a {
  color: var(--line);
  text-decoration: underline;
}

/* Footer */
footer {
  max-width: 1200px;
  margin: 0 auto;
  background-color: var(--background);
  user-select: none;
  color: var(--desc);
  font-size: .875rem;
}

.footer {
  border-top: 1px solid var(--line);
  margin: 0 1rem;
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer p {
  margin: 0;
}

.footer .footer-social {
  display: flex;
  gap: 1rem;
}

.footer .footer-social .icon {
  cursor: pointer;
  height: 100%;
  width: 100%;
  transition: opacity 0.3s ease;
}

.footer .footer-social .icon img {
  height: 20px;
  width: auto;
  -webkit-user-drag: none;
  filter: invert(0.5);
}

/* Media Queries */
@media (max-width: 768px) {
  .brand-section {
    grid-template-columns: repeat(2, 1fr);
  }

  .brand-logo img {
    max-width: 50%;
  }
}

/* Media Quaries */
@media (max-width: 768px) {
  .swiper {
    width: 90%;
    height: 90%;
  }

  .swiper .swiper-button-prev,
  .swiper .swiper-button-next {
    display: none;
  }
  
  .talent-wrapper {
    grid-template-columns: 1fr;
  }

  .talent-profile:last-child {
    border-bottom: none;
  }
}

@media (max-width: 600px) {
  .footer {
    flex-direction: column-reverse;
    justify-content: center;
    text-align: center;
    gap: .5rem;
  }
}