.theme-switcher {
  position: relative;
  margin-right: 15px;
}

#themeSelect {
  padding: 8px 30px 8px 15px;
  border: none;
  border-radius: 20px;
  background: var(--search-bg);
  color: var(--text-color);
  font-size: 14px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: all 0.3s ease;
}

#themeSelect:focus {
  outline: none;
  box-shadow: 0 0 10px rgba(76, 151, 255, 0.3);
}

.theme-switcher::after {
  content: '▼';
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-color);
  pointer-events: none;
  font-size: 10px;
}

.homepage {
  background: linear-gradient(135deg, var(--dark-bg) 0%, var(--timeline-bg) 100%);
  min-height: 100vh;
  color: var(--text-color);
  font-family: 'Helvetica Neue', Arial, sans-serif;
}

.homepage-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

.nav-left {
  display: flex;
  align-items: center;
}

.nav-logo {
  height: 40px;
  transition: transform 0.3s;
}

.nav-logo:hover {
  transform: scale(1.05);
}

.search-container {
  display: flex;
  align-items: center;
  margin-left: 20px;
  position: relative;
}

.search-bar {
  width: 300px;
  padding: 8px 40px 8px 15px;
  border: none;
  border-radius: 20px;
  background: var(--search-bg);
  color: var(--text-color);
  font-size: 14px;
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
}

.search-bar::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.search-bar:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 10px rgba(76, 151, 255, 0.3);
}

.search-button {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
}

.search-button:hover {
  color: white;
}

.nav-right {
  display: flex;
  gap: 1rem;
}

.nav-right button {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, background-color 0.2s;
}

.nav-right button:hover {
  transform: scale(1.05);
}

.create-button {
  background: var(--scratch-orange);
  color: white;
}

.join-button {
  background: var(--scratch-blue);
  color: white;
}

.sign-in-button {
  background: transparent;
  border: 2px solid white !important;
  color: white;
}

.hero-section {
  padding: 8rem 4rem 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, var(--scratch-orange), var(--scratch-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content h2 {
  font-size: 1.8rem;
  color: #CCC;
  margin-bottom: 2rem;
}

.start-creating-button {
  padding: 1rem 2rem;
  font-size: 1.2rem;
  background: linear-gradient(90deg, var(--scratch-orange), var(--scratch-blue));
  color: white;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.start-creating-button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(255, 140, 26, 0.4);
}

.hero-animation {
  display: flex;
  justify-content: center;
  align-items: center;
}

.video-container {
  width: 100%;
  max-width: 560px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  background: rgba(0,0,0,0.2);
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 20px;
}

.hero-cat {
  display: none;
}

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

.feature-card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 20px;
  text-align: center;
  transition: transform 0.3s;
}

.feature-card:hover {
  transform: translateY(-10px);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--scratch-blue);
}

.featured-projects {
  padding: 4rem;
}

