
:root {
  --primary: #1E2740;
  --secondary: #3F5EFB;
  --accent: #FF914D;
  --text: #F5F7FA;
  --light-bg: rgba(30, 39, 64, 0.8);
  --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Montserrat', 'Roboto', sans-serif;
}

body {
  background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
  background-size: 400% 400%;
  animation: GradientAnimation 15s ease infinite;
  color: var(--text);
  line-height: 1.6;
  min-height: 100%;
  padding-top: 80px;
}

@keyframes GradientAnimation {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

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

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(30, 39, 64, 0.95);
  backdrop-filter: blur(10px);
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
}

.nav-logo span {
  color: var(--accent);
}

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

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link:hover {
  color: var(--accent);
}

.hamburger {
  display: none;
  cursor: pointer;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background: var(--text);
  transition: all 0.3s ease;
}

.sidebar {
  position: fixed;
  top: 0;
  left: -300px;
  width: 300px;
  height: 100vh;
  background: var(--primary);
  z-index: 999;
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  padding: 80px 20px 20px;
  overflow-y: auto;
}

.sidebar.active {
  left: 0;
}

.sidebar-link {
  display: block;
  color: var(--text);
  padding: 12px 15px;
  margin-bottom: 10px;
  border-radius: 5px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.sidebar-link:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(5px);
}

.hero {
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(63, 94, 251, 0.1) 0%, transparent 70%);
  animation: rotate 30s linear infinite;
  z-index: -1;
}

@keyframes rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.hero-title {
  font-size: 3rem;
  margin-bottom: 20px;
  background: linear-gradient(90deg, var(--text), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: fadeIn 1s ease;
}

.hero-subtitle {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 40px;
  opacity: 0;
  animation: fadeIn 1s ease 0.5s forwards;
}

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

.notice {
  background: rgba(255, 255, 255, 0.1);
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 40px;
  border-left: 4px solid var(--accent);
  font-size: 0.9rem;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 145, 77, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(255, 145, 77, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 145, 77, 0); }
}

article {
  background: var(--light-bg);
  border-radius: 15px;
  padding: 40px;
  margin-bottom: 60px;
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(10px);
}

article h2 {
  font-size: 2rem;
  margin-bottom: 25px;
  color: var(--accent);
  position: relative;
  padding-bottom: 10px;
}

article h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--secondary);
}

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

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

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

pre {
  background: rgba(0, 0, 0, 0.3);
  padding: 15px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 20px 0;
  border-left: 4px solid var(--secondary);
}

pre code {
  background: transparent;
  padding: 0;
  border-radius: 0;
}

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

.img-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.img-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.img-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.button {
  display: inline-block;
  background: var(--secondary);
  color: white;
  padding: 12px 25px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(63, 94, 251, 0.3);
}

.button:hover {
  background: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 145, 77, 0.4);
}

.footer {
  text-align: center;
  padding: 30px 0;
  margin-top: 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 992px) {
  .nav-menu {
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }
  
  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    background: var(--primary);
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    transition: all 0.5s ease;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .hero-title {
    font-size: 2.2rem;
  }
  
  article {
    padding: 30px 20px;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 1.8rem;
  }
  
  article h2 {
    font-size: 1.5rem;
  }
  
  article h3 {
    font-size: 1.3rem;
  }
}

