/* About Hash Page Styles */
:root {
  --primary-purple: #6366f1;
  --accent-cyan: #06b6d4;
  --accent-purple: #8b5cf6;
  --success-green: #10b981;
  --warning-orange: #f59e0b;
  --error-red: #ef4444;
  --dark-bg: #0f0f23;
  --card-bg: rgba(255, 255, 255, 0.05);
  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --border-color: rgba(255, 255, 255, 0.1);
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.2);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  background: var(--dark-bg);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Binary Background */
.binary-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.03;
  pointer-events: none;
}

.binary-stream {
  position: absolute;
  font-family: "Space Mono", monospace;
  font-size: 14px;
  color: var(--accent-cyan);
  white-space: nowrap;
  animation: binary-flow 20s linear infinite;
}

@keyframes binary-flow {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100vw);
  }
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  background: rgba(15, 15, 35, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo img {
  transition: transform 0.3s ease;
}

.logo img:hover {
  transform: scale(1.05);
}

.brand-text h1 a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 700;
  transition: color 0.3s ease;
}

.brand-text h1 a:hover {
  color: var(--accent-cyan);
}

.brand-text p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

.page-title {
  text-align: right;
}

.page-title h2 {
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-title p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 5px;
}

/* Main Content */
main {
  padding: 40px 0 60px;
}

/* Introduction Section */
.intro-section {
  margin-bottom: 60px;
}

.intro-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.intro-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.intro-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 30px;
}

.intro-icon svg {
  width: 40px;
  height: 40px;
  color: white;
}

.intro-card h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.intro-card p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0 auto;
}

/* FAQ Section */
.faq-section {
  margin-bottom: 60px;
}

.faq-section + .faq-section {
  margin-top: 80px;
  border-top: 1px solid var(--border-color);
  padding-top: 60px;
}

.faq-section h2 {
  font-size: 2.5rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 50px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.faq-grid {
  display: grid;
  gap: 20px;
}

.faq-item {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 10px 30px rgba(6, 182, 212, 0.2);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.02);
}

.faq-question:hover {
  background: rgba(255, 255, 255, 0.05);
}

.faq-question h4 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  flex: 1;
}

.faq-icon {
  width: 24px;
  height: 24px;
  color: var(--accent-cyan);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.02);
}

.faq-item.active .faq-answer {
  max-height: 1000px;
  padding: 0 30px 30px;
}

.faq-answer p {
  color: var(--text-secondary);
  margin-bottom: 15px;
  line-height: 1.7;
}

.faq-answer ul {
  list-style: none;
  padding-left: 0;
}

.faq-answer li {
  color: var(--text-secondary);
  margin-bottom: 10px;
  padding-left: 20px;
  position: relative;
  line-height: 1.6;
}

.faq-answer li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent-cyan);
  font-weight: bold;
}

.faq-answer strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Certificate Comparison */
.certificate-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}

.cert-type {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 20px;
  border-left: 4px solid var(--accent-cyan);
}

.cert-type:last-child {
  border-left-color: var(--accent-purple);
}

.cert-type h5 {
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 15px;
}

/* Authority Grid */
.authority-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}

.authority-card {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 20px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.authority-card:first-child {
  border-color: var(--accent-cyan);
}

.authority-card:last-child {
  border-color: var(--accent-purple);
}

.authority-card h5 {
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 15px;
}

/* Resources Section */
.resources-section {
  margin-bottom: 60px;
}

.resources-section h2 {
  font-size: 2.5rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 40px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.resource-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  transition: all 0.3s ease;
}

.resource-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-cyan);
  box-shadow: 0 15px 35px rgba(6, 182, 212, 0.2);
}

.resource-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  display: block;
}

.resource-card h4 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.resource-card ul {
  list-style: none;
  text-align: left;
}

.resource-card li {
  color: var(--text-secondary);
  margin-bottom: 8px;
  padding-left: 20px;
  position: relative;
  line-height: 1.5;
}

.resource-card li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent-cyan);
  font-weight: bold;
}

/* Contact Section */
.contact-section {
  margin-bottom: 60px;
}

.contact-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
  padding: 15px 30px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-primary {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-primary:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* Footer */
footer {
  background: rgba(15, 15, 35, 0.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-color);
  padding: 30px 0;
  text-align: center;
  margin-top: auto;
}

footer p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .page-title {
    text-align: center;
  }

  .page-title h2 {
    font-size: 1.5rem;
  }

  .intro-card {
    padding: 30px 20px;
  }

  .intro-card h3 {
    font-size: 1.5rem;
  }

  .faq-section h2,
  .resources-section h2 {
    font-size: 2rem;
  }

  .faq-question {
    padding: 20px;
  }

  .faq-item.active .faq-answer {
    padding: 0 20px 25px;
  }

  .certificate-comparison,
  .authority-grid {
    grid-template-columns: 1fr;
  }

  .resources-grid {
    grid-template-columns: 1fr;
  }


  .contact-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .intro-card h3 {
    font-size: 1.3rem;
  }

  .intro-card p {
    font-size: 1rem;
  }

  .faq-question h4 {
    font-size: 1.1rem;
  }

  .cert-type,
  .authority-card {
    padding: 15px;
  }

  .resource-card {
    padding: 25px 20px;
  }
}

/* Print Styles */
@media print {
  .binary-bg {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  .intro-card,
  .faq-item,
  .resource-card {
    border: 1px solid #ccc;
    page-break-inside: avoid;
  }

}

/* Code Block Styles */
.code-block {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px;
  margin: 15px 0;
}

.code-block h4 {
  color: var(--accent-cyan);
  margin-bottom: 10px;
  font-size: 1rem;
  font-weight: 600;
}

.code-block pre {
  background: rgba(0, 0, 0, 0.6);
  border-radius: 6px;
  padding: 15px;
  overflow-x: auto;
  margin: 0;
}

.code-block code {
  font-family: "Space Mono", "Courier New", monospace;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #e2e8f0;
}

/* Comparison Table Styles */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 15px 0;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  overflow: hidden;
}

.comparison-table th {
  background: var(--primary-purple);
  color: white;
  padding: 12px 15px;
  text-align: left;
  font-weight: 600;
  font-size: 0.95rem;
}

.comparison-table td {
  padding: 12px 15px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: top;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

.comparison-table tr:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* Enhanced FAQ Styles for Code Content */
.faq-answer ol {
  margin: 15px 0;
  padding-left: 20px;
}

.faq-answer ol li {
  margin: 8px 0;
  color: var(--text-secondary);
}

.faq-answer ol li strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Responsive Code Blocks */
@media (max-width: 768px) {
  .code-block {
    padding: 15px;
    margin: 10px 0;
  }

  .code-block pre {
    padding: 10px;
    font-size: 0.8rem;
  }

  .comparison-table {
    font-size: 0.85rem;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 8px 10px;
  }
}

@media (max-width: 480px) {
  .code-block code {
    font-size: 0.8rem;
  }

  .comparison-table {
    font-size: 0.8rem;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 6px 8px;
  }
}
