
:root {
  --primary-color: #A8C09E;
  --secondary-color: #F5ECC9;
  --accent-color: #456DB5;
  --text-color: #333333;
  --code-bg: #f4f4f4;
  --code-color: #d63384;
}

body {
  font-family: 'Roboto', sans-serif;
  background: radial-gradient(circle, var(--primary-color), transparent);
  color: var(--text-color);
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

header {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  padding: 20px 10px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

header h1 {
  font-size: 2.5rem;
  font-family: 'Geometric', sans-serif;
  color: white;
  position: relative;
  z-index: 2;
}

header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 100%;
  background: repeating-linear-gradient(45deg, rgba(255,255,255,0.1), rgba(255,255,255,0.1) 10px, transparent 10px, transparent 20px);
  animation: moveGradient 10s linear infinite;
  transform: rotate(-45deg);
  z-index: 1;
}

@keyframes moveGradient {
  0% { transform: translateX(-50%) rotate(-45deg); }
  100% { transform: translateX(0) rotate(-45deg); }
}

.container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.text-block {
  background: var(--secondary-color);
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.text-block:hover {
  transform: translateY(-5px);
}

.image-block img {
  width: 100%;
  border-radius: 15px;
  object-fit: cover;
  aspect-ratio: 1/1;
  transition: transform 0.5s ease;
}

.image-block img:hover {
  transform: scale(1.05);
}

pre {
  background: var(--code-bg);
  color: var(--code-color);
  padding: 15px;
  border-radius: 10px;
  overflow-x: auto;
  font-size: 0.9rem;
  position: relative;
}

pre code {
  display: block;
}

button {
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  color: white;
  border: none;
  border-radius: 25px;
  padding: 10px 20px;
  font-size: 1rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

button::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255,255,255,0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.5s ease;
}

button:hover::after {
  width: 200%;
  height: 200%;
}

@media (max-width: 768px) {
  header h1 {
    font-size: 2rem;
  }
  
  .container {
    grid-template-columns: 1fr;
  }
}

