@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;700&display=swap');

:root {
  --basalt-black: #2A2B2A;
  --lunar-gray: #E6E6E6;
  --mineral-blue: #4A6FA5;
  --morning-fog: #F8F8F8;
  --pearl-mother: #FAFAFA;
}

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

body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(to bottom, var(--morning-fog), var(--pearl-mother));
  color: var(--basalt-black);
  overflow-x: hidden;
}

.nav-glass {
  background: rgba(42, 43, 42, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.carousel-container {
  height: 100vh;
  position: relative;
}

.carousel-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.magnetic-tile {
  transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
  animation: fadeInUp 0.8s ease-out forwards;
  opacity: 0;
}

.magnetic-tile:nth-child(1) { animation-delay: 0.1s; }
.magnetic-tile:nth-child(2) { animation-delay: 0.2s; }
.magnetic-tile:nth-child(3) { animation-delay: 0.3s; }
.magnetic-tile:nth-child(4) { animation-delay: 0.4s; }

.magnetic-tile:hover {
  transform: translateY(-2px);
  filter: brightness(1.15);
}

.magnetic-tile:hover .tile-image {
  transform: scale(1.05);
}

.tile-image {
  transition: transform 0.4s ease;
  overflow: hidden;
}

.fabric-zoom {
  position: relative;
  overflow: hidden;
}

.fabric-zoom::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle, transparent 30%, rgba(0,0,0,0.4));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.fabric-zoom:hover::before {
  opacity: 1;
}

.fabric-zoom:hover img {
  transform: scale(2);
  filter: brightness(1.1);
}

.text-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.text-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

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

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

.page-transition {
  animation: slideInRight 0.4s ease-out;
}

.timeline-container {
  position: relative;
  padding: 2rem 0;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--mineral-blue);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 4rem;
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
}

.timeline-item:nth-child(even) {
  text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: auto;
  margin-right: 0;
}

.timeline-content {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  width: 45%;
  margin-left: 5rem;
  transition: all 0.3s ease;
}

.timeline-content:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.performance-chart {
  width: 100%;
  height: 300px;
  position: relative;
}

.radar-chart {
  width: 250px;
  height: 250px;
  margin: 0 auto;
}

.color-block {
  display: inline-block;
  width: 60px;
  height: 60px;
  margin: 0.5rem;
  border-radius: 4px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.color-block:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.heat-map {
  position: relative;
  cursor: pointer;
}

.heat-spot {
  position: absolute;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74, 111, 165, 0.8), transparent);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 0.4; }
}

.footer-animation {
  animation: loopLine 3s linear infinite;
}

@keyframes loopLine {
  0% { stroke-dashoffset: 100; }
  100% { stroke-dashoffset: 0; }
}

@media (max-width: 768px) {
  .timeline-line {
    left: 20px;
  }
  
  .timeline-item {
    text-align: left !important;
  }
  
  .timeline-content {
    width: calc(100% - 60px);
    margin-left: 60px !important;
  }
  
  .magnetic-tile {
    margin-bottom: 2rem;
  }
  
  .performance-chart {
    height: 200px;
  }
}

@media (min-width: 769px) {
  .desktop-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding-right: 20%;
  }
  
  .desktop-grid-4 {
    grid-column: span 4;
  }
  
  .desktop-grid-6 {
    grid-column: span 6;
  }
  
  .desktop-grid-12 {
    grid-column: span 12;
  }
}