/**
 * WIPTEST - КРЕАТИВНЫЙ ДИЗАЙН
 * Полностью уникальный подход!
 */

:root {
  --black: #000000;
  --white: #ffffff;
  --accent: #0066ff;
  --gray: #808080;
  --light-gray: #cccccc;
}

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

body {
  font-family: 'Inter', sans-serif;
  background: #0f1729;
  color: #ffffff;
  overflow-x: hidden;
}

/* ==================== SPLIT SCREEN HERO ==================== */

.split-hero {
  height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  max-width: 100vw;
  overflow: hidden;
}

.split-left {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
  position: relative;
  overflow: hidden;
}

.split-right {
  background: var(--white);
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
  position: relative;
  overflow: hidden;
}

/* No animated overlay */

.hero-massive-text {
  font-size: clamp(4rem, 12vw, 10rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.05em;
}

/* ==================== HORIZONTAL SCROLL SECTION ==================== */

.horizontal-scroll-wrapper {
  height: 100vh;
  overflow-x: auto;
  overflow-y: hidden;
  display: flex;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
}

.horizontal-scroll-wrapper::-webkit-scrollbar {
  display: none;
}

.horizontal-panel {
  min-width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  scroll-snap-align: start;
  padding: 100px;
}

/* ==================== BENTO GRID ==================== */

.bento-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(3, 250px);
  gap: 20px;
  padding: 100px 60px;
  max-width: 1400px;
  margin: 0 auto;
}

.bento-item {
  background: var(--white);
  color: var(--black);
  padding: 35px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.5s ease;
  cursor: pointer;
}

.bento-item:hover {
  transform: scale(1.02);
  box-shadow: 0 30px 60px rgba(0, 102, 255, 0.3);
}

.bento-item h3 {
  font-size: 1.75rem !important;
  margin-bottom: 12px !important;
}

.bento-item p {
  font-size: 0.9375rem !important;
  line-height: 1.5 !important;
  margin-bottom: 15px !important;
}

.bento-item ul {
  margin: 15px 0 !important;
}

.bento-item ul li {
  font-size: 0.875rem !important;
  margin: 8px 0 !important;
}

.bento-large {
  grid-column: span 3;
  grid-row: span 2;
}

.bento-wide {
  grid-column: span 3;
  grid-row: span 1;
}

.bento-tall {
  grid-column: span 3;
  grid-row: span 3;
}

.bento-small {
  grid-column: span 2;
  grid-row: span 1;
}

/* ==================== DIAGONAL SECTIONS ==================== */

.diagonal-section {
  padding: 150px 0;
  margin: 100px 0;
  background: var(--white);
  color: var(--black);
  overflow: hidden;
  position: relative;
}

.diagonal-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 60px;
}

/* ==================== 3D CARD STACK ==================== */

.card-stack {
  position: relative;
  height: 600px;
  perspective: 1000px;
}

.stack-card {
  position: absolute;
  width: 400px;
  height: 500px;
  background: var(--white);
  color: var(--black);
  padding: 40px;
  transition: transform 0.5s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.stack-card:nth-child(1) {
  z-index: 3;
  transform: translateX(0) translateY(0) rotate(0deg);
}

.stack-card:nth-child(2) {
  z-index: 2;
  transform: translateX(30px) translateY(30px) rotate(3deg);
}

.stack-card:nth-child(3) {
  z-index: 1;
  transform: translateX(60px) translateY(60px) rotate(6deg);
}

.card-stack:hover .stack-card:nth-child(1) {
  transform: translateX(-30px) translateY(-20px) rotate(-5deg);
}

.card-stack:hover .stack-card:nth-child(2) {
  transform: translateX(0) translateY(0) rotate(0deg);
}

.card-stack:hover .stack-card:nth-child(3) {
  transform: translateX(30px) translateY(20px) rotate(5deg);
}

/* ==================== MARQUEE ==================== */

.marquee {
  overflow: hidden;
  padding: 40px 0;
  background: var(--white);
  color: var(--black);
  position: relative;
}

.marquee-content {
  display: flex;
  animation: marquee 40s linear infinite;
  gap: 80px;
  will-change: transform;
}

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

.marquee-item {
  font-size: 3rem;
  font-weight: 800;
  white-space: nowrap;
  opacity: 0.2;
  transition: opacity 0.3s ease, color 0.3s ease;
  cursor: default;
}

.marquee-item:hover {
  opacity: 1;
  color: var(--accent);
}

/* ==================== SPLIT CARDS ==================== */

.split-cards {
  display: grid;
  grid-template-columns: 40% 60%;
  min-height: 100vh;
  align-items: stretch;
}

.sticky-left {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  color: var(--black);
  padding: 80px;
}

.scrolling-right {
  background: var(--black);
  padding: 80px;
}

.scroll-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--gray);
}

