@import "./main.css";

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

.hero {
  margin-top: 4em;
}

.hero .grid {
  display: grid;
  grid-template: 1fr / 2fr 1.1fr;
  align-items: center;
  gap: 2em;
}

.hero .grid .content {
  padding: 3em 0;
}

.hero-info {
  width: 100%;
  max-width: 80%;
}

.hero-info h1 {
  font-size: 5rem;
  line-height: 4.8rem;
  font-weight: 500;
}

.hero-info h1 span {
  font-family: var(--secondary-font);
  font-style: italic;
}

.hero-info p {
  margin-top: 2em;
  font-size: 1.1em;
  color: rgba(var(--accent-rgb), 0.7);
}

.hero-card,
.contact-me-card {
  border-radius: 1em;
  border: 2px solid var(--border-color);
  background: url(./../Media/backgrounds/decoration-1.jpg);
  background-size: cover;
  padding: 1.5em;
}

.hero-card .tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  background: var(--accent-color);
  color: var(--primary-color);
  padding: 0.5em 1em;
  border-radius: 10em;
}

.hero-card .tag .circle {
  --size: 0.8em;
  height: var(--size);
  width: var(--size);
  background: var(--yellow);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(var(--yellow-rgb), 0.6);
  animation: pulse-glow 2s ease-in-out infinite;
}

.hero-card .tag span {
  font-size: 0.8em;
}

.hero-card .info {
  margin-top: 7em;
  margin-bottom: 1em;
  color: var(--primary-color);
}

.hero-card .info h2 {
  font-size: 3em;
  font-weight: 500;
}

.hero-card .info p {
  margin-top: 0.5em;
}

.hero-card .footer {
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin-top: 2em;
}

.profile {
  flex-shrink: 0;
}

.profile img {
  --size: 3em;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  border: 2px solid var(--primary-color);
}

.profile-info,
.email-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  color: var(--primary-color);
}

.profile-info span:first-child,
.email-info span:first-child {
  font-weight: 500;
}

.profile-info span:last-child,
.email-info span:last-child {
  font-size: 0.8em;
  opacity: 0.6;
}

.contact-btn a {
  --size: 2em;
  width: var(--size);
  height: var(--size);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-color);
  border-radius: 50%;
  border: 1px solid var(--primary-color);
  transition: 300ms;
}

.contact-btn a:hover {
  background: transparent;
  color: var(--primary-color);
}

/* === MORE ABOUT ME === */

.more-about-me .grid {
  display: flex;
  gap: 1em;
  margin-top: 2em;
}

.more-about-me .grid .card {
  --padding: 1.5em;
  position: relative;
  flex: 1;
  border-radius: 1em;
  background: var(--background);
  background-size: cover;
  overflow: hidden;
}

.more-about-me .grid .card .content {
  padding: var(--padding);
  height: 20em;
}

.more-about-me .grid .card .info {
  padding: var(--padding);
  color: var(--primary-color);
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(var(--color-rgb), 0.5),
    rgba(var(--color-rgb), 0.8),
    rgba(var(--color-rgb), 1)
  );
}

.more-about-me .grid .card .info h3 {
  font-size: 1.5em;
  font-weight: 500;
  margin-bottom: 1em;
}

.design-card {
  --background: url("./../Media/backgrounds/decoration-2.jpg");
  --color-rgb: var(--yellow-rgb);
}

.skills-card {
  --background: url("./../Media/backgrounds/decoration-3.jpg");
  --color-rgb: var(--blue-rgb);
}

.projects-card {
  --background: url("./../Media/backgrounds/decoration-4.jpg");
  --color-rgb: var(--orange-rgb);
}

.design-card .content img {
  position: absolute;
  top: 3.5em;
  right: -20%;
  border-radius: 0.5em;
  border: 5px solid var(--accent-color);
}

.skills-card .content {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* -- morquee -- */

.morquees {
  --offset: -1em;
  position: absolute;
  left: var(--offset);
  right: var(--offset);
  display: flex;
  flex-direction: column;
  gap: 1em;
  overflow: hidden;
}

.morquee {
  display: flex;
  gap: 0.5em;
  min-width: 200%;
  animation: marquee var(--speed, 18s) alternate linear infinite;
}

.morquee:nth-child(2) {
  --speed: 20s;
  animation-delay: -4s;
}

.morquee:nth-child(3) {
  --speed: 16s;
  animation-delay: -2s;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 0 0 rgba(var(--yellow-rgb), 0.6);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 0.8em rgba(var(--yellow-rgb), 0);
    transform: scale(1.05);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(var(--yellow-rgb), 0);
    transform: scale(1);
  }
}

