:root {
  --primary-color: #4CAF50;
  --secondary-color: #2196F3;
  --accent-color: #FF9800;
  --text-color: #333;
  --light-bg: #f8f9fa;
  --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background: var(--light-bg);
  color: var(--text-color);
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 2rem auto;
  background: #ffffff;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

header {
  text-align: center;
  padding: 2rem 0;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 10px;
  color: white;
  margin-bottom: 2rem;
}

h1 {
  font-size: 2.5rem;
  margin: 0;
  font-weight: 700;
}

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

.project {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  text-align: center;
}

.project:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.project h3 {
  font-size: 1.5rem;
  color: var(--text-color);
  margin-bottom: 1rem;
}

.project p {
  color: #666;
  margin-bottom: 1.5rem;
}

.project a {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: var(--transition);
  font-weight: 500;
}

.project a:hover {
  background: #45a049;
  transform: scale(1.05);
}

.installation-steps {
  background: white;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: var(--card-shadow);
  margin: 1.5rem 0;
}

.installation-steps h2 {
  text-align: center;
  color: var(--text-color);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  font-weight: 600;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.step {
  background: var(--light-bg);
  padding: 1rem;
  border-radius: 8px;
  transition: var(--transition);
  border-left: 3px solid var(--primary-color);
}

.step:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.step h3 {
  font-size: 1.1rem;
  color: var(--text-color);
  margin: 0 0 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.step p {
  margin: 0;
  color: #666;
  font-size: 0.9rem;
}

.gallery {
  text-align: center;
  margin: 3rem 0;
}

.gallery h2 {
  font-size: 2rem;
  color: #333;
  margin-bottom: 1rem;
}

.gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  max-width: 800px;
  margin: auto;
}

.gallery-item {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  transition: transform 0.3s ease;
}

.gallery-item img:hover {
  transform: scale(1.05);
}

.lightbox {
  display: none;
  position: fixed;
  z-index: 10;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.lightbox-content {
  max-width: 80%;
  max-height: 80%;
  border-radius: 10px;
}

.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  color: white;
  background: rgba(0, 0, 0, 0.5);
  padding: 10px;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
}

.prev { left: 10px; }
.next { right: 10px; }

.prev:hover, .next:hover {
  background: rgba(0, 0, 0, 0.8);
}

.update-log {
  background: white;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: var(--card-shadow);
  margin: 1.5rem 0;
}

.update-log h2 {
  text-align: center;
  color: var(--text-color);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  font-weight: 600;
}

.log-item {
  background: var(--light-bg);
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  border-left: 3px solid var(--secondary-color);
}

.log-item:last-child {
  margin-bottom: 0;
}

.log-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.log-title {
  font-weight: 600;
  color: var(--text-color);
}

.log-date {
  color: #666;
  font-size: 0.9rem;
}

.log-content {
  color: #666;
  font-size: 0.9rem;
}

.log-content ul {
  margin: 0.5rem 0;
  padding-left: 1.5rem;
}

.log-content li {
  margin-bottom: 0.3rem;
}

.status-badge {
  display: inline-block;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-right: 0.5rem;
}

.status-badge.success { background: #d4edda; color: #155724; }
.status-badge.new { background: #cce5ff; color: #004085; }
.status-badge.fixed { background: #fff3cd; color: #856404; }

img {
  max-width: 100%;
  height: auto;
}

.update-status {
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 8px;
  text-align: center;
  font-weight: 500;
  background: var(--light-bg);
  border-left: 4px solid var(--primary-color);
}

.update-status.success { background: #d4edda; color: #155724; border-left-color: #28a745; }
.update-status.error { background: #f8d7da; color: #721c24; border-left-color: #dc3545; }
.update-status.info { background: #cce5ff; color: #004085; border-left-color: #007bff; }

.status-content { display: flex; align-items: center; justify-content: center; gap: 0.5rem; }
.status-icon { font-size: 1.2rem; }
.download-icon { margin-right: 0.5rem; }
.download-text { font-weight: 500; }

@media screen and (max-width: 768px) {
  .container { width: 95%; padding: 1rem; }
  h1 { font-size: 2rem; }
  .projects { grid-template-columns: 1fr; }
}

@media screen and (max-width: 480px) {
  body { font-size: 14px; }
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.8rem; }
  h3 { font-size: 1.2rem; }
  .project a { padding: 0.5rem 1rem; font-size: 0.8rem; }
}

.dynamic-rating-area {
  position: relative;
  margin: 2rem 0;
  padding: 0.4rem 2rem;
  border-radius: 15px;
  background: linear-gradient(145deg, #2c3e50, #4a627a);
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0,0,0,0.2), inset 0 0 15px rgba(0,0,0,0.3);
  color: #fff;
}

.rating-content {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.rating-content h2 {
  font-size: 1.75rem;
  font-weight: 600;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.rating-content .stars {
  font-size: 2.5rem;
  color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
}

.rating-content .star {
  transition: all 0.2s ease-in-out;
  padding: 0 0.3rem;
  text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

.rating-content .stars:not(.rated) .star:hover,
.rating-content .star.hovered {
  color: #FFD700;
  transform: scale(1.15);
  text-shadow: 0 0 10px #FFD700, 0 0 20px #FFD700;
}

.rating-content .stars:not(.rated) .star:hover ~ .star {
  color: rgba(255, 255, 255, 0.3);
  transform: scale(1);
  text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

.rating-content .stars.rated { cursor: default; }
.rating-content .stars.rated .star { pointer-events: none; }
.rating-content .stars.rated .star.selected {
  color: #FFC107;
  transform: scale(1);
  text-shadow: none;
}

#average-rating {
  margin: 0;
  font-weight: 400;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(0,0,0,0.2);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
}

.stars-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.star-particle {
  position: absolute;
  background-color: #fff;
  border-radius: 50%;
  box-shadow: 0 0 6px #fff, 0 0 10px #f0e68c;
  animation: drift-up linear infinite;
}

@keyframes drift-up {
  from { transform: translateY(0); opacity: 1; }
  to { transform: translateY(-250px); opacity: 0; }
}

#change-rating-btn {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  margin-top: 0.5rem;
}

#change-rating-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: #fff;
}

.hidden { display: none !important; }

.modal {
  display: none;
  position: fixed;
  z-index: 20;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
  animation: fadeIn 0.3s;
}

.modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 25px 35px;
  border: 1px solid #888;
  width: 80%;
  max-width: 500px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  text-align: center;
  position: relative;
  animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
  from { transform: translateY(-50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.close-button {
  color: #aaa;
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close-button:hover, .close-button:focus { color: black; }
.modal-content h3 { color: #d9534f; font-size: 1.8rem; margin-bottom: 0.5rem; }
.modal-content p { color: #666; margin-bottom: 1.5rem; }
.modal-content textarea { width: 100%; padding: 10px; height: 100px; border-radius: 8px; border: 1px solid #ccc; font-family: 'Poppins', sans-serif; margin-bottom: 1.5rem; resize: vertical; }

#submit-feedback-button {
  background: var(--primary-color);
  color: white;
  padding: 12px 25px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  transition: background-color 0.3s, transform 0.2s;
}

#submit-feedback-button:hover { background: #45a049; transform: scale(1.05); }

.modal-content.success-modal h3 { color: var(--primary-color); }
.success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--primary-color);
  color: #fff;
  font-size: 50px;
  line-height: 80px;
  margin: 0 auto 1rem auto;
  animation: pop-in 0.4s ease-out;
}

@keyframes pop-in {
  from { transform: scale(0.5); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}