/* ==================== INTERACTIVE NUMBER ==================== */

.big-number {
  font-size: clamp(8rem, 20vw, 20rem);
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(45deg, var(--white), var(--gray));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.big-number:hover {
  transform: scale(1.1);
}

/* ==================== MINIMAL BUTTON ==================== */

.minimal-btn {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
  padding: 20px 60px;
  font-size: 1.125rem;
  font-weight: 600;
  border-radius: 0;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.minimal-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: #0f1729;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

.minimal-btn:hover::before {
  width: 100%;
}

.minimal-btn:hover {
  color: #ffffff !important;
}

/* For white background buttons (on dark bg) */
.minimal-btn[style*="border-color: white"]::before {
  background: #ffffff;
}

.minimal-btn[style*="border-color: white"]:hover {
  color: #0f1729 !important;
}

/* For black buttons (on white bg) */
.minimal-btn[style*="border-color: black"] {
  border-color: #0f1729 !important;
  color: #0f1729;
}

.minimal-btn[style*="border-color: black"]::before {
  background: #0f1729;
}

.minimal-btn[style*="border-color: black"]:hover {
  color: #ffffff !important;
}

/* ==================== ANIMATIONS ==================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(60px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Utility classes */
.animate-fade-in {
  animation: fadeIn 1s ease both;
}

.animate-fade-in-up {
  animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.animate-slide-in-left {
  animation: slideInLeft 1s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.animate-slide-in-right {
  animation: slideInRight 1s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.animate-scale-in {
  animation: scaleIn 1s cubic-bezier(0.4, 0, 0.2, 1) both;
}

/* Delays */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* ==================== SECTION ANIMATIONS ==================== */

/* From Bottom (default) */
.animate-section {
  opacity: 0;
  transform: translateY(80px);
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1),
              transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-section.section-visible {
  opacity: 1;
  transform: translateY(0);
}

/* From Left */
.animate-from-left {
  opacity: 0;
  transform: translateX(-100px);
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1),
              transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-from-left.section-visible {
  opacity: 1;
  transform: translateX(0);
}

/* From Right */
.animate-from-right {
  opacity: 0;
  transform: translateX(100px);
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1),
              transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-from-right.section-visible {
  opacity: 1;
  transform: translateX(0);
}

/* Scale In */
.animate-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1),
              transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-scale.section-visible {
  opacity: 1;
  transform: scale(1);
}

/* Rotate In */
.animate-rotate {
  opacity: 0;
  transform: rotate(-5deg) scale(0.95);
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1),
              transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-rotate.section-visible {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 1024px) {
  .split-hero {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 100vh;
  }
  
  .split-left {
    min-height: 50vh;
    padding: 60px 30px;
  }
  
  .split-right {
    min-height: 50vh;
    padding: 60px 30px;
  }
  
  .hero-massive-text {
    font-size: 4rem;
  }
  
  .minimal-btn {
    padding: 16px 40px;
    font-size: 1rem;
  }
  
  .bento-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    padding: 60px 20px;
    gap: 15px;
  }
  
  .bento-item {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
    min-height: 280px;
  }
  
  .split-cards {
    grid-template-columns: 1fr;
  }
  
  .sticky-left {
    position: relative;
    height: auto;
    min-height: 50vh;
  }
  
  .scrolling-right {
    padding: 40px 20px;
  }
  
  .marquee-item {
    font-size: 2rem;
  }
  
  .diagonal-section {
    padding: 80px 20px;
    margin: 60px 0;
  }
  
  .diagonal-content {
    padding: 0 30px;
  }
  
  .scroll-section {
    min-height: 60vh;
    padding: 40px 20px;
  }
}

@media (max-width: 768px) {
  .hero-massive-text {
    font-size: clamp(2.5rem, 12vw, 3.5rem);
    text-align: center;
  }
  
  .split-left, .split-right {
    padding: 40px 20px;
    min-height: 60vh;
    width: 100%;
    max-width: 100vw;
  }
  
  .split-left {
    text-align: center;
  }
  
  .minimal-btn {
    width: calc(100% - 40px);
    max-width: 300px;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
  
  .stat-label {
    font-size: 0.875rem;
  }
  
  .marquee {
    overflow-x: hidden;
  }
  
  .marquee-item {
    font-size: 1.5rem;
  }
  
  .diagonal-section {
    padding: 60px 20px;
    width: 100%;
    max-width: 100vw;
  }
  
  .diagonal-content {
    padding: 0 20px;
    width: 100%;
  }
  
  .diagonal-content p {
    font-size: 1.25rem !important;
  }
  
  .bento-item {
    padding: 30px 20px !important;
  }
  
  .bento-item h3 {
    font-size: 1.5rem !important;
    word-wrap: break-word;
  }
  
  .bento-item p,
  .bento-item ul {
    font-size: 0.875rem !important;
  }
}

