
:root {
  --primary: #0f2027;
  --secondary: #203a43;
  --accent: #6a11cb;
  --highlight: #2575fc;
  --text: rgba(255,255,255,0.9);
  --card-bg: rgba(255,255,255,0.1);
}

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

body {
  background: linear-gradient(135deg, var(--primary), var(--secondary), #2c5364);
  color: var(--text);
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.header {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.header::after {
  content: '';
  display: block;
  width: 150px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--highlight));
  margin: 1.5rem auto;
  border-radius: 2px;
}

h1, h2, h3, h4 {
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

article {
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 3rem;
  box-shadow: 0 15px 35px rgba(0,0,0,0.2);
  margin-bottom: 3rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.card {
  background: var(--card-bg);
  border-radius: 15px;
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--accent), var(--highlight));
}

.img-container {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
  flex-wrap: wrap;
  gap: 1rem;
}

.img-wrapper {
  width: 320px;
  height: 320px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

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

.img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

pre {
  background: rgba(0,0,0,0.4);
  border-radius: 10px;
  padding: 1.5rem;
  overflow-x: auto;
  margin: 2rem 0;
  border-left: 4px solid var(--highlight);
}

code {
  font-family: 'Fira Code', monospace;
  font-size: 0.9rem;
  color: #f8f8f2;
}

.note {
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  margin-top: 2rem;
  padding: 1rem;
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
}

@media (max-width: 768px) {
  .grid {
    grid-template-columns: 1fr;
  }
  
  article {
    padding: 2rem 1.5rem;
  }
  
  .img-wrapper {
    width: 100%;
    height: auto;
  }
}

/* Animations */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.floating {
  animation: float 6s ease-in-out infinite;
}

.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 117, 252, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(37, 117, 252, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 117, 252, 0); }
}