.featured-projects h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  background: linear-gradient(90deg, var(--scratch-blue), var(--scratch-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.project-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.3s;
}

.project-card:hover {
  transform: scale(1.03);
}

.project-thumbnail {
  height: 200px;
  overflow: hidden;
  position: relative;
  border-radius: 15px 15px 0 0;
}

.project-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.project-stats {
  display: flex;
  justify-content: space-around;
  padding: 0.5rem;
  color: #CCC;
  font-size: 0.9rem;
}

.project-stats span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.project-card h4 {
  padding: 1rem;
  margin: 0;
  color: white;
}

.project-card p {
  padding: 0 1rem 1rem;
  margin: 0;
  color: #CCC;
}

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

@media (max-width: 768px) {
  .hero-section {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 6rem 2rem 2rem;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content h2 {
    font-size: 1.5rem;
  }

  .video-container {
    max-width: 100%;
    margin: 0 auto;
  }
  
  .search-container {
    margin-left: 10px;
  }
  
  .search-bar {
    width: 200px;
  }
  
  .nav-right button {
    padding: 0.5rem;
    font-size: 14px;
  }
}

.made-with-blocky {
  position: fixed;
  bottom: 20px;
  right: 20px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  z-index: 100;
  padding: 8px 15px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 20px;
  backdrop-filter: blur(5px);
  transition: transform 0.3s ease;
}

.made-with-blocky:hover {
  transform: translateY(-2px);
}

.blocky-text {
  color: var(--scratch-orange);
  font-weight: bold;
  background: linear-gradient(90deg, var(--scratch-orange), var(--scratch-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.timeline-section {
  padding: 6rem 4rem;
  background: linear-gradient(0deg, var(--dark-bg) 0%, var(--timeline-bg) 100%);
  text-align: center;
}

.timeline-section h2 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  background: linear-gradient(90deg, var(--scratch-blue), var(--scratch-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

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

.timeline::before {
  content: '';
  position: absolute;
  width: 4px;
  background: linear-gradient(180deg, var(--scratch-blue) 0%, var(--scratch-orange) 100%);
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
  box-shadow: 0 0 20px rgba(76, 151, 255, 0.3);
}

.timeline-item {
  padding: 2rem 0;
  position: relative;
  width: 50%;
  opacity: 0;
  transform: translateY(50px);
  animation: fadeInUp 0.6s forwards;
  animation-delay: calc(var(--i) * 0.2s);
}

.timeline-item:nth-child(odd) {
  left: 0;
  padding-right: 3rem;
}

.timeline-item:nth-child(even) {
  left: 50%;
  padding-left: 3rem;
}

.timeline-date {
  position: absolute;
  top: 2rem;
  background: linear-gradient(90deg, var(--scratch-blue), var(--scratch-orange));
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: bold;
  box-shadow: 0 0 10px rgba(76, 151, 255, 0.3);
}

.timeline-item:nth-child(odd) .timeline-date {
  right: -6rem;
}

.timeline-item:nth-child(even) .timeline-date {
  left: -6rem;
}

.timeline-content {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 15px;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.timeline-content:hover {
  transform: translateY(-5px);
}

.timeline-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 10px rgba(255,255,255,0.3));
}

.timeline-content h3 {
  color: white;
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

.timeline-content p {
  color: #CCC;
  font-size: 1rem;
  line-height: 1.5;
}

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

@media (max-width: 768px) {
  .hero-section {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 6rem 2rem 2rem;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content h2 {
    font-size: 1.5rem;
  }

  .video-container {
    max-width: 100%;
    margin: 0 auto;
  }
  
  .search-container {
    margin-left: 10px;
  }
  
  .search-bar {
    width: 200px;
  }
  
  .nav-right button {
    padding: 0.5rem;
    font-size: 14px;
  }
  
  .timeline::before {
    left: 2rem;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 4rem !important;
  }
  
  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    left: 0;
  }
  
  .timeline-date {
    left: 0 !important;
    right: auto !important;
    transform: translateX(-50%);
  }
  
  .timeline-section {
    padding: 4rem 2rem;
  }
}

.feedback-section {
  padding: 4rem;
  background: linear-gradient(0deg, var(--dark-bg) 0%, var(--timeline-bg) 100%);
  text-align: center;
}

.feedback-section h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  background: linear-gradient(90deg, var(--scratch-blue), var(--scratch-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.feedback-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.feedback-form {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 15px;
  backdrop-filter: blur(10px);
  text-align: left;
}

.feedback-form h3 {
  color: white;
  margin-bottom: 1rem;
}

.feedback-form select {
  width: 100%;
  padding: 0.8rem;
  margin-bottom: 1rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  color: white;
  font-size: 1rem;
}

.feedback-form textarea {
  width: 100%;
  min-height: 150px;
  padding: 1rem;
  margin-bottom: 1rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  color: white;
  font-size: 1rem;
  resize: vertical;
}

.feedback-attachments {
  margin-bottom: 1rem;
}

.feedback-attachments label {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background: var(--card-bg);
  border-radius: 8px;
  cursor: pointer;
  color: white;
  transition: background 0.3s;
}

.feedback-attachments label:hover {
  background: rgba(255, 255, 255, 0.2);
}

.feedback-attachments input[type="file"] {
  display: none;
}

.submit-feedback {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(90deg, var(--scratch-blue), var(--scratch-orange));
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.3s;
}

.submit-feedback:hover {
  transform: translateY(-2px);
}

.recent-feedback {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 15px;
  backdrop-filter: blur(10px);
  text-align: left;
  max-height: 500px;
  overflow-y: auto;
}

.recent-feedback h3 {
  color: white;
  margin-bottom: 1rem;
}

.feedback-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feedback-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 1rem;
  border-radius: 8px;
  color: white;
}

.feedback-item-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: #888;
}

.feedback-item-type {
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
}

.feedback-item-type.bug {
  background: #ff3355;
  color: white;
}

.feedback-item-type.feature {
  background: #4C97FF;
  color: white;
}

.feedback-item-type.improvement {
  background: #40BF4A;
  color: white;
}

.feedback-item-type.test-update {
  background: #9966FF;
  color: white;
}

.admin-feedback-options {
  display: none;
  margin-bottom: 1rem;
  padding: 1rem;
  background: rgba(255, 0, 0, 0.1);
  border: 1px solid rgba(255, 0, 0, 0.2);
  border-radius: 8px;
}

.admin-feedback-options.visible {
  display: block;
}

#feedbackType option.admin-only {
  display: none;
}

#feedbackType option.admin-only.visible {
  display: block;
}

.admin-notice {
  color: #ff3355;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

@media (max-width: 768px) {
  .feedback-container {
    grid-template-columns: 1fr;
  }
}