/**
 * Theme Name: Pikiel Studio
 * Author: MakingLife / fmedia
 * Version: 1.0
 */

@font-face {
    font-family: 'Eklektyk';
    src: url('/wp-content/themes/pikiel/fonts/Eklektyk-Regular.woff2') format('woff2'),
         url('/wp-content/themes/pikiel/fonts/Eklektyk-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'GalanoGrotesque';
    src: url('/wp-content/themes/pikiel/fonts/GalanoGrotesque-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'GalanoGrotesque';
    src: url('/wp-content/themes/pikiel/fonts/GalanoGrotesque-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

:root {
  --background: #EBECE9;
  --secondary-background: #523527;
  --primary-color: #333E26;
  --secondary-color: #B7E8F1;
}

/* SETUP */

html, body {
  margin: 0;
  padding: 0;
  background: var(--background);
  text-align: center;
  font-family: 'GalanoGrotesque', sans-serif;
}

#main-wrapper {
  max-width: 1440px;
  margin: 0 auto;
  text-align: left;
}

/* HEADER */

header {
  width: 100%;
  height: 142px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
header h1 {
  font-weight: 500;
  font-size: 14px;
  text-transform: uppercase;
  color: var(--primary-color);
}

/* MAIN PAGE ANIMATION */
.animation-container {
  position: relative;
  width: 1352px;
  height: 600px;
  margin: 50px auto;
}

.word-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(.8);
  /* Krok 10: Powiększenie całego słowa */
  animation: scaleFull .5s forwards;
  animation-delay: 5s;
}

.letter, .dot {
  position: absolute;
  opacity: 0;
}

/* --- KROK 1 & 2: Pozycjonowanie początkowe p: --- */
.p-letter {
  width: 20.64%;
  opacity: 1;
  transform: translate(-30%, 14%);
  animation: moveP .5s forwards;
  animation-delay: .5s;
}

.dot {
  opacity: 1;
  width: 8.14%;
}

.dot-1 { transform: translate(150%, -100%); animation: dot1-move 2s forwards; animation-delay: .5s; }
.dot-2 { transform: translate(150%, 100%); animation: dot2-move 2s forwards; animation-delay: .5s; }

/* --- DEFINICJE ANIMACJI --- */

/* Krok 1: P przesuwa się na lewo */
@keyframes moveP {
  to { transform: translate(-192%, 14%); }
}

/* Krok 2, 3, 4: Ruch kropek (dwukropka) */
@keyframes dot1-move {
  0% { transform: translate(150%, -100%); }
  25% { transform: translate(-270%, -100%); }
  50% { transform: translate(0, -100%); }
  75% { transform: translate(-100%, 0); }
  100% { transform: translate(-290%, -215%); }
}

@keyframes dot2-move {
  0% { transform: translate(150%, 100%); }
  25% { transform: translate(-270%, 100%); }
  50% { transform: translate(0, 100%); }
  75% { transform: translate(100%, 0); }
  100% { transform: translate(102%, -215%); }
}

/* Krok 5-9: Litery wchodzą z dołu z fade-in */
.i1-stem { width: 7.43%; animation: fadeInSlide .5s forwards; animation-delay: 2.5s; transform: translate(-318%, 6.5%); }
.k-letter { width: 20.3%; animation: fadeInSlide .5s forwards; animation-delay: 3s; transform: translate(-34%, 6.5%); }
.i2-stem { width: 7.43%; animation: fadeInSlide 1s forwards; animation-delay: 3.5s; transform: translate(112%, 6.5%); }
.e-letter { width: 17.8%; animation: fadeInSlide 1s forwards; animation-delay: 4s; transform: translate(128%, 5.5%); }
.l-letter { width: 16.16%; animation: fadeInSlide 1s forwards; animation-delay: 4.5s; transform: translate(260%, 6.5%); }

@keyframes fadeInSlide {
  from { opacity: 0; margin-top: 50px; }
  to { opacity: 1; margin-top: 0; }
}

/* Krok 10: Powiększenie do 100% viewportu */
@keyframes scaleFull {
  to { transform: scale(1) translateY(75px); }
}
@keyframes scaleInitial {
  to {  transform: scale(.8); }
}

/* MAIN PAGE GALLERY */

.project-card {
  width: 323px;
  height: 666px;
  background-color: var(--secondary-color);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  color: var(--primary-color);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.project-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.main-project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 2;

  /* Initial State */
  box-shadow: inset 0 0 0 0 var(--secondary-color);
  border-radius: 0%;
  height: 100%;

  transition: 
    box-shadow 0.6s cubic-bezier(0.25, 1, 0.5, 1), 
    border-radius 0.6s ease,
    height 0.6s ease;
}

.project-overlay::before {
  content: '';
  position: absolute;
  width: 106%;
  height: 86%;
  transform: scale(2);
  
  /* Initial State */
  border: 0px solid var(--secondary-color);
  border-radius: 0%;
  
  box-sizing: border-box;
  transition: 
    border-width 0.6s cubic-bezier(0.25, 1, 0.5, 1), 
    border-radius 0.6s ease;
}

.project-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2rem;
  z-index: 3;

  /* Initial State */
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  transition-delay: 0.1s;
}

.project-card:hover .project-overlay {
  /* box-shadow: inset 0 0 0 100px var(--secondary-color); */
  box-shadow: inset 0 0 0 25px var(--secondary-color);
  border-radius: 170px;
  height: 80%;
}

.project-card:hover .project-overlay::before {
  border-width: 100px; 
  border-radius: 170%;
}

.project-card:hover .project-content {
  opacity: 1;
  transform: translateY(0);
}

.project-title h2, .project-title p {
  color: var(--primary-color);
  margin: 0;
}

/* FOOTER */

footer {
  background: var(--primary-color);
  color: var(--secondary-color);
  font-size: 16px;
  line-height: 23px;
  width: 100%;
  text-align: center;
}
footer .footer-inner {
  max-width: 1352px;
  text-align: left;
  margin: 0 auto;
  padding-top: 44px;
}
.footer-logo {
  background: var(--primary-color) url('/wp-content/themes/pikiel/img/pikiel-logo.svg') center center no-repeat;
  width: 100%;
  height: 580px;
}
.footer-menu {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 68px;
}
.footer-copy {
  font-size: 14px;
  text-align: right;
  transform: translateY(-1em);
  margin: 0;
}

footer a:link, footer a:visited {
  color: var(--secondary-color);
  text-decoration: none;
}
footer a:hover {
  color: var(--secondary-color);
  text-decoration: none;
}