/* Vintage Tech Theme Styles */
:root {
  --primary-green: #00FF00;
  --amber: #FFA500;
  --teal: #008080;
  --dark-bg: #000000;
  --dark-gray: #1a1a1a;
  --medium-gray: #333333;
  --light-gray: #666666;
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Courier New', monospace;
  background-color: var(--dark-bg);
  color: var(--primary-green);
  line-height: 1.6;
  overflow-x: hidden;
}

/* CRT Screen effect */
.crt-screen {
  position: relative;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(0, 255, 0, 0.03) 50%,
    transparent 100%);
  animation: scanlines 0.1s linear infinite;
}

@keyframes scanlines {
  0% { background-position: 0 0; }
  100% { background-position: 100% 0; }
}

/* Header styles */
.header {
  background: var(--dark-gray);
  border-bottom: 2px solid var(--primary-green);
  padding: 1rem 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 2rem;
  font-weight: bold;
  color: var(--primary-green);
  text-shadow: 0 0 10px var(--primary-green);
  letter-spacing: 2px;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--amber);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border: 1px solid transparent;
  transition: all 0.3s ease;
  font-weight: bold;
}

.nav-links a:hover {
  border-color: var(--primary-green);
  box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
  text-shadow: 0 0 5px var(--amber);
}

/* Main content */
.main-content {
  margin-top: 80px;
  min-height: calc(100vh - 160px);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* Hero section */
.hero {
  text-align: center;
  padding: 4rem 0;
  background: radial-gradient(circle at center, rgba(0, 255, 0, 0.1) 0%, transparent 70%);
  border-radius: 10px;
  margin-bottom: 3rem;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--primary-green), var(--amber), var(--teal));
  border-radius: 12px;
  z-index: -1;
  opacity: 0.3;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  text-shadow: 0 0 20px var(--primary-green);
  letter-spacing: 3px;
}

.hero p {
  font-size: 1.3rem;
  color: var(--amber);
  max-width: 600px;
  margin: 0 auto;
  text-shadow: 0 0 10px var(--amber);
}

/* Tool grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.tool-card {
  background: var(--medium-gray);
  border: 2px solid var(--primary-green);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 0, 0.1), transparent);
  transition: left 0.5s;
}

.tool-card:hover::before {
  left: 100%;
}

.tool-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 255, 0, 0.3);
  border-color: var(--amber);
}

.tool-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--primary-green);
  text-shadow: 0 0 15px var(--primary-green);
}

.tool-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--amber);
}

.tool-card p {
  color: var(--light-gray);
  margin-bottom: 1.5rem;
}

.tool-link {
  display: inline-block;
  color: var(--primary-green);
  text-decoration: none;
  padding: 0.5rem 1.5rem;
  border: 1px solid var(--primary-green);
  border-radius: 4px;
  transition: all 0.3s ease;
  font-weight: bold;
}

.tool-link:hover {
  background: var(--primary-green);
  color: var(--dark-bg);
  box-shadow: 0 0 15px rgba(0, 255, 0, 0.5);
}

/* Tool page styles */
.tool-container {
  max-width: 1200px;
  margin: 0 auto;
  background: var(--medium-gray);
  border: 2px solid var(--primary-green);
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 0 30px rgba(0, 255, 0, 0.2);
}

.tool-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--primary-green);
}

.tool-header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: var(--amber);
  text-shadow: 0 0 15px var(--amber);
}

.tool-header p {
  color: var(--light-gray);
  font-size: 1.1rem;
}

.tool-content {
  margin: 2rem 0;
}

.input-group {
  margin-bottom: 2rem;
}

.input-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--primary-green);
  font-weight: bold;
}

.input-group textarea,
.input-group input[type="text"],
.input-group select {
  width: 100%;
  padding: 1rem;
  background: var(--dark-gray);
  border: 1px solid var(--primary-green);
  border-radius: 4px;
  color: var(--primary-green);
  font-family: 'Courier New', monospace;
  font-size: 1rem;
  resize: vertical;
}

.input-group textarea:focus,
.input-group input[type="text"]:focus,
.input-group select:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 10px rgba(255, 165, 0, 0.3);
}

