/*
 Theme Name:   My Custom Theme
 Template:     qi
 Version:      1.0
 */


@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@300;400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&family=Space+Mono:ital,wght@0,400;0,700;1,400;1,700&display=swap');

/* //testy */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

body {
  box-shadow: inset 0px 300px 120px -200px rgb(255, 255, 255);
}

.projects {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 20px;
  padding: 160px;
  padding-top: 20px;
  padding-bottom: 80px;
}

#projects {
  position: relative;
}

.testimonials-standalone .testimonial {
  z-index: 0;
}

.background-image {
  background-size: contain !important;
}

.footer-part {
  display: flex;
  flex-direction: column;
  text-align: center;
}

.footer-part-body {
  text-align: left !important;
}

.contact-container {
  background-image: url(resources/squiggly.png);
  box-shadow: inset 0px 130px 50px -80px #c3b091;

}

#main.about-me {
  position: relative;
}

.squiggly-decoration {
  position: absolute;
  top: -320px;
  width: 170vw;

}

.testimonials {
  margin-top: 90px;
}

.testimonial {
  z-index: 100;
  background-color: white !important;
}

@media (max-width: 992px) {

  .footer-part-body {
    text-align: center !important;
  }

  /* .right-decoration,
  .left-decoration-higher,
  .left-decoration-lower {
    display: none !important;
  } */
}

@media (min-width: 992px) {
  .main-nav a {
    color: black !important;
  }

  .right-decoration-rect {
    position: absolute;
    height: 300px;
    width: 200px;
    background: #c3b091;
    right: 0;
    top: -150px;
  }

  .right-decoration-rect-1 {
    height: 100px;
    width: 100px;
    position: absolute;
    background: white;
    top: -50px;
    right: 150px;
    border: 2px solid #c3b091;
  }

  .left-decoration-rect-1 {
    width: 400px;
    position: absolute;
    height: 120px;
    background: black;
    left: -190px;
    top: -60px;
    background: white;
    border: 2px solid #c3b091;
  }

  .right-decoration {
    height: 90px;
    background: #c3b091;
    width: 350px;
    border-radius: 50px;
    position: absolute;
    float: right;
    right: -70px;
    top: -135px;
    border: 4px solid white;
    box-sizing: border-box;
  }

  .left-decoration-higher {
    height: 90px;
    background: rgb(255, 255, 255);
    border: 4px solid #c3b091;
    box-sizing: border-box;
    width: 350px;
    border-radius: 50px;
    position: absolute;
    float: right;
    left: -200px;
    top: -135px;
  }

  .left-decoration-lower {
    height: 90px;
    background: #c3b091;
    border: 4px solid #c3b091;
    box-sizing: border-box;
    width: 350px;
    border-radius: 50px;
    position: absolute;
    float: right;
    left: -100px;
    top: -45px;
  }
}




.article-info,
.article-info:hover,
.projects article a:hover {
  border-radius: 20px;
}

.article-overlay:hover {}

.d-none {
  display: none !important;
}

.article-overlay {
  height: 100%;
  width: 100%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;

  animation: fadeUp 0.3s ease;
}

.article-info {
  background-color: rgba(0, 0, 0, 0.85);
  min-height: 100px;
  color: white;
  padding: 40px;
  text-align: center;
}

.article-info:hover {


  background-color: rgba(0, 0, 0, 0.6);
  min-height: 100px;
  color: white;
  padding: 40px;
  text-align: center;
}

.projects article a:hover {
  background: rgba(0, 0, 0, 0.6);
  z-index: 100000;

}



.projects article a {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: end;
  text-decoration: none;
}

.projects article {
  display: flex;
  justify-content: end;

  flex: 0 1 calc(50% - 10px);
  display: flex;
  flex-direction: column;
  box-shadow: 1px 1px 10px black;
  border-radius: 20px;

  min-height: 400px;
  background-repeat: no-repeat;
  background-size: contain;

  background-position: center;
}

.projects article .article-row-right {
  margin-left: 0;
}

.about-me {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #c3b091;
}

