/* Base Styles */
:root {
  --primary-bg: #050019;
  --secondary-bg: #121217;
  --accent-color: #3b82f6;
  --text-primary: #e0e0e0;
  --text-secondary: #b0b0b0;
  --card-bg: #1e1e20;
  --border-color: #2d2d30;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: var(--primary-bg);
  color: var(--text-primary);
  line-height: 1.6;
}

/* Navigation */
.navbar {
  background-color: var(--secondary-bg);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2rem;
}

.nav-brand img {
  height: 30px;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-color);
}

.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.mobile-drawer {
  position: fixed;
  top: 60px;
  right: -100%;
  width: 260px;
  height: calc(100vh - 60px);
  background: #121212;
  padding: 1.5rem 1rem;
  overflow-y: auto;
  transition: right 0.3s ease;
  z-index: 999;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.7);
  scrollbar-width: thin;
  scrollbar-color: #333 #111;
}

.mobile-drawer.open {
  right: 0;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.drawer-header h3 {
  color: #00ffe0;
  font-size: 1.2rem;
  margin: 0;
}

.close-drawer {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

.drawer-section h4 {
  color: #00ffe0;
  margin-bottom: 0.8rem;
  border-bottom: 1px solid #444;
  padding-bottom: 5px;
  font-size: 1.1rem;
}

.drawer-section a {
  display: block;
  color: #eee;
  padding: 0.5rem 0;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.drawer-section a i {
  margin-right: 8px;
}

.drawer-section a:hover {
  color: #00ffe0;
}

.drawer-overlay {
  position: fixed;
  top: 60px;
  left: 0;
  width: 100%;
  height: calc(100vh - 60px);
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 998;
}

.drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #050019 0%, #1a1a3a 100%);
  padding: 5rem 0;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, var(--accent-color), #a0a0ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.tech-stack {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.tech-stack span {
  background-color: rgba(74, 128, 240, 0.1);
  color: var(--accent-color);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  border: 1px solid rgba(74, 128, 240, 0.3);
}

/* Main Content */
.container {
  max-width: 1000px;
  margin: 3rem auto;
  padding: 0 2rem;
}

/* Language Sections */
.language-section {
  background: var(--secondary-bg);
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 3rem;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.1);
}

.language-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.language-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.language-header h2 {
  font-size: 1.8rem;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}

.language-description {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Code Examples */
.code-examples {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.code-block {
  background: var(--card-bg);
  border-radius: 8px;
  padding: 1.5rem;
  position: relative;
  border: 1px solid var(--border-color);
}

.code-block pre {
  margin: 0;
  overflow-x: auto;
  font-family: 'Courier New', monospace;
  font-size: 0.95rem;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.code-block code {
  display: block;
  color: #f8f8f2;
}

.copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--accent-color);
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  transition: background-color 0.3s;
}

.copy-btn:hover {
  background-color: #2563eb;
}

.copy-btn i {
  font-size: 0.9rem;
}

.code-description {
  margin-top: 1rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Footer */
.footer {
  background-color: var(--secondary-bg);
  padding: 3rem 0 0;
  border-top: 1px solid var(--border-color);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2rem;
}

.footer-brand img {
  height: 30px;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--accent-color);
}

.footer-bottom {
  text-align: center;
  padding: 1.5rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .language-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .footer-content {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 0.95rem;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .container {
    padding: 0 1rem;
  }

  .language-section {
    padding: 1.5rem;
  }

  .code-examples {
    grid-template-columns: 1fr;
  }
}
.language-logo {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.language-logo:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6);
}
