/*
Theme Name: White Agency Codex
Description: Центрированный Codex-стиль с плавающими блоками и стрелками.
Version: 1.1
*/

body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background: #fff;
  color: #111;
  overflow-x: hidden;
}

.main {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
  padding: 2rem;
}

h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.button {
  background: #000;
  color: #fff;
  padding: 0.7rem 1.5rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
}

/* Плавающие элементы */
.floating {
  position: absolute;
  width: 180px;
  padding: 1rem;
  background: #f8f8f8;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  animation: floatIn 2s ease forwards;
  opacity: 0;
}

.floating::before {
  content: "";
  position: absolute;
  width: 2px;
  background: #999;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

@keyframes floatIn {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

#f1 { top: 5%; left: 10%; animation-delay: 0.3s; }
#f2 { top: 10%; right: 10%; animation-delay: 0.6s; }
#f3 { bottom: 15%; left: 15%; animation-delay: 0.9s; }
#f4 { bottom: 10%; right: 20%; animation-delay: 1.2s; }
#f5 { top: 50%; left: 0; animation-delay: 1.5s; }

@media(max-width:768px){
  .floating { position: static; margin: 1rem auto; }
  #arrow-canvas, #code-bg { display: none; }
}


#code-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.07;
  pointer-events: none;
}
.floating:hover::after {
  content: "";
  position: absolute;
  width: 80px;
  height: 80px;
  border: 2px dotted #aaa;
  border-radius: 50%;
  animation: wander 1.5s infinite ease-in-out;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
  opacity: 0.6;
}

@keyframes wander {
  0%   { transform: translate(-50%, -50%) translateX(0px) translateY(0px); }
  25%  { transform: translate(-50%, -50%) translateX(10px) translateY(-8px); }
  50%  { transform: translate(-50%, -50%) translateX(-12px) translateY(5px); }
  75%  { transform: translate(-50%, -50%) translateX(6px) translateY(12px); }
  100% { transform: translate(-50%, -50%) translateX(0px) translateY(0px); }
}

/* === Стили фонового кода === */
#code-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  background: white;
  opacity: 0.07;
}

/* === Стили стрелок === */
#arrow-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 0;
  pointer-events: none;
}

.floating {
  position: absolute;
  background: white;
  padding: 10px 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  font-size: 16px;
  z-index: 2;
}

.cta {
  background: black;
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 5px;
  cursor: pointer;
}
.cta:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
}

@media(max-width: 768px) {
  .floating {
    position: static;
    margin: 10px auto;
    display: block;
  }
  #code-bg, #arrow-canvas {
    display: none;
  }
}
/*
@media(max-width: 768px) {
  .hero-zone {
    min-height: 100vh;
  }
}
.hero-zone {
  position: relative;
  min-height: 1200px;
  background: white;
}
*/

/* Portfolio */
.portfolio {
  background: #f5f5f5;
  padding: 6rem 2rem 4rem; /* добавили верхний отступ побольше, было padding: 4rem 2rem;*/
  text-align: center;
}

.portfolio h2 {
  font-size: 2.2rem;
  margin-bottom: 2rem;
}

.portfolio-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  max-width: 1200px;
  margin: 0 auto;
}

.project {
  background: white;
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  transition: transform 0.2s;
}

.project img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.project:hover {
  transform: translateY(-5px);
}
.seo-text {
  max-width: 960px;
  margin: 4rem auto;
  padding: 2rem;
  line-height: 1.7;
  font-size: 16px;
  color: #333;
}
.seo-text h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

