
/* UI Style 5 - Layout C */
* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

h2 {
  color: #2c3e50;
  border-bottom: 2px solid #667eea;
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

a {
  transition: color 0.3s;
}

a:hover {
  color: #667eea;
}

@media (hover: hover) {
  div[style*="transition"] {
    cursor: pointer;
  }
  div[style*="transition"]:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  }
}

@media (max-width: 768px) {
  main {
    padding: 0 0.5rem !important;
  }
  h1 {
    font-size: 1.5rem !important;
  }
  section {
    padding: 1rem !important;
  }
}

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #667eea;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
  transition: all 0.3s;
}

.back-to-top:hover {
  background: #764ba2;
  transform: translateY(-5px);
}

.back-to-top.show {
  display: flex;
}
