@import './_globals.css';
@import './_vars.css';

/* ------------------------------------------------ */
/* SCTRUCTURE HOMEPAGE */
/* ------------------------------------------------ */
html {
  scroll-behavior: auto;
}

.homepage {
  min-height: 100%;
 
}

.logo {
  opacity: 0;
  display: none;
}

.logo-svg {
  max-width: 100%;
}

.container {
  height: 100vh;
  overflow: hidden;
  padding: 2rem 0;
}

.title {
  font-weight: var(--black);
  font-size: clamp(2rem, 4vw + 2rem, 7rem);
}

/* ------------------------------------------------ */
/* LOGO ANIMATION CONTAINER */
/* ------------------------------------------------ */
.logo-container {
  /* background: var(--main-gradient); */
  background: var(--main-gradient);
  background-repeat: no-repeat;
  background-attachment: fixed;
  /* padding: 2rem 0; */
  display: grid;
  place-items: center;
  gap: 2rem;
}

.logo-container--logo {
  overflow: hidden;
  display: grid;
  place-items: center;
  position: relative;
  padding: 3rem 3rem 0;
}

.logo-element, .loading-element {
  fill: #ffffff
}

.logo-baseline {
  opacity: 0;
}

.logo-container--about {
  max-width: 80%;
}

.logo-container--about_content {
  text-align: center;
  font-size: 1.5rem;
  color: white;
  font-weight: 20;
}

/* ------------------------------------------------ */
/* LOGO DIV ELEMENT */
/* ------------------------------------------------ */
.logo-div-element {
  opacity: 0;
}

/* ------------------------------------------------ */
/* CATEGORY CONTAINER */
/* ------------------------------------------------ */
.category-container {
  padding: 2rem 2rem 0;
  color: white;
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: 25% auto;
}

.category-container--title {
  grid-column: 1 / 12;
}

.category-container--img {
  overflow: hidden;
}

.category-container--img:nth-child(even) {
  grid-column: 1 / 8;
}

.category-container--img:nth-child(odd) {
  grid-column: 5 / 13;
}

.category-container--desc {
  font-size: 1.2rem;
  line-height: 1.4;
  font-weight: 100;
  align-self: center;
}

.category-container--desc:nth-child(odd) {
  grid-column: 8 / 12;
}

.category-container--desc:nth-child(even) {
  grid-column: 1 / 5;
}

.desc {
  margin-bottom: 1rem;
}

/* ------------------------------------------------ */
/* BTNS ANIMATION */
/* ------------------------------------------------ */
.btn {
  padding: 0.5rem 1rem;
  border-radius: 500px;
  border: 2px solid white;
  background: transparent;
  color: white;
  font-weight: bold;
  letter-spacing: 3px;
}

.btn:hover {
  color: var(--purple);
  background: white;
}

/* ------------------------------------------------ */
/* DESIGN PANEL */
/* ------------------------------------------------ */
.design-illustration {
  position: relative;
  z-index: -1;
}


/* ------------------------------------------------ */
/* Porfolio */
/* ------------------------------------------------ */
.portfolio-container {
  display: grid;
  gap: 0.5rem;
  min-height: 100%;
  grid-template-columns: repeat(12, 1fr);
}

.portfolio {
  padding: 1rem 0.5rem 0.5rem;
  color: white;
  /* background: var(--blue-darker); */
}

.portfolio-item {
  filter: grayscale(100%);
  overflow: hidden;
  opacity: 0.5;
  display: flex;
  gap: 1rem;
}

.portfolio-item:hover {
  opacity: 1;
  filter: none;
}

.portfolio-item--1, .portfolio-item--4 {
  grid-column: 1 / 5;
}

.portfolio-item--2, .portfolio-item--5 {
  grid-column: 5 / 9;
}

.portfolio-item--3, .portfolio-item--6 {
  grid-column: 9 / 13;
}

@media (max-height: 900px) {
  .logo-svg {
    max-width: clamp(75%, 10vw + 1rem, 100%);
  }
}

@media (max-width: 40em) {
  .container {
    height: 100%
  }

  .logo-container {
    height: 100vh;
  }
  
  .category-container {
    height: 70vh;
    display: flex;
    flex-direction: column;
    padding: 2rem 1rem 0;
    gap: 1rem;
  }
  
  .category-container--img {
    display: grid;
    place-items: center;
    height: 50%;
  }
  .logo-svg {
    max-width: 200%;
    height: 500px;
  }
}

@media (max-width: 70em) {
  .logo-svg {
    max-width: 150%;
  }
}