
:root {
  --primary: #1E3A8A;
  --secondary: #4B0082;
  --accent: #FF00FF;
  --bg: #F5F5DC;
  --text: #333;
  --light: #fff;
  --dark: #1a1a1a;
  --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

body {
  font-family: 'Raleway', sans-serif;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  background-image: radial-gradient(circle at 10% 20%, rgba(245, 245, 220, 0.8) 0%, rgba(245, 245, 220, 0.9) 90%);
  padding: 0;
  overflow-x: hidden;
}

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

.header {
  position: relative;
  padding: 2rem 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  margin-bottom: 3rem;
  clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
}

.header::after {
  content: '';
  position: absolute;
  bottom: -50px;
  left: 0;
  width: 100%;
  height: 50px;
  background: linear-gradient(to bottom right, transparent 49%, var(--bg) 50%);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

.nav-logo {
  font-family: 'Pacifico', cursive;
  font-size: 1.8rem;
  color: var(--light);
  text-decoration: none;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.nav-menu {
  display: flex;
  gap: 2rem;
}

.nav-item {
  color: var(--light);
  text-decoration: none;
  font-weight: 600;
  position: relative;
  padding: 0.5rem 0;
  transition: var(--transition);
}

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

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

.nav-item:hover {
  color: var(--accent);
  text-shadow: 0 0 10px rgba(255, 0, 255, 0.5);
}

.hero {
  text-align: center;
  padding: 4rem 0;
  color: var(--light);
}

.hero h1 {
  font-family: 'Pacifico', cursive;
  font-size: 3.5rem;
  margin-bottom: 1rem;
  text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  animation: glow 2s infinite alternate;
}

@keyframes glow {
  from {
    text-shadow: 0 0 10px var(--light), 0 0 20px var(--light), 0 0 30px var(--accent);
  }
  to {
    text-shadow: 0 0 20px var(--light), 0 0 30px var(--accent), 0 0 40px var(--accent);
  }
}

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

.notice {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  padding: 1rem;
  border-radius: 10px;
  margin: 2rem auto;
  max-width: 800px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.notice p {
  color: var(--light);
  font-weight: 600;
}

article {
  background: var(--light);
  border-radius: 15px;
  padding: 3rem;
  margin: 3rem 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

article::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary), var(--accent));
}

article h2 {
  font-family: 'Pacifico', cursive;
  color: var(--primary);
  margin-bottom: 1.5rem;
  font-size: 2rem;
  position: relative;
  padding-bottom: 0.5rem;
}

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

article p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.8;
}

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

.image-card {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
  position: relative;
}

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

.image-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
  transition: var(--transition);
}

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

.image-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.7) 100%);
  z-index: 1;
}

pre {
  background: #2d2d2d;
  color: #f8f8f2;
  padding: 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 2rem 0;
  font-size: 0.9rem;
  line-height: 1.5;
  position: relative;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

pre::before {
  content: 'CSS';
  position: absolute;
  top: 0;
  right: 0;
  background: var(--primary);
  color: white;
  padding: 0.2rem 0.8rem;
  font-size: 0.8rem;
  border-bottom-left-radius: 8px;
}

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

.footer {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--light);
  padding: 3rem 0;
  text-align: center;
  margin-top: 3rem;
  clip-path: polygon(0 10%, 100% 0, 100% 100%, 0 100%);
}

.footer p {
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1.5rem;
}

.footer-link {
  color: var(--light);
  text-decoration: none;
  transition: var(--transition);
}

.footer-link:hover {
  color: var(--accent);
  text-shadow: 0 0 10px rgba(255, 0, 255, 0.5);
}

@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    gap: 1rem;
  }
  
  .nav-menu {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  article {
    padding: 2rem;
  }
  
  .image-grid {
    grid-template-columns: 1fr;
  }
}

/* Retro toggle switch */
.toggle {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
  margin: 1rem 0;
}

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

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

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

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

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

/* Retro button */
.btn-retro {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.btn-retro:hover {
  background: var(--secondary);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.btn-retro:active {
  transform: translateY(1px);
}

.btn-retro::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent 50%, rgba(255,255,255,0.2) 50%);
  background-size: 400% 400%;
  transition: 0.5s;
}

.btn-retro:hover::after {
  background-position: 100% 100%;
}

/* Breadcrumb */
.breadcrumb {
  padding: 1rem 0;
  font-size: 0.9rem;
}

.breadcrumb a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

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

.breadcrumb a::after {
  content: ' ❯ ';
  color: var(--secondary);
  padding: 0 0.5rem;
}

.breadcrumb a:last-child::after {
  content: '';
}

/* Dashboard */
.dashboard {
  width: 100%;
  height: 400px;
  background: white;
  border-radius: 15px;
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.dashboard::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(to right, var(--primary), var(--accent));
}

.dashboard h3 {
  color: var(--primary);
  margin-bottom: 1.5rem;
  font-family: 'Pacifico', cursive;
}

/* Theme switcher */
.theme-switcher {
  display: flex;
  gap: 1rem;
  margin: 1rem 0;
  align-items: center;
}

.theme-option {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.theme-option:hover {
  transform: scale(1.1);
}

.theme-option.active {
  border-color: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.theme-default {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.theme-80s {
  background: linear-gradient(135deg, #FF00FF 0%, #00FFFF 100%);
}

.theme-steampunk {
  background: linear-gradient(135deg, #8B4513 0%, #DAA520 100%);
}

/* Accordion */
.accordion {
  margin: 2rem 0;
}

.accordion-item {
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.accordion-header {
  padding: 1rem;
  background: #f9f9f9;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.accordion-header:hover {
  background: #f0f0f0;
}

.accordion-content {
  padding: 0 1rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.accordion-item.active .accordion-content {
  max-height: 500px;
  padding: 1rem;
}

.accordion-icon {
  transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

