
:root {
  --primary: #0d47a1;
  --secondary: #651fff;
  --accent: #1e88e5;
  --glass: rgba(255, 255, 255, 0.1);
  --text: #e0e0e0;
  --bg: #121212;
}

body {
  font-family: 'Roboto', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

header {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  padding: 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('https://images.gptkong.com/demo/sample1.png') center/cover;
  opacity: 0.2;
  z-index: 0;
}

h1 {
  font-size: 2.5rem;
  margin: 0;
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.notice {
  background: var(--glass);
  backdrop-filter: blur(10px);
  padding: 1rem;
  border-radius: 8px;
  max-width: 800px;
  margin: 2rem auto;
  text-align: center;
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
}

nav {
  display: flex;
  justify-content: center;
  background: rgba(0,0,0,0.3);
  padding: 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

nav a {
  color: var(--text);
  text-decoration: none;
  margin: 0 1rem;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: all 0.3s ease;
}

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

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

article {
  background: var(--glass);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 2rem;
  margin-bottom: 3rem;
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
}

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

h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

h3 {
  color: #bb86fc;
  font-size: 1.4rem;
  margin-top: 1.5rem;
}

p {
  margin-bottom: 1.5rem;
}

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

.gallery img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
}

.gallery img:hover {
  transform: scale(1.03);
}

pre {
  background: rgba(0,0,0,0.5);
  border-radius: 8px;
  padding: 1rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  position: relative;
}

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

pre::before {
  content: "CSS";
  position: absolute;
  top: 0;
  right: 0;
  background: var(--secondary);
  color: white;
  padding: 0.2rem 0.5rem;
  border-radius: 0 8px 0 4px;
  font-size: 0.8rem;
}

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

.card {
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

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

footer {
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, var(--primary), #000);
  margin-top: 3rem;
}

@media (max-width: 768px) {
  .gallery, .grid-example {
    grid-template-columns: 1fr;
  }
  
  nav {
    flex-wrap: wrap;
  }
  
  nav a {
    margin: 0.5rem;
  }
}

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

.floating {
  animation: float 3s ease-in-out infinite;
}