.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: transparent;
  border: 2px solid var(--primary-green);
  color: var(--primary-green);
  text-decoration: none;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'Courier New', monospace;
  font-weight: bold;
  transition: all 0.3s ease;
  margin-right: 1rem;
}

.btn:hover {
  background: var(--primary-green);
  color: var(--dark-bg);
  box-shadow: 0 0 15px rgba(0, 255, 0, 0.5);
}

.btn-secondary {
  border-color: var(--amber);
  color: var(--amber);
}

.btn-secondary:hover {
  background: var(--amber);
  color: var(--dark-bg);
  box-shadow: 0 0 15px rgba(255, 165, 0, 0.5);
}

.output-area {
  background: var(--dark-bg);
  border: 1px solid var(--primary-green);
  border-radius: 4px;
  padding: 1rem;
  margin-top: 1rem;
  min-height: 200px;
  white-space: pre-wrap;
  font-family: 'Courier New', monospace;
  color: var(--primary-green);
  overflow-x: auto;
}

/* Footer */
.footer {
  background: var(--dark-gray);
  border-top: 2px solid var(--primary-green);
  padding: 2rem 0;
  margin-top: 4rem;
  text-align: center;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 1rem;
}

.footer-links a {
  color: var(--amber);
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary-green);
  text-shadow: 0 0 10px var(--primary-green);
}

.contact-info {
  color: var(--light-gray);
  font-size: 0.9rem;
}

/* Responsive design */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .tools-grid {
    grid-template-columns: 1fr;
  }

  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }
}

/* Page specific styles */
.page-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem 0;
}

.page-header h1 {
  font-size: 3rem;
  color: var(--amber);
  text-shadow: 0 0 20px var(--amber);
  margin-bottom: 1rem;
}

.page-header p {
  color: var(--light-gray);
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
}

.page-content {
  max-width: 1200px;
  margin: 0 auto;
  background: var(--medium-gray);
  border: 2px solid var(--primary-green);
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 0 30px rgba(0, 255, 0, 0.2);
}

.page-content h2 {
  color: var(--primary-green);
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--primary-green);
  padding-bottom: 0.5rem;
}

.page-content h3 {
  color: var(--amber);
  margin: 2rem 0 1rem 0;
}

.page-content p {
  margin-bottom: 1rem;
  color: var(--light-gray);
  line-height: 1.8;
}

.page-content ul {
  margin: 1rem 0;
  padding-left: 2rem;
}

.page-content li {
  margin-bottom: 0.5rem;
  color: var(--light-gray);
}

/* Hero stats */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 2rem;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--amber);
  text-shadow: 0 0 15px var(--amber);
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--light-gray);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Features section */
.features-section {
  padding: 4rem 0;
  background: radial-gradient(circle at center, rgba(0, 255, 0, 0.05) 0%, transparent 70%);
}

.section-title {
  font-size: 2.5rem;
  color: var(--primary-green);
  text-align: center;
  margin-bottom: 3rem;
  text-shadow: 0 0 20px var(--primary-green);
  letter-spacing: 2px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--medium-gray);
  border: 2px solid var(--primary-green);
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 255, 0, 0.3);
  border-color: var(--amber);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--primary-green);
  text-shadow: 0 0 15px var(--primary-green);
}

.feature-card h3 {
  color: var(--amber);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.feature-card p {
  color: var(--light-gray);
  line-height: 1.6;
}

/* Guide section */
.guide-section {
  padding: 4rem 0;
  background: var(--dark-gray);
}

.guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.guide-step {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.step-number {
  background: var(--primary-green);
  color: var(--dark-bg);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  flex-shrink: 0;
  box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
}

.step-content h3 {
  color: var(--amber);
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.step-content p {
  color: var(--light-gray);
  line-height: 1.6;
}

/* History section */
.history-section {
  padding: 4rem 0;
  background: linear-gradient(135deg, rgba(0, 255, 0, 0.02) 0%, rgba(255, 165, 0, 0.02) 100%);
}

.history-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.history-text {
  color: var(--light-gray);
  line-height: 1.8;
}

.history-text p {
  margin-bottom: 1.5rem;
}

.history-timeline {
  position: relative;
}

.history-timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--primary-green);
  box-shadow: 0 0 10px var(--primary-green);
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
  padding-left: 60px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 8px;
  width: 20px;
  height: 20px;
  background: var(--primary-green);
  border-radius: 50%;
  box-shadow: 0 0 15px var(--primary-green);
}

.timeline-year {
  color: var(--amber);
  font-weight: bold;
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
  text-shadow: 0 0 10px var(--amber);
}

.timeline-event {
  color: var(--primary-green);
  font-size: 1rem;
}

/* Community section */
.community-section {
  padding: 4rem 0;
  background: var(--dark-gray);
}

.community-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: center;
}

