: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 {
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  color: var(--primary);
  background-color: var(--accent);
  font-size: clamp(0.75rem, 0.679rem + 0.357vw, 1rem);
  transition: opacity 0.3s ease;
  font-weight: 500;
}

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

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

.section-header 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 */
.categories {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 2rem;
  gap: 0.5rem;
  width: 100%;
  overflow-x: scroll;
}

.categories::-webkit-scrollbar {
  display: none;
}

.category-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f1f1f1;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: var(--radius);
  font-size: clamp(0.75rem, 0.679rem + 0.357vw, 1rem);
  white-space: nowrap;
  transition: 0.3s ease;
}

.category-btn.active {
  background-color: #272727;
  color: var(--title);
}

.brand-section {
  display: grid;
  justify-content: center;
  align-items: center;
  gap: clamp(0.5rem, -0.071rem + 1.19vw, 1rem);
  grid-template-columns: repeat(3, 1fr);
}

.brand-card {
  display: flex;
  flex-direction: column;
  width: auto;
  height: auto;
  margin-bottom: 2rem;
  text-align: left;
  cursor: pointer;
}

.brand-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius);
  aspect-ratio: 2/3;
}

.brand-logo {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: 100%;
  width: 100%;
}

.brand-logo img {
  height: clamp(2.5rem, 0.714rem + 3.72vw, 4.063rem);
  width: auto;
  object-fit: contain;
  max-width: 75%;
  margin-bottom: clamp(0.5rem, -0.071rem + 1.19vw, 1rem);
}

.brand-title {
  margin-top: 1rem;
  color: var(--title);
  font-size: clamp(0.75rem, 0.679rem + 0.357vw, 1rem);
}

/* 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) {
  .footer {
    flex-direction: column-reverse;
    justify-content: center;
    text-align: center;
    gap: .5rem;
  }
  
  .brand-section {
    grid-template-columns: repeat(2, 1fr);
  }

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