
:root {
  --deep-blue: #1A237E;
  --purple: #6A1B9A;
  --neon-blue: #03A9F4;
  --bright-purple: #AB47BC;
  --dark-bg: #121212;
  --light-text: #ffffff;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

body {
  background: linear-gradient(135deg, var(--deep-blue), var(--purple));
  color: var(--light-text);
  font-family: 'Open Sans', sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  min-height: 100%;
}

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

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

.header::after {
  content: "";
  display: block;
  width: 100px;
  height: 4px;
  background: linear-gradient(to right, var(--neon-blue), var(--bright-purple));
  margin: 30px auto;
  border-radius: 2px;
}

h1, h2, h3, h4 {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  margin-top: 0;
}

h1 {
  font-size: 2.5rem;
  background: linear-gradient(to right, var(--neon-blue), var(--bright-purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 20px;
}

h2 {
  font-size: 1.8rem;
  color: var(--neon-blue);
  margin: 50px 0 20px;
  position: relative;
  padding-bottom: 10px;
}

h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--bright-purple);
}

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

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

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

.code-container {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  padding: 20px;
  margin: 30px 0;
  overflow: hidden;
  position: relative;
}

.code-container::before {
  content: "CSS";
  position: absolute;
  top: 0;
  right: 0;
  background: var(--neon-blue);
  color: white;
  padding: 5px 15px;
  border-radius: 0 0 0 8px;
  font-size: 0.8rem;
}

pre {
  margin: 0;
  white-space: pre-wrap;
  font-family: 'Courier New', monospace;
  font-size: 0.95rem;
  line-height: 1.5;
}

code {
  color: #f8f8f2;
}

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(26, 35, 126, 0.9);
  display: flex;
  justify-content: center;
  padding: 15px 0;
  z-index: 1000;
  backdrop-filter: blur(5px);
}

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

.nav-links a {
  color: var(--light-text);
  text-decoration: none;
  font-weight: 600;
  padding: 5px 10px;
  position: relative;
  transition: all 0.3s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--neon-blue);
  transition: width 0.3s ease;
}

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

.nav-links a:hover {
  color: var(--neon-blue);
}

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

.gallery img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

.notice {
  background: rgba(255, 255, 255, 0.1);
  border-left: 4px solid var(--neon-blue);
  padding: 20px;
  margin: 40px 0;
  border-radius: 0 8px 8px 0;
}

.notice p {
  margin: 0;
  font-style: italic;
}

.footer {
  text-align: center;
  padding: 30px 0;
  margin-top: 60px;
  background: rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  .nav-links {
    gap: 15px;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  article {
    padding: 25px;
  }
}

@media (max-width: 480px) {
  .nav-links {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  
  .gallery {
    grid-template-columns: 1fr;
  }
}

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

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

/* Dark mode toggle */
.dark-mode-toggle {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--neon-blue);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  transition: all 0.3s ease;
}

.dark-mode-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

body.dark-mode {
  background: linear-gradient(135deg, var(--dark-bg), #1E1E1E);
}

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

body.dark-mode .navbar {
  background: rgba(26, 35, 126, 0.95);
}

/* Scroll indicator */
.scroll-indicator {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--neon-blue);
  font-size: 2rem;
  animation: bounce 2s infinite;
  cursor: pointer;
  z-index: 1000;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0) translateX(-50%);
  }
  40% {
    transform: translateY(-20px) translateX(-50%);
  }
  60% {
    transform: translateY(-10px) translateX(-50%);
  }
}

