
:root {
  --primary-green: #8DC63F;
  --primary-brown: #964B00;
  --accent-blue: #1E3A8A;
  --light-bg: #f8f9fa;
  --dark-text: #333;
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  line-height: 1.6;
  color: var(--dark-text);
  background: var(--light-bg);
  overflow-x: hidden;
}

.header {
  background: linear-gradient(135deg, var(--primary-green), var(--primary-brown));
  color: white;
  padding: 2rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.header::after {
  content: '';
  position: absolute;
  bottom: -50px;
  left: 0;
  width: 100%;
  height: 100px;
  background: var(--light-bg);
  transform: skewY(-3deg);
  z-index: 1;
}

.header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.header p {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
  font-size: 1.1rem;
}

.nav {
  display: flex;
  justify-content: center;
  background: rgba(255,255,255,0.9);
  padding: 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav a {
  color: var(--accent-blue);
  text-decoration: none;
  margin: 0 1.5rem;
  font-weight: 600;
  transition: var(--transition);
  position: relative;
}

.nav a:hover {
  color: var(--primary-green);
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-green);
  transition: var(--transition);
}

.nav a:hover::after {
  width: 100%;
}

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

.article-container {
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  padding: 3rem;
  margin-bottom: 3rem;
}

article h2 {
  color: var(--accent-blue);
  margin: 2rem 0 1rem;
  font-size: 1.8rem;
  position: relative;
  padding-bottom: 0.5rem;
}

article h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(to right, var(--primary-green), var(--primary-brown));
}

article h3 {
  color: var(--primary-brown);
  margin: 1.5rem 0 1rem;
  font-size: 1.4rem;
}

article p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.7;
}

pre {
  background: #f5f5f5;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  overflow: auto;
  border-left: 4px solid var(--accent-blue);
}

code {
  font-family: 'Courier New', monospace;
  color: var(--accent-blue);
}

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

.image-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: var(--transition);
}

.image-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.image-card img {
  width: 100%;
  height: auto;
  display: block;
  border-bottom: 1px solid #eee;
}

.image-caption {
  padding: 1rem;
  text-align: center;
  color: var(--dark-text);
}

.footer {
  background: linear-gradient(135deg, var(--primary-brown), var(--accent-blue));
  color: white;
  text-align: center;
  padding: 3rem 0;
  margin-top: 3rem;
}

.footer p {
  margin-bottom: 1rem;
}

.notice {
  background: rgba(255,255,255,0.9);
  border-left: 5px solid var(--primary-green);
  padding: 1rem;
  margin: 2rem 0;
  font-style: italic;
}

@media (max-width: 768px) {
  .nav {
    flex-wrap: wrap;
    padding: 0.5rem;
  }
  
  .nav a {
    margin: 0.5rem;
  }
  
  .article-container {
    padding: 2rem 1rem;
  }
  
  .image-grid {
    grid-template-columns: 1fr;
  }
}

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

.animate-fade {
  animation: fadeIn 1s ease-out;
}

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

.animate-slide {
  animation: slideIn 0.8s ease-out;
}

/* Card styles */
.card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  padding: 2rem;
  margin: 2rem 0;
  transition: var(--transition);
}

.card:hover {
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* Theme toggle */
.theme-toggle {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--accent-blue);
  color: white;
  border: none;
  padding: 0.8rem 1.2rem;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  z-index: 10;
  transition: var(--transition);
}

.theme-toggle:hover {
  background: var(--primary-green);
  transform: translateY(-3px);
}