.about-me-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: justify;
  padding: 120px;
  padding-top: 20px;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInFromBottom {
  from {
    opacity: 0;
    transform: translateY(200px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInFromRightSmall {
  from {
    opacity: 0;
    transform: translateX(10px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInFromRight {
  from {
    opacity: 0;
    transform: translateX(500px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-500px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}


@media (max-width: 992px) {
  .main-nav #menu-main a {
    color: white !important;
  }

  .main-nav a {
    color: white !important;
  }

  section.wrapper {
    margin: 0 !important;
  }

  .about-me-left {
    padding: 60px;
    padding-top: 20px;
    padding-bottom: 80px;

  }

  #contact.contact-container {
    padding-top: 80px !important;
  }

  #projects.posts-grid-main {
    padding-top: 80px !important;
    padding-bottom: 100px !important;
  }

  .about-me-right {
    margin-top: 80px;
  }

  .about-me-right img {
    max-height: 350px !important;
  }

  .sub-content #main.about-me {
    padding-top: 80px !important;
    display: flex;
  }

  .projects {
    padding: 20px !important;
  }

  .projects article {
    flex: 1 1 calc(50%);
  }

  .sub-content {
    display: flex;
    flex-direction: column;
  }

  .main-nav a {
    text-shadow: none !important;
  }

  .contact {
    display: flex !important;
    align-items: center !important;
    margin: 40px !important;
    box-shadow: 1px 1px 10px black !important;
    border-radius: 35px !important;
    display: flex !important;
    flex-direction: column !important;
    text-align: center !important;
    height: auto !important;
    width: auto !important;
    background-color: white !important;
    padding: 20px !important;
    padding-top: 20px !important;
    padding-top: 0 !important;
    left: 0 !important;
  }
}


.contact {
  /* animation: fadeInFromRight 0.3s ease; */
  margin: 80px;
  width: 70%;
  height: 30%;
  box-shadow: 1px 1px 10px black;
  border-radius: 35px;
  left: 500px;
  display: flex;
  flex-direction: column;
  position: relative;
  align-items: baseline;
  padding-left: 80px;
  padding-top: 20px;
  padding-bottom: 20px;
  background-color: white;
}

html {
  scroll-behavior: smooth;
}

/* Po pojawieniu się w widoku */
.show-right-animation-small {
  opacity: 0;
  transform: translateX(10px);
  animation: fadeInFromRightSmall 0.8s ease forwards;
}

.show-bottom-animation {
  opacity: 0;
  transform: translateY(200px);
  animation: fadeInFromBottom 1.2s ease forwards;
}



.left-animation-4 {
  opacity: 0;
  transform: translateX(-500px);
  animation: fadeInFromLeft 1.2s ease forwards;
}

.right-animation-4 {
  opacity: 0;
  transform: translateX(500px);
  animation: fadeInFromRight 1.2s ease forwards;
}



.show-right-animation {
  opacity: 0;
  animation: fadeInFromRight 0.8s ease forwards;
}

.show-left-animation {
  opacity: 0;
  animation: fadeInFromLeft 0.8s ease forwards;
}

.about-me-right {
  flex: 1;
  align-items: center;
  display: flex;
  justify-content: center;
}

.about-me-right img {
  max-height: 650px;
}



.site-header {
  z-index: 1;
}

.site-main {
  flex-direction: column;
}

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Ogólne */
html {
  height: 100%;
}

body {
  height: 100%;
  color: #000000;
  /* font-family: 'Roboto Mono', monospace; */
  font-family: "Space Mono", monospace !important;
  font-weight: 300;
  display: flex;
  flex-direction: column;
}

.posts-grid-main {
  background: #c3b091;
}

section.hero {
  height: calc(100% - 80px);
  display: flex;
  justify-content: center;
  align-content: center;
  align-items: center;
}

div.hero-offset {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  height: 100vw;
  margin-bottom: 100px;
}

.typewrite {
  color: #c3b091 !important;
}



.main-nav a {
  font-size: 1.2rem !important;
}

.header-nav,
.main-nav a,
h1.different-title {
  font-family: "Playfair Display", serif !important;
}

.header-nav a,
.header-nav {
  color: black !important;
}

main {
  /* color: #000000;
	font-family: "Manrope", sans-serif;
	font-weight: 300;
	flex: 1;
	display: flex !important;
	overflow-y:auto; */
}

.hero {
  /* flex: 1;              
  display: flex;
  align-items: center;
  justify-content: center;
	color: #000000;
	flex-direction: column; */

}

.posts-grid article {
  background-color: white;
}

.posts-grid .grid {
  padding-bottom: 50px;
}

.about-me {
  display: flex;
  flex-direction: column;
}

.about-standalone,
.standalone-contact {
  display: flex;
  justify-content: center;
}

.single-post-site .wrapper {
  width: min(1100px, 92vw);
}

.single-post-site {
  display: flex;
  align-items: center;
}

.cert-image img {
  max-width: 60%;
  height: auto;

}

.posts-grid-standalone .grid {
  width: min(1100px, 92vw);
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.posts-grid-standalone {
  display: flex;
  justify-content: center;
}

.posts-grid-standalone .article-row-left img {
  height: 100%;
  object-fit: contain;
}

.posts-grid-standalone .article-row-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-offset {
  max-width: 80%;
  min-width: 80%;
}

.hero h1 {
   width: 100%;

  }

@media (max-width: 1000px) {
  .hero h1 {
    font-size: 40px !important;

  }
}

section.hero {
  padding-left: 50px;
  padding-right: 50px;
}

.hero-header {
  color: #c3b091 !important;
	min-height: 190px;
  display: inline-block;
}

.hero-subtitle {
  text-align: left;
  width: 100%;
}

.posts-grid-standalone article {
  box-shadow: 0px 0px 10px 1px black;
  border-radius: 20px;
  overflow: hidden;
  min-height: 300px;
}

.entry-header {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.entry-header img {
  max-height: 500px;
  width: auto;
}



.standalone-contact .inner {
  width: min(1100px, 92vw);
  text-align: center;

}

.about-standalone .inner {
  text-align: justify;
  width: min(1100px, 92vw);
}

/* .hero-offset { transform: translate(-0px, -0px); } */

@media (max-width: 1550px) {
  .hero-offset {
    transform: translate(-0px, -0px);
  }
}

@media (max-width: 992px) {

  .standalone-contact {
    text-align: center;
  }

  .about-me {
    display: flex;
    flex-direction: column;
  }

  .footer {
    text-align: center !important;
    flex-direction: column !important;
  }

  .hero-offset {
    transform: translate(-0px, -0px);
  }

  main {
    overflow-x: clip;
  }

  section.wrapper {
    padding: 0 !important;
  }

  .main-nav ul {

    padding-left: 20px !important;
    padding-right: 20px !important;
    overflow-x: auto;
  }

  .typewrite {
    font-size: 20px !important;
    margin: 0 0 !important;
    display: inline-block !important;
    padding-bottom: 4px !important;
    padding-right: 8px !important;
    font-size: 25px !important;
  }

  h1 {
    line-height: 1 !important;
  }

  .header-nav {
    font-size: 10px;
    margin-top: -10px;
  }

  .article-row {
    flex-direction: column;
    padding: 0.5rem;
  }

  .article-row-left {
    width: 100%;

  }

  .article-row-right {
    margin-left: 0 !important;
    width: 100%;
  }

  .testimonial {
    width: 80%;
  }

}

@media (max-width: 768px) {
  .hero-offset {
    transform: translate(-0px, -0px);
  }
}

.hero h1 {
  color: #000000;
  font-size: 70px;
  text-shadow: 0px 0px 9px rgb(255, 255, 255);
}

.header-nav {

  display: flex;
  gap: 2rem;
  justify-content: center;
  padding-right: 20px;
}

.header-nav a {
  text-decoration: none;
  color: #000000;
  transition: text-shadow 0.4s ease;
}

.header-nav a:hover {
  color: rgb(0, 0, 0);
  text-shadow:
    0 0 8px rgba(255, 255, 255, 0.7),
    0 0 15px rgba(255, 255, 255, 0.6),
    0 0 25px rgba(255, 255, 255, 0.5);
}


/* NAV = kontener z wysokością */
.main-nav {
  height: 80px;

  display: flex;
  align-items: center;
  /* WYŚRODKOWANIE PIONOWE div.nav-menu */
  justify-content: center;
  /* font-family: 'Roboto Mono', monospace; */
  font-family: "Space Mono", monospace !important;
}

/* UL = flex container */
.main-nav ul {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* WYŚRODKOWANIE PIONOWE <li> */
  list-style: none;
  margin: 0;
  padding: 0;

  width: 100%;
  padding-left: 200px;
  padding-right: 200px;
}

/* LI = elementy poziome */
.main-nav>ul>li {
  flex: 1;
  text-align: center;
}

b {
  font-weight: 700 !important;

}

/* Linki */
.main-nav a {
  text-decoration: none;
  font-weight: 300;
  letter-spacing: 0.05em;
  font-size: 1rem;
  padding: 0.75rem 1rem;
  display: inline-block;
  transition: text-shadow 0.2s ease-in-out;

  text-shadow: 0 0 5px rgb(255, 255, 255), 0 0 10px rgb(255, 255, 255), 0 0 20px rgb(255, 255, 255);
}

.main-nav a:hover {
  color: rgb(0, 0, 0);
  text-shadow:
    0 0 8px rgba(255, 255, 255),
    0 0 15px rgba(255, 255, 255),
    0 0 25px rgba(255, 255, 255);
}

.wrapper-testimonials {
  position: relative;
}

.footer {
  display: flex;
  flex-direction: row;
  gap: 40px;
  justify-content: space-around;
  padding-top: 40px;
  padding-bottom: 40px;
}

.footer div {
  height: 100%;
  text-align: center;
}


.footer {
  z-index: 1;
  color: #000000;
  text-align: right;
  font-size: 15px;
  font-weight: 100;
  letter-spacing: 2px;
  border-top: 0.1px solid #000000;
}

section.wrapper {
  padding: clamp(2rem, 5vw, 4rem) 1rem;
  width: 100%;
}

.wrapper .inner {
  padding-bottom: 40px;
}

section.wrapper-testimonials {
  padding: clamp(2rem, 5vw, 4rem) 1rem;
  width: 100%;
}


section.wrapper h1 {
  text-align: center;
  color: black;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 2.5rem;
  text-shadow: 0 0 5px rgba(255, 255, 255, .35),
    0 0 12px rgba(255, 255, 255, .25);
}

section.wrapper h3 {
  color: black;
}

main a {
  color: #710000 !important;
}



.testimonials {

  background: #ffffff;
  /* dopasuj do swojego header/footer */

}

.testimonials .inner {
  width: min(1100px, 92vw);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.testimonials-title {
  text-align: center;
  color: #000000;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 2.5rem;
  text-shadow: 0 0 5px rgba(255, 255, 255, .35),
    0 0 12px rgba(255, 255, 255, .25);
}

.testimonial {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .35);
  transition: transform .2s ease, box-shadow .2s ease;
  width: 80%;
}

.testimonial:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .5);
}

.testimonial blockquote {
  margin: 0 0 1rem;
}

.testimonial blockquote p {
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.5;
  color: #000000;
}

.testimonial .author {
  display: block;
  font-size: .9rem;
  color: #000000;
}

.testimonial .author a {
  color: #000000;
  text-decoration: underline;
}

.testimonial .author a:hover {
  color: #000000;
}

.article-row {
  display: flex;
}

.typewrite {
  --n: 16;
  /* liczba znaków w H1 */
  --dur: 1s;
  /* czas „pisania” */
  --caret: #000000;
  /* kolor kursora */

  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  position: relative;
  border-right: .04em solid var(--caret);
  /* kursor podczas pisania */
  animation: typing var(--dur) steps(var(--n)) both,
    caret-blink 1s steps(1, end) infinite;

  padding-bottom: 10px;
  animation-delay: 0s, var(--dur);
  padding-right: 20px;

}



@keyframes typing {
  from {
    width: 0
  }

  to {
    width: 100%
  }
}

@keyframes caret-blink {
  50% {
    border-right-color: transparent;
  }
}

@media (prefers-reduced-motion: reduce) {
  .typewrite {
    animation: none;
    border-right: none
  }

  .typewrite::after {
    animation: none;
    content: ""
  }
}

.article-row-left {
  width: 240px;
  flex-shrink: 0
}

.article-row-right {
  flex: 1;
  min-width: 0;
  margin-left: 4rem;
  padding: 20px;
}

.background-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* dopasowanie */
  z-index: -2;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.75);
  /* biały półprzezroczysty */
  z-index: -2;
}


.menu-toggle {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  color: #fff;
  /* zmień wg designu */
  cursor: pointer;
}

.menu-toggle {
  color: black;
}



/* układ mobilny */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-menu {
    display: none !important;
    flex-direction: column;
    position: absolute;
    top: 60px;
    /* poniżej headera */
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    padding: 20px;
    width: 200px;
    z-index: 999;
    margin-top: 20px !important;
  }

  .nav-menu.open {
    display: flex !important;
  }

  .main-nav a {
    color: white;
  }
}