* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'Roboto', sans-serif;
  background: linear-gradient(135deg, #0a0a1a 0%, #1a0f1a 100%);
  color: #e0e0e0;
  line-height: 1.6;
  min-height: 100vh;
}

.header {
  text-align: center;
  padding: 2rem 1rem;
  background: rgba(147, 51, 234, 0.05);
  border-bottom: 1px solid rgba(147, 51, 234, 0.2);
  margin-bottom: 2rem;
}

.header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(45deg, #9333ea, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header p {
  color: #999;
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem 2rem;
}

body:has(.nav-grid) .container {
  max-width: 1200px;
}

.info-section {
  background: rgba(30, 20, 30, 0.8);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.info-section h2 {
  color: #9333ea;
  font-size: 1.8rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(147, 51, 234, 0.3);
}

.info-box {
  background: rgba(147, 51, 234, 0.1);
  border: 1px solid rgba(147, 51, 234, 0.3);
  border-radius: 8px;
  padding: 1rem;
  margin: 1rem 0;
}

.info-box h4 {
  color: #a855f7;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.info-box p {
  color: #ccc;
  line-height: 1.6;
}

.highlight {
  background: rgba(168, 85, 247, 0.1);
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
  color: #a855f7;
}

.nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.nav-card {
  background: rgba(30, 20, 30, 0.8);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
  overflow: hidden;
}

.nav-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(147, 51, 234, 0.1), rgba(168, 85, 247, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-card:hover {
  transform: translateY(-5px);
  border-color: rgba(147, 51, 234, 0.4);
  box-shadow: 0 10px 30px rgba(147, 51, 234, 0.2);
}

.nav-card:hover::before {
  opacity: 1;
}

.nav-card-content {
  position: relative;
  z-index: 1;
}

.nav-card h3 {
  color: #9333ea;
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-card p {
  color: #ccc;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.nav-card-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.feature-tag {
  background: rgba(147, 51, 234, 0.2);
  color: #a855f7;
  padding: 0.3rem 0.6rem;
  border-radius: 12px;
  font-size: 0.8rem;
  border: 1px solid rgba(147, 51, 234, 0.3);
}

.footer {
  margin-top: 3rem;
  background: rgba(20, 10, 20, 0.9);
  border-top: 1px solid rgba(147, 51, 234, 0.2);
  backdrop-filter: blur(10px);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-brand h3 {
  color: #9333ea;
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
  background: linear-gradient(45deg, #9333ea, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-brand p { color: #999; font-size: 0.9rem; }

.footer-info { text-align: right; }
.footer-info p { color: #ccc; margin-bottom: 0.5rem; font-size: 0.9rem; }

.footer-links { display: flex; align-items: center; gap: 0.5rem; }
.footer-link {
  color: #9333ea;
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s ease;
}
.footer-link:hover { color: #a855f7; }

.divider { color: #666; font-size: 0.8rem; }

/* Additional styles for index-2.html */
.section {
  background: rgba(30, 20, 30, 0.8);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.section-title {
  color: #9333ea;
  font-size: 1.8rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(147, 51, 234, 0.3);
}

.code-container {
  background: #0d0d0d;
  border-radius: 12px;
  overflow: hidden;
  margin: 1.5rem 0;
  border: 1px solid rgba(147, 51, 234, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.code-header {
  background: #1a1a1a;
  padding: 0.8rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(147, 51, 234, 0.2);
}

.code-dots {
  display: flex;
  gap: 0.5rem;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot.red { background: #ff5f57; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #28ca42; }

.code-header span {
  color: #a855f7;
  font-size: 0.9rem;
  font-weight: 500;
}

.code-block {
  padding: 1.5rem;
  background: #0a0a0a;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.9rem;
  line-height: 1.7;
  overflow-x: auto;
}

.code-block code {
  color: #e0e0e0;
}

.tag {
  color: #9333ea;
}

.attr {
  color: #f59e0b;
}

.string {
  color: #10b981;
}

.comment {
  color: #6b7280;
  font-style: italic;
}

.selector {
  color: #6b7280;
  font-style: italic;
}

.class {
  color: #9333ea;
}

.id {
  color: #f59e0b;
}

.property {
  color: #f59e0b;
}

.value {
  color: #10b981;
}

.explanation {
  background: rgba(20, 15, 25, 0.8);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-left: 4px solid #9333ea;
}

.explanation p {
  color: #ccc;
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.explanation strong {
  color: #a855f7;
}

.explanation code {
  background: rgba(147, 51, 234, 0.15);
  color: #a855f7;
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-family: 'Monaco', 'Menlo', monospace;
  font-size: 0.85rem;
}

/* Table Styles */
.section h3 {
  color: #9333ea;
  font-size: 1.4rem;
  margin: 2rem 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(147, 51, 234, 0.3);
}

.table-container {
  background: rgba(20, 15, 25, 0.8);
  border-radius: 12px;
  overflow: hidden;
  margin: 1.5rem 0;
  border: 1px solid rgba(147, 51, 234, 0.2);
  backdrop-filter: blur(10px);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Inter', 'Roboto', sans-serif;
}

table th {
  background: linear-gradient(45deg, #9333ea, #a855f7);
  color: white;
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.95rem;
  border-bottom: 2px solid rgba(147, 51, 234, 0.3);
}

table th:first-child {
  border-radius: 0;
}

table th:last-child {
  border-radius: 0;
}

table td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid rgba(147, 51, 234, 0.1);
  color: #e0e0e0;
  font-size: 0.9rem;
  line-height: 1.5;
}

table td code {
  background: rgba(147, 51, 234, 0.15);
  color: #a855f7;
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-family: 'Monaco', 'Menlo', monospace;
  font-size: 0.85rem;
}

table tr:hover {
  background: rgba(147, 51, 234, 0.05);
}

table tr:nth-child(even) {
  background: rgba(20, 15, 25, 0.3);
}

table tr:nth-child(even):hover {
  background: rgba(147, 51, 234, 0.08);
}

/* Browser Support Indicators */
table td:last-child {
  font-weight: 500;
}

table td:last-child:contains("✅") {
  color: #10b981;
}

table td:last-child:contains("⚠️") {
  color: #f59e0b;
}

table td:last-child:contains("❌") {
  color: #ef4444;
}

/* Responsive table wrapper */
.table-wrapper {
  overflow-x: auto;
  margin: 1.5rem 0;
  border-radius: 12px;
  border: 1px solid rgba(147, 51, 234, 0.2);
  background: rgba(20, 15, 25, 0.8);
  backdrop-filter: blur(10px);
}

@media screen and (max-width: 768px) {
  .nav-grid { grid-template-columns: 1fr; gap: 1rem; }
  .header h1 { font-size: 2rem; }
  .nav-card { padding: 1.2rem; }
  .container { padding: 0 0.75rem 1.5rem; }
  .info-section { padding: 1.5rem; }
  .section { padding: 1.5rem; }
  .footer-content { flex-direction: column; text-align: center; gap: 1rem; }
  .footer-info { text-align: center; }
  .footer-links { justify-content: center; }
  .code-block { padding: 1rem; font-size: 0.85rem; }
  .explanation { padding: 1.2rem; }
  
  /* Table responsive */
  table th, table td {
    padding: 0.6rem 0.8rem;
    font-size: 0.85rem;
  }
  
  .table-wrapper {
    font-size: 0.9rem;
  }
}

@media screen and (max-width: 480px) {
  .header { padding: 1.5rem 1rem; }
  .header h1 { font-size: 1.8rem; }
  .header p { font-size: 1rem; }
  .nav-card h3 { font-size: 1.2rem; }
  .nav-card p { font-size: 0.9rem; }
  .info-section { padding: 1.2rem; }
  .section { padding: 1.2rem; }
  .info-box { padding: 0.8rem; }
  .footer-content { padding: 1.5rem 1rem; }
  .code-block { font-size: 0.8rem; padding: 0.8rem; }
  .code-header { padding: 0.6rem 1rem; }
  .explanation { padding: 1rem; }
  
  /* Table responsive */
  table th, table td {
    padding: 0.5rem;
    font-size: 0.8rem;
  }
  
  table th {
    font-size: 0.85rem;
  }
}

@media screen and (max-width: 320px) {
  .header h1 { font-size: 1.6rem; }
  .nav-card { padding: 1rem; }
  .feature-tag { font-size: 0.75rem; padding: 0.25rem 0.5rem; }
  .info-section { padding: 1rem; }
  .section { padding: 1rem; }
  .code-block { font-size: 0.75rem; }
  
  /* Table responsive */
  table th, table td {
    padding: 0.4rem;
    font-size: 0.75rem;
  }
  
  .section h3 {
    font-size: 1.2rem;
  }
}
/* Semua Code Dibantu Oleh Ai */