.morquee .item {
  font-size: 0.9em;
  background: rgba(var(--primary-rgb), 0.5);
  border-radius: 5em;
  padding: 0.5em 1em;
  white-space: nowrap;
}

.imgs-holder {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.projects-card .imgs-holder img {
  position: absolute;
  width: 10em;
  border-radius: 0.5em;
  border: 5px solid var(--primary-color);
  transition: 300ms;
}

.projects-card .imgs-holder img:nth-child(1) {
  transform: rotate(-10deg) translate(-2em);
}

.projects-card .imgs-holder:hover img:nth-child(1) {
  transform: rotate(-15deg) translate(-3em);
}

.projects-card .imgs-holder img:nth-child(2) {
  transform: rotate(10deg) translate(2em);
}

.projects-card .imgs-holder:hover img:nth-child(2) {
  transform: rotate(15deg) translate(3em);
}

.about {
  font-size: 1.2em;
  line-height: 1.5;
  margin-top: 5em;
  border: 2px dashed var(--border-color);
  border-radius: 1em;
  text-align: justify;
  color: rgba(var(--accent-rgb), 0.7);
  padding: 2em;
}

/* === RELEVANT PROJECTS === */

.projects-holder {
  --gap: 1em;
  display: grid;
  grid-template: 1fr / 1fr 2fr;
  gap: var(--gap);
  margin-top: 2em;
}

.vertical-card,
.horizontal-card,
.square-card {
  position: relative;
  background: rgba(var(--primary-rgb), 0.3);
  border-radius: 1em;
  padding: 1.5em;
  overflow: hidden;
  z-index: 1;
}

.vertical-card::after,
.horizontal-card::after,
.square-card::after {
  content: "";
  position: absolute;
  background: var(--color);
  filter: blur(4em);
  z-index: -1;
}

.projects-holder h3 {
  font-size: 1.5em;
  font-weight: 500;
}

.project-details {
  opacity: 0;
  filter: blur(10px);
  transition: 300ms;
}

.vertical-card:hover .project-details,
.horizontal-card:hover .project-details,
.square-card:hover .project-details {
  opacity: 1;
  filter: blur(0);
}

.project-details p:first-child {
  margin: 0.8em 0;
}

.project-details p:last-child {
  font-size: 0.9em;
  color: rgba(var(--accent-rgb), 0.6);
}

.vertical-card {
  height: 35em;
}

.vertical-card::after {
  --color: var(--red);
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
}

.vertical-card .project-img {
  display: flex;
  justify-content: center;
  margin-top: 1em;
  position: absolute;
  bottom: -25%;
  transition: 300ms;
}

.vertical-card:hover .project-img {
  bottom: -40%;
}

.vertical-card .project-img img {
  width: 20em;
}

.sub-holder {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

.horizontal-card {
  display: flex;
  flex: 1;
  z-index: 1;
}

.horizontal-card::after {
  --color: var(--purple);
  top: 0;
  bottom: 0;
  right: 0;
  width: 50%;
}

.horizontal-card .project-img {
  position: absolute;
  top: 0;
  bottom: 0;
  right: -20%;
  transition: 300ms;
}

.horizontal-card:hover .project-img {
  right: -40%;
}

.horizontal-card .project-img img {
  height: 120%;
}

.bottom-text {
  margin-top: auto;
  width: 50%;
  transform: translateY(3em);
  transition: 300ms;
}

.horizontal-card:hover .bottom-text {
  transform: translateY(0);
}

.square-cards-holder {
  display: flex;
  gap: var(--gap);
  flex: 1;
}

.square-card {
  flex: 1;
}

.square-card::after {
  --color: var(--red);
  top: 0;
  right: 0;
  height: 50%;
  width: 50%;
}

.square-card:first-child::after {
  --color: var(--blue);
}

.square-card .bottom-text {
  width: 100%;
  transform: translateY(10em);
}

.square-card:hover .bottom-text {
  width: 100%;
  transform: translateY(5em);
}

.square-card .project-img {
  position: absolute;
  top: 0;
  right: -50%;
  transition: 300ms;
}

.square-card:hover .project-img {
  right: -80%;
}

.square-card .project-img img {
  height: 10em;
}
/* === ACTIVITY === */

.about iframe {
  width: 100%;
  height: 4.5em;
}
/* === MY BLOG === */

.articles {
  margin-top: 2em;
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.articles article {
  display: flex;
  align-items: center;
  gap: 1em;
  padding: 1em;
  border: 2px dashed var(--border-color);
  border-radius: 0.5em;
}

.articles article:nth-child(2n) {
  flex-direction: row-reverse;
}

.articles article .img-holder {
  aspect-ratio: 16 / 10;
  height: 6em;
  border-radius: 0.5em;
  overflow: hidden;
}

.articles article .img-holder img {
  width: 100%;
  height: 100%;
}

.articles article .info {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  flex: 1;
}

.articles article .info h3 {
  font-size: 1.3em;
  font-weight: 400;
}

.articles article .info p {
  font-size: 1em;
  line-height: 1.5;
  color: rgba(var(--accent-rgb), 0.7);
}

.articles article .btn-holder a:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
}

/* === CONTACT ME === */

.contact-holder {
  margin-top: 2em;
  display: grid;
  grid-template: 1fr / 1.3fr 2fr;
  gap: 2em;
  align-items: center;
  margin-bottom: 4em;
}

.contact-me-card {
  display: flex;
  flex-direction: column;
  background: url(./../Media/backgrounds/decoration-2.jpg);
  background-size: cover;
}

.contact-me-card .profile img {
  --size: 7em;
}

.contact-me-card h3 {
  margin: 2rem 0;
  font-size: 3rem;
  font-weight: 400;
  color: var(--primary-color);
}

.contact-me-card .footer {
  display: flex;
  margin-top: 3em;
  align-items: center;
  gap: 1em;
}

.contact-me-card .footer .ico-holder {
  color: var(--primary-color);
}

.form-holder {
  padding: 2em;
  border-radius: 1em;
  background-color: var(--accent-color);
  color: var(--primary-color);
  box-shadow: 0 20px 68px #00000040, 0 1px 2px #0000004d, 0 0 #000,
    inset 0 2px 1px #ffffff80, inset 1px 1px 0.25px #ffffff4d;
}

.form-header {
  border-bottom: 1px dashed var(--primary-color);
  padding: 1em 0 2em 0;
}

.form-header h3 {
  font-size: 1.5em;
  font-weight: 400;
}

.form-holder form {
  margin-top: 2em;
}

.input-holder {
  margin: 1em 0;
}

.form-holder textarea {
  height: 8em;
  resize: none;
}

form .btn-holder {
  display: flex;
  justify-content: flex-end;
}

form .btn-holder button {
  font-size: 1em;
  width: unset;
  padding: 0.5em 1em;
}

form .btn-holder button:hover {
  background: rgba(var(--primary-rgb), 0.5);
}

@media (max-width: 1200px) {
  .hero .grid {
    grid-template: 1fr / 1fr 1fr;
  }

  .hero-info h1 {
    font-size: 4rem;
    line-height: 3.8rem;
  }

  .projects-holder {
    display: flex;
    flex-direction: column;
  }

  .project-details {
    opacity: 1;
    filter: blur(0);
  }

  .vertical-card .project-img {
    bottom: -40%;
  }

  .horizontal-card {
    flex-direction: column;
  }

  .horizontal-card .project-img {
    position: unset;
  }

  .bottom-text {
    width: 100%;
  }

  .horizontal-card .bottom-text {
    transform: translateY(0);
  }

  .square-cards-holder {
    flex-direction: column;
  }

  .square-card {
    display: flex;
    flex-direction: column;
  }

  .square-card .project-img {
    position: unset;
  }
  .square-card:hover .bottom-text,
  .square-card .bottom-text {
    width: 100%;
    transform: translateY(0);
  }
}

@media (max-width: 870px) {
  .hero .grid,
  .contact-holder {
    grid-template: auto auto / auto;
  }

  .design-card .content img {
    width: 80%;
    top: -2em;
  }

  .hero-info h1 {
    font-size: 3rem;
    line-height: 2.8rem;
  }
  .more-about-me .grid,
  .articles article,
  .articles article:nth-child(2n) {
    flex-direction: column;
  }
}