.community-text {
  color: var(--light-gray);
  line-height: 1.8;
}

.community-text p {
  margin-bottom: 1.5rem;
}

.community-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.community-feature {
  background: var(--medium-gray);
  border: 1px solid var(--primary-green);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.community-feature:hover {
  border-color: var(--amber);
  box-shadow: 0 0 20px rgba(0, 255, 0, 0.2);
}

.community-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--primary-green);
  text-shadow: 0 0 10px var(--primary-green);
}

.community-feature h3 {
  color: var(--amber);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.community-feature p {
  color: var(--light-gray);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* FAQ section */
.faq-section {
  padding: 4rem 0;
  background: radial-gradient(circle at center, rgba(255, 165, 0, 0.03) 0%, transparent 70%);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.faq-item {
  background: var(--medium-gray);
  border: 1px solid var(--primary-green);
  border-radius: 8px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: var(--amber);
  box-shadow: 0 0 20px rgba(0, 255, 0, 0.2);
}

.faq-item h3 {
  color: var(--amber);
  margin-bottom: 1rem;
  font-size: 1.1rem;
  line-height: 1.4;
}

.faq-item p {
  color: var(--light-gray);
  line-height: 1.6;
  margin: 0;
}

/* Featured tools section */
.featured-section {
  padding: 4rem 0;
  background: linear-gradient(135deg, rgba(0, 255, 0, 0.02) 0%, rgba(0, 128, 128, 0.02) 100%);
}

.featured-tools {
  display: grid;
  gap: 2rem;
}

.featured-tool {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  background: var(--medium-gray);
  border: 2px solid var(--primary-green);
  border-radius: 12px;
  padding: 2rem;
  align-items: center;
  transition: all 0.3s ease;
}

.featured-tool:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0, 255, 0, 0.3);
  border-color: var(--amber);
}

.featured-icon {
  font-size: 4rem;
  color: var(--primary-green);
  text-shadow: 0 0 20px var(--primary-green);
  background: var(--dark-gray);
  border: 2px solid var(--primary-green);
  border-radius: 12px;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.featured-content h3 {
  color: var(--amber);
  margin-bottom: 1rem;
  font-size: 1.5rem;
  text-shadow: 0 0 10px var(--amber);
}

.featured-content p {
  color: var(--light-gray);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.featured-link {
  color: var(--primary-green);
  text-decoration: none;
  font-weight: bold;
  border: 1px solid var(--primary-green);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: all 0.3s ease;
  display: inline-block;
}

.featured-link:hover {
  background: var(--primary-green);
  color: var(--dark-bg);
  box-shadow: 0 0 15px rgba(0, 255, 0, 0.5);
}

/* Enhanced tools section */
#tools {
  padding: 4rem 0;
  background: var(--dark-bg);
}

#tools .section-title {
  margin-bottom: 1rem;
}

.tools-intro {
  text-align: center;
  color: var(--light-gray);
  margin-bottom: 3rem;
  font-size: 1.1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* Call to action section */
.cta-section {
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--amber) 50%, var(--teal) 100%);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(0,0,0,0.1)"/><circle cx="80" cy="40" r="1" fill="rgba(0,0,0,0.1)"/><circle cx="40" cy="80" r="1.5" fill="rgba(0,0,0,0.1)"/></svg>');
  opacity: 0.1;
}

