
:root {
  --primary-color: #4287f5;
  --gradient-start: #a042f5;
  --gradient-end: #f542d1;
  --accent-color: #ff9c3b;
  --text-color: #ffffff;
  --nav-background: rgba(0, 0, 0, 0.5);
  --sidebar-background: rgba(0, 0, 0, 0.7);
  --card-bg: rgba(255, 255, 255, 0.1);
  --shadow-color: rgba(0, 0, 0, 0.1);
}

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

body {
  font-family: 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: var(--text-color);
  line-height: 1.6;
  font-size: 16px;
  padding-top: 80px;
  min-height: 100%;
}

.notice {
  position: fixed;
  top: 10px;
  right: 10px;
  background: rgba(0,0,0,0.7);
  padding: 10px 15px;
  border-radius: 5px;
  font-size: 14px;
  z-index: 1001;
  backdrop-filter: blur(5px);
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: var(--nav-background);
  display: flex;
  align-items: center;
  padding: 0 30px;
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.nav-logo {
  font-size: 22px;
  font-weight: 700;
  margin-right: auto;
  background: linear-gradient(to right, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-menu {
  display: flex;
  gap: 25px;
}

.nav-link {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.nav-link:hover {
  background: rgba(255,255,255,0.1);
}

.toggle-btn {
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 24px;
  cursor: pointer;
  display: none;
}

.sidebar {
  position: fixed;
  top: 60px;
  left: 0;
  width: 250px;
  height: calc(100vh - 60px);
  background: var(--sidebar-background);
  transform: translateX(-250px);
  transition: transform 0.3s ease;
  padding: 20px;
  z-index: 999;
  overflow-y: auto;
}

.sidebar.open {
  transform: translateX(0);
}

.sidebar-link {
  display: block;
  color: var(--text-color);
  text-decoration: none;
  padding: 10px 0;
  margin-bottom: 5px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: all 0.3s ease;
}

.sidebar-link:hover {
  color: var(--accent-color);
  padding-left: 10px;
}

.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px;
}

.hero {
  text-align: center;
  padding: 60px 0;
  margin-bottom: 40px;
  position: relative;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  background: linear-gradient(to right, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 30px;
}

.hero-image {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  border-radius: 15px;
  box-shadow: 0 15px 30px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
}

.hero-image:hover {
  transform: scale(1.02);
}

article {
  background: rgba(255,255,255,0.05);
  border-radius: 15px;
  padding: 40px;
  margin-bottom: 40px;
  backdrop-filter: blur(5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

article h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--primary-color);
}

article h3 {
  font-size: 1.5rem;
  margin: 30px 0 15px;
  color: var(--accent-color);
}

article p {
  margin-bottom: 20px;
  font-size: 1.1rem;
}

pre {
  background: rgba(0,0,0,0.3);
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
  overflow-x: auto;
  font-family: 'Courier New', Courier, monospace;
  font-size: 14px;
  line-height: 1.5;
  position: relative;
}

pre::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
  border-radius: 8px 0 0 8px;
}

code {
  font-family: 'Courier New', Courier, monospace;
  background: rgba(0,0,0,0.2);
  padding: 2px 5px;
  border-radius: 3px;
}

.button {
  background-color: var(--accent-color);
  border: none;
  padding: 12px 25px;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  display: inline-block;
  margin: 10px 0;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.button:active {
  transform: translateY(1px);
}

.card-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin: 40px 0;
}

.card {
  background: var(--card-bg);
  border-radius: 15px;
  padding: 25px;
  backdrop-filter: blur(5px);
  box-shadow: 0 4px 6px var(--shadow-color);
  transition: all 0.3s ease;
  border: 1px solid rgba(255,255,255,0.1);
}

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

.card img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 15px;
  aspect-ratio: 1/1;
  object-fit: cover;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.card h4 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.card p {
  font-size: 1rem;
  margin-bottom: 15px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}

.tag {
  background: rgba(255,255,255,0.1);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
}

.progress-bar {
  width: 0;
  height: 5px;
  background-color: var(--primary-color);
  animation: load 3s forwards;
  margin: 20px 0;
  border-radius: 5px;
}

@keyframes load {
  from { width: 0; }
  to { width: 100%; }
}

.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 8px;
  height: 8px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  animation: move 15s linear infinite;
}

@keyframes move {
  0% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(100px) translateX(100px); }
  100% { transform: translateY(0) translateX(0); }
}

@media (max-width: 992px) {
  .nav-menu {
    display: none;
  }
  
  .toggle-btn {
    display: block;
  }
  
  article {
    padding: 30px;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .main-content {
    padding: 20px;
  }
  
  article {
    padding: 25px;
  }
  
  .card-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 0 15px;
  }
  
  .hero {
    padding: 40px 0;
  }
  
  .hero h1 {
    font-size: 1.8rem;
  }
  
  article {
    padding: 20px;
  }
  
  article h2 {
    font-size: 1.6rem;
  }
  
  article h3 {
    font-size: 1.3rem;
  }
}

