
:root {
  --primary: #6B73FF;
  --secondary: #000DFF;
  --accent: #FF6B6B;
  --text: #f8f9fa;
  --bg-dark: #121212;
  --card-bg: rgba(255, 255, 255, 0.1);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', sans-serif;
  color: var(--text);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  background-size: 400% 400%;
  animation: gradientAnimation 15s ease infinite;
  line-height: 1.6;
  min-height: 100%;
}

@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;
}

.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(107, 115, 255, 0.2);
  backdrop-filter: blur(10px);
  padding: 15px 0;
  z-index: 1000;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 20px;
}

.nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

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

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

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

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 600px;
  z-index: 2;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.hero-image {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 50%;
  max-width: 600px;
  z-index: 1;
  opacity: 0.8;
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  transition: var(--transition);
}

.hero-image img:hover {
  transform: scale(1.02);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
}

.notice {
  background: rgba(255, 255, 255, 0.2);
  padding: 15px;
  border-radius: 10px;
  margin: 30px 0;
  text-align: center;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.content-section {
  padding: 100px 0;
  position: relative;
}

.content-section:nth-child(even) {
  background: rgba(0, 0, 0, 0.1);
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 50px;
  text-align: center;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: var(--accent);
  border-radius: 3px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.card {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 16px 64px 0 rgba(31, 38, 135, 0.37);
}

.card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--accent);
}

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 20px;
  transition: var(--transition);
}

.card:hover .card-image {
  transform: scale(1.03);
}

.article {
  max-width: 800px;
  margin: 0 auto;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

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

.article h3 {
  font-size: 1.5rem;
  margin: 30px 0 15px;
  color: #e0e0e0;
}

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

pre {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  padding: 20px;
  overflow-x: auto;
  margin: 20px 0;
  border-left: 3px solid var(--accent);
}

code {
  font-family: 'Courier New', monospace;
  color: #f8f9fa;
}

.footer {
  background: rgba(0, 0, 0, 0.3);
  padding: 50px 0;
  text-align: center;
  margin-top: 100px;
}

.footer p {
  margin: 0;
}

@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 120px;
  }
  
  .hero-content {
    max-width: 100%;
  }
  
  .hero-image {
    position: relative;
    width: 100%;
    margin-top: 50px;
    transform: none;
  }
  
  .nav {
    display: none;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .card-grid {
    grid-template-columns: 1fr;
  }
  
  .article {
    padding: 20px;
  }
}

.parallax {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  height: 300px;
  margin: 50px 0;
  border-radius: 15px;
  position: relative;
  overflow: hidden;
}

.parallax::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.7));
}

.parallax-content {
  position: relative;
  z-index: 2;
  color: white;
  padding: 50px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.loader {
  display: inline-block;
  width: 50px;
  height: 50px;
  border: 5px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--accent);
  animation: spin 1s ease-in-out infinite;
  margin: 20px auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.toggle-container {
  display: flex;
  align-items: center;
  margin: 20px 0;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
  margin-right: 10px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 34px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .toggle-slider {
  background-color: var(--accent);
}

input:checked + .toggle-slider:before {
  transform: translateX(26px);
}

.dark-mode {
  background: var(--bg-dark);
  color: #e0e0e0;
}

.dark-mode .card {
  background: rgba(0, 0, 0, 0.5);
}

.dark-mode .article {
  background: rgba(0, 0, 0, 0.5);
}

.dark-mode pre {
  background: rgba(0, 0, 0, 0.5);
}

