
:root {
  --primary: #0f2027;
  --secondary: #203a43;
  --accent: #7f5af0;
  --text: #f8f9fa;
  --highlight: #2ec4b6;
  --card-bg: rgba(32, 58, 67, 0.7);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
  font-family: 'Montserrat', 'Roboto', sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: linear-gradient(135deg, var(--primary), var(--secondary), #2c5364);
  min-height: 100%;
  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;
  background: linear-gradient(90deg, var(--highlight), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

h2 {
  font-size: 1.8rem;
  color: var(--highlight);
  position: relative;
  padding-bottom: 0.5rem;
}

h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--accent);
}

h3 {
  font-size: 1.4rem;
  color: var(--text);
  margin-top: 2rem;
}

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

.article-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.article-section {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  transition: var(--transition);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
}

.article-section:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

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

.decorative-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  transition: var(--transition);
}

.decorative-img:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

code {
  font-family: 'Fira Code', monospace;
  background: rgba(0,0,0,0.3);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9rem;
  color: var(--highlight);
}

pre {
  background: rgba(15, 32, 39, 0.8);
  padding: 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1.5rem 0;
  border-left: 4px solid var(--accent);
  font-size: 0.9rem;
  line-height: 1.5;
}

pre code {
  background: transparent;
  padding: 0;
  color: #f8f9fa;
}

.note {
  background: rgba(46, 196, 182, 0.1);
  border-left: 4px solid var(--highlight);
  padding: 1rem;
  margin: 1.5rem 0;
  border-radius: 0 4px 4px 0;
}

.notice {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--accent);
  color: white;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  z-index: 1000;
  animation: float 3s ease-in-out infinite;
}

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

@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .article-section {
    padding: 1.5rem;
  }
  
  .image-grid {
    grid-template-columns: 1fr;
  }
}

/* Interactive elements */
.interactive-element {
  cursor: pointer;
  transition: var(--transition);
}

.interactive-element:hover {
  color: var(--highlight);
}

/* Card styles for demo content */
.demo-card {
  background: rgba(32, 58, 67, 0.5);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255,255,255,0.1);
  transition: var(--transition);
}

.demo-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.demo-card h4 {
  color: var(--highlight);
  margin-bottom: 0.5rem;
}

.demo-card p {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.demo-card .price {
  font-weight: bold;
  font-size: 1.2rem;
  color: var(--text);
}

.demo-card .change {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
}

.demo-card .positive {
  background: rgba(46, 196, 182, 0.2);
  color: var(--highlight);
}

.demo-card .negative {
  background: rgba(255, 107, 107, 0.2);
  color: #ff6b6b;
}

/* Navigation anchors */
.section-anchor {
  display: block;
  position: relative;
  top: -80px;
  visibility: hidden;
}

/* Floating decoration elements */
.decoration {
  position: absolute;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(127,90,240,0.2) 0%, rgba(127,90,240,0) 70%);
  z-index: -1;
}

.decoration-1 {
  top: 10%;
  left: 5%;
  width: 200px;
  height: 200px;
}

.decoration-2 {
  bottom: 15%;
  right: 5%;
  width: 150px;
  height: 150px;
}

/* Scroll progress indicator */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--highlight));
  z-index: 1000;
  transition: width 0.1s ease;
}