.cta-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta-content h2 {
  color: var(--dark-bg);
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.cta-content p {
  color: var(--dark-bg);
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.cta-primary, .cta-secondary {
  padding: 1rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.cta-primary {
  background: var(--dark-bg);
  color: var(--primary-green);
  border: 2px solid var(--primary-green);
}

.cta-primary:hover {
  background: var(--primary-green);
  color: var(--dark-bg);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 255, 0, 0.4);
}

.cta-secondary {
  background: transparent;
  color: var(--dark-bg);
  border: 2px solid var(--dark-bg);
}

.cta-secondary:hover {
  background: var(--dark-bg);
  color: var(--primary-green);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.cta-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
}

.cta-stat {
  text-align: center;
}

.cta-number {
  display: block;
  font-size: 2rem;
  font-weight: bold;
  color: var(--dark-bg);
  margin-bottom: 0.5rem;
}

.cta-label {
  color: var(--dark-bg);
  opacity: 0.8;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Mobile menu for all pages */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.5rem;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--primary-green);
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* Responsive design - Large tablets and small desktops */
@media (max-width: 1024px) {
  .container {
    padding: 1rem;
  }

  .hero h1 {
    font-size: 2.8rem;
  }

  .featured-tool {
    grid-template-columns: 80px 1fr;
    gap: 1.5rem;
  }

  .history-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .community-content {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

/* Responsive design - Tablets */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--dark-gray);
    flex-direction: column;
    padding: 1rem 0;
    border-top: 1px solid var(--primary-green);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  }

  .nav-links.active {
    display: flex;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .container {
    padding: 1rem;
  }

  .hero {
    padding: 3rem 0;
  }

  .hero h1 {
    font-size: 2.2rem;
    letter-spacing: 1px;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .features-section,
  .guide-section,
  .history-section,
  .community-section,
  .faq-section,
  #tools,
  .cta-section {
    padding: 3rem 0;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .feature-card {
    padding: 1.5rem;
  }

  .guide-steps {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .guide-step {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .step-number {
    align-self: center;
  }

  .history-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .history-timeline::before {
    left: 15px;
  }

  .timeline-item {
    padding-left: 50px;
  }

  .timeline-item::before {
    left: 6px;
  }

  .community-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .community-features {
    grid-template-columns: 1fr;
  }

  .featured-tool {
    grid-template-columns: 1fr;
    gap: 1rem;
    text-align: center;
    padding: 1.5rem;
  }

  .featured-icon {
    justify-self: center;
    width: 60px;
    height: 60px;
    font-size: 3rem;
  }

  .featured-content h3 {
    font-size: 1.3rem;
  }

  .featured-content p {
    font-size: 0.95rem;
  }

  .faq-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .faq-item {
    padding: 1.5rem;
  }

  .tools-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
  }

  .tool-card {
    padding: 1.5rem;
  }

  .tool-card h3 {
    font-size: 1.3rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .cta-stats {
    flex-direction: column;
    gap: 1.5rem;
  }

  .cta-content h2 {
    font-size: 2rem;
  }

  .cta-content p {
    font-size: 1.1rem;
  }

  /* Page specific mobile styles */
  .page-header {
    padding: 2rem 0;
  }

  .page-header h1 {
    font-size: 2.2rem;
  }

  .page-content {
    padding: 1.5rem;
  }

  .tool-container {
    padding: 1.5rem;
  }

  .tool-header h1 {
    font-size: 2rem;
  }
}

/* Responsive design - Small tablets and large phones */
@media (max-width: 640px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .tools-grid {
    grid-template-columns: 1fr;
  }

  .featured-tool {
    padding: 1.2rem;
  }

  .tool-card {
    padding: 1.2rem;
  }

  .tool-card h3 {
    font-size: 1.2rem;
  }

  .tool-card p {
    font-size: 0.9rem;
  }

  /* Footer mobile */
  .footer-links {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .contact-info {
    text-align: center;
    margin-top: 1rem;
  }

  /* Tool pages mobile */
  .tool-header {
    margin-bottom: 1.5rem;
  }

  .tool-header h1 {
    font-size: 1.8rem;
  }

  .tool-content {
    margin: 1.5rem 0;
  }

  .input-group {
    margin-bottom: 1.5rem;
  }

  .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .btn-secondary {
    margin-left: 0;
  }
}

/* Responsive design - Phones */
@media (max-width: 480px) {
  .container {
    padding: 0.5rem;
  }

  .logo {
    font-size: 1.5rem;
  }

  .hero {
    padding: 2rem 0;
  }

  .hero h1 {
    font-size: 1.8rem;
    letter-spacing: 0.5px;
  }

  .hero p {
    font-size: 0.95rem;
  }

  .hero-stats {
    gap: 1rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .stat-label {
    font-size: 0.8rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .features-section,
  .guide-section,
  .history-section,
  .community-section,
  .faq-section,
  #tools,
  .cta-section {
    padding: 2rem 0;
  }

  .feature-card {
    padding: 1.2rem;
  }

  .feature-icon {
    font-size: 2.5rem;
  }

  .feature-card h3 {
    font-size: 1.2rem;
  }

  .step-number {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }

  .timeline-year {
    font-size: 1.1rem;
  }

  .timeline-event {
    font-size: 0.9rem;
  }

  .community-feature {
    padding: 1.2rem;
  }

  .community-icon {
    font-size: 1.8rem;
  }

  .community-feature h3 {
    font-size: 1rem;
  }

  .faq-item {
    padding: 1.2rem;
  }

  .faq-item h3 {
    font-size: 1rem;
  }

  .tool-card {
    padding: 1rem;
  }

  .tool-icon {
    font-size: 2.5rem;
  }

  .tool-card h3 {
    font-size: 1.1rem;
  }

  .tool-card p {
    font-size: 0.85rem;
  }

  .cta-content h2 {
    font-size: 1.8rem;
  }

  .cta-content p {
    font-size: 1rem;
  }

  .cta-number {
    font-size: 1.8rem;
  }

  .cta-label {
    font-size: 0.8rem;
  }

  /* Page content mobile */
  .page-header {
    padding: 1.5rem 0;
  }

  .page-header h1 {
    font-size: 1.8rem;
  }

  .page-header p {
    font-size: 1rem;
  }

  .page-content {
    padding: 1.2rem;
  }

  .page-content h2 {
    font-size: 1.3rem;
  }

  .page-content h3 {
    font-size: 1.1rem;
  }

  .page-content p {
    font-size: 0.95rem;
  }

  /* Tool container mobile */
  .tool-container {
    padding: 1.2rem;
    margin: 0.5rem;
  }

  .tool-header h1 {
    font-size: 1.6rem;
  }

  .tool-header p {
    font-size: 0.95rem;
  }

  .tool-content {
    margin: 1.2rem 0;
  }

  .input-group label {
    font-size: 0.95rem;
  }

  .input-group textarea,
  .input-group input,
  .input-group select {
    font-size: 0.95rem;
  }

  .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
  }

  .output-area {
    font-size: 0.85rem;
    padding: 0.8rem;
  }
}

/* Responsive design - Small phones */
@media (max-width: 360px) {
  .container {
    padding: 0.25rem;
  }

  .hero h1 {
    font-size: 1.6rem;
  }

  .hero p {
    font-size: 0.9rem;
  }

  .section-title {
    font-size: 1.4rem;
  }

  .logo {
    font-size: 1.3rem;
  }

  .tool-container {
    padding: 1rem;
    margin: 0.25rem;
  }

  .tool-header h1 {
    font-size: 1.5rem;
  }

  .page-header h1 {
    font-size: 1.6rem;
  }

  .page-content {
    padding: 1rem;
  }
}

/* Pixel Art Editor specific styles */
.pixel-controls-container {
  width: 100%;
}

.controls-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 120px;
}

.control-group label {
  color: var(--primary-green);
  font-size: 0.9rem;
  font-weight: bold;
}

.control-group select,
.control-group input[type="color"] {
  padding: 0.5rem;
  border: 1px solid var(--primary-green);
  background: var(--dark-gray);
  color: var(--primary-green);
  border-radius: 4px;
  font-family: 'Courier New', monospace;
}

.control-group input[type="color"] {
  width: 60px;
  height: 40px;
  padding: 2px;
  cursor: pointer;
}

.canvas-palette-container {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.palette-section {
  flex-shrink: 0;
  min-width: 200px;
}

.color-palette-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 2px;
  max-width: 200px;
}

.palette-color {
  width: 30px;
  height: 30px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.palette-color:hover {
  border-color: var(--amber) !important;
  transform: scale(1.1);
}

/* Touch device optimizations for pixel art editor */
@media (hover: none) and (pointer: coarse) {
  .palette-color {
    width: 35px;
    height: 35px;
  }

  .palette-color:active {
    transform: scale(0.95);
  }

  #pixel-canvas {
    touch-action: none;
  }
}

.canvas-section {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

#pixel-canvas {
  max-width: 100%;
  aspect-ratio: 1;
  cursor: crosshair;
}

/* Tool page specific mobile optimizations */
@media (max-width: 768px) {
  /* Pixel Art Editor mobile layout */
  .pixel-controls-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .controls-row {
    flex-direction: column;
    gap: 0.75rem;
  }

  .control-group {
    width: 100%;
    min-width: unset;
  }

  .control-group select,
  .control-group input[type="color"] {
    width: 100%;
    font-size: 0.95rem;
  }

  .canvas-palette-container {
    flex-direction: column;
    gap: 1rem;
  }

  .palette-section {
    min-width: unset;
    width: 100%;
  }

  .color-palette-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 3px;
    max-width: none;
    justify-items: center;
  }

  .color-palette-grid > div {
    width: 35px !important;
    height: 35px !important;
  }

  .canvas-section {
    width: 100%;
  }

  #pixel-canvas {
    width: 100%;
    max-width: 300px;
    aspect-ratio: 1;
  }

  /* Calculator mobile layout */
  .calculator-grid {
    grid-template-columns: repeat(4, 1fr) !important;
  }

  /* Password generator mobile layout */
  #password-generator .grid.md\\:grid-cols-2 {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  /* Text encoder mobile layout */
  #text-encoder .grid.md\\:grid-cols-2 {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  /* Retro clock mobile layout */
  #retro-clock .grid.md\\:grid-cols-2 {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  /* Terminal emulator mobile layout */
  #terminal-emulator #terminal-output {
    font-size: 12px;
    height: 300px;
  }

  /* Typewriter mobile layout */
  #typewriter-simulator textarea {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  /* Extra small screens */
  .color-palette-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 4px;
  }

  .color-palette-grid > div {
    width: 30px !important;
    height: 30px !important;
  }

  #pixel-canvas {
    max-width: 280px;
  }

  .control-group select,
  .control-group input[type="color"] {
    font-size: 0.9rem;
    padding: 0.4rem;
  }

  .control-group label {
    font-size: 0.85rem;
  }

  .calculator-grid button {
    padding: 1rem 0.5rem;
    font-size: 1.1rem;
  }
}

/* Touch-friendly interactions */
@media (hover: none) and (pointer: coarse) {
  .tool-card,
  .feature-card,
  .community-feature,
  .faq-item,
  .featured-tool {
    transition: none;
  }

  .tool-card:hover,
  .feature-card:hover,
  .community-feature:hover,
  .faq-item:hover,
  .featured-tool:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--primary-green);
  }

  .btn:hover,
  .featured-link:hover,
  .cta-primary:hover,
  .cta-secondary:hover {
    transform: none;
    box-shadow: none;
  }

  .cta-primary:hover {
    background: var(--dark-bg);
    color: var(--primary-green);
  }

  .cta-secondary:hover {
    background: transparent;
    color: var(--dark-bg);
  }

  /* Touch-friendly button sizes */
  .btn {
    min-height: 44px;
    min-width: 44px;
  }

  /* Larger touch targets for mobile */
  input[type="color"],
  select,
  input[type="range"],
  input[type="text"],
  textarea {
    min-height: 44px;
  }

  /* Better spacing for touch interfaces */
  .input-group {
    margin-bottom: 1.5rem;
  }
}

/* Utility classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 2rem; }
