/* CSS Document */
@charset "utf-8";

/* ============================================
   BASE
   ============================================ */
* {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
}

img {
  display: block;
  max-width: 100%;
}

ul, li {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  text-decoration: none;
}

a:visited {
  color: inherit;
}

html {
  scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  line-height: 1.2;
  font-weight: 600;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ============================================
   UTILITY CLYASSES
   ============================================ */
.max-w-7xl { max-width: 80rem; margin-left: auto; margin-right: auto; }
.max-w-3xl { max-width: 48rem; margin-left: auto; margin-right: auto; }

.flex { display: flex; }
.hidden { display: none; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.flex-col { flex-direction: column; }
.flex-1 { flex: 1 1 0%; }
.space-x-2 > * + * { margin-left: 0.5rem; }
.space-x-3 > * + * { margin-left: 0.75rem; }
.space-x-4 > * + * { margin-left: 1rem; }
.space-x-8 > * + * { margin-left: 2rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }

.grid { display: grid; }

.p-2 { padding: 0.5rem; }
.p-6 { padding: 1.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.ml-1 { margin-left: 0.25rem; }
.ml-2 { margin-left: 0.5rem; }
.mr-2 { margin-right: 0.5rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.tracking-tight { letter-spacing: -0.025em; }
.leading-relaxed { line-height: 1.625; }
.text-center { text-align: center; }

.text-gray-300 { color: #d1d5db; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }
.text-gray-900 { color: #111827; }
.text-blue-600 { color: #2563eb; }
.text-blue-700 { color: #1d4ed8; }
.text-white { color: #ffffff; }

.bg-white { background-color: #ffffff; }
.bg-gray-50 { background-color: #f9fafb; }
.bg-gray-100 { background-color: #f3f4f6; }
.bg-gray-200 { background-color: #e5e7eb; }
.bg-gray-800 { background-color: #1f2937; }
.bg-gray-900 { background-color: #111827; }
.bg-blue-50 { background-color: #eff6ff; }
.bg-blue-100 { background-color: #dbeafe; }
.bg-blue-600 { background-color: #2563eb; }
.bg-blue-700 { background-color: #1d4ed8; }
.bg-purple-100 { background-color: #f3e8ff; }
.bg-emerald-100 { background-color: #d1fae5; }
.bg-orange-100 { background-color: #ffedd5; }
.bg-slate-100 { background-color: #f1f5f9; }

.border-gray-200 { border-color: #e5e7eb; }
.border-gray-300 { border-color: #d1d5db; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-y { border-top-width: 1px; border-top-style: solid; border-bottom-width: 1px; border-bottom-style: solid; }

.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

.relative { position: relative; }
.absolute { position: absolute; }
.sticky { position: sticky; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.bottom-4 { bottom: 1rem; }
.left-4 { left: 1rem; }
.z-50 { z-index: 50; }

.backdrop-blur-md {
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
}
.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }
.opacity-50 { opacity: 0.5; }
.min-w-0 { min-width: 0px; }

.transition { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-colors { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 300ms; }
.duration-300 { transition-duration: 300ms; }

.shadow-lg {
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.object-cover { object-fit: cover; }

.w-2 { width: 0.5rem; }
.w-3 { width: 0.75rem; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-8 { width: 2rem; }
.w-12 { width: 3rem; }
.w-20 { width: 5rem; }
.w-full { width: 100%; }
.h-2 { height: 0.5rem; }
.h-3 { height: 0.75rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-8 { height: 2rem; }
.h-12 { height: 3rem; }
.h-16 { height: 4rem; }
.h-20 { height: 5rem; }
.h-48 { height: 12rem; }
.h-full { height: 100%; }

.cursor-pointer { cursor: pointer; }

/* ============================================
   HERO
   ============================================ */
.hero-pattern {
  background-image: radial-gradient(circle at 1px 1px, rgba(59, 130, 246, 0.15) 1px, transparent 0);
  background-size: 40px 40px;
}

.gradient-text {
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   NAV
   ============================================ */
nav.sticky {
  background-color: rgba(255, 255, 255, 0.8);
}

.dark nav.sticky {
  background-color: rgba(17, 24, 39, 0.8);
}

.navbar-nav {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.navbar-nav li a {
  color: #374151;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}

.dark .navbar-nav li a {
  color: #d1d5db;
}

.navbar-nav li a:hover,
.navbar-nav li.active a {
  color: #2563eb;
}

.dark .navbar-nav li a:hover,
.dark .navbar-nav li.active a {
  color: #60a5fa;
}

/* ============================================
   BLOG CARDS
   ============================================ */
.blog-items {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 2rem;
}

@media (min-width: 768px) {
  .blog-items.columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .blog-items.columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .blog-items.columns-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.blog-item,
.com-content-article {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  overflow: hidden;
  margin-bottom: 2rem;
}

.blog-item:hover,
.com-content-article:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.blog-item figure,
.blog-item figure.item-image,
.com-content-article figure,
.com-content-article figure.item-image {
  position: relative;
  overflow: hidden;
  height: 12rem;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 1rem 1rem 0 0;
}

.blog-item figure a,
.blog-item figure.item-image a,
.com-content-article figure a,
.com-content-article figure.item-image a {
  display: block;
  width: 100%;
  height: 100%;
}

.blog-item figure img,
.blog-item figure.item-image img,
.com-content-article figure img,
.com-content-article figure.item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.blog-item:hover figure img,
.blog-item:hover figure.item-image img,
.com-content-article:hover figure img,
.com-content-article:hover figure.item-image img {
  transform: scale(1.05);
}

.blog-item figure::after,
.blog-item figure.item-image::after,
.com-content-article figure::after,
.com-content-article figure.item-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.4) 100%);
  z-index: 1;
  border-radius: 1rem 1rem 0 0;
}

.blog-item .item-content,
.com-content-article .item-content {
  padding: 1.5rem;
}

.blog-item .item-title,
.com-content-article .item-title,
.com-content-article .page-header h1 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.75rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.blog-item .item-title a,
.blog-item .item-title a:visited,
.blog-item .item-title a:active,
.com-content-article .item-title a,
.com-content-article .item-title a:visited,
.com-content-article .item-title a:active {
  color: #111827;
}

.blog-item .item-title a:hover,
.com-content-article .item-title a:hover {
  color: #2563eb;
}

.dark .blog-item .item-title a,
.dark .blog-item .item-title a:visited,
.dark .blog-item .item-title a:active,
.dark .com-content-article .item-title a,
.dark .com-content-article .item-title a:visited,
.dark .com-content-article .item-title a:active {
  color: #f9fafb;
}

.dark .blog-item .item-title a:hover,
.dark .com-content-article .item-title a:hover {
  color: #60a5fa;
}

.blog-item .article-info,
.com-content-article .article-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 0.75rem;
}

.blog-item .readmore,
.com-content-article .readmore {
  margin-top: 1rem;
}

.blog-item .readmore a,
.blog-item .readmore a:visited,
.blog-item .readmore a:active,
.com-content-article .readmore a,
.com-content-article .readmore a:visited,
.com-content-article .readmore a:active {
  color: #2563eb;
  font-weight: 500;
  font-size: 0.875rem;
}

.blog-item .readmore a:hover,
.com-content-article .readmore a:hover {
  text-decoration: underline;
}

.dark .blog-item .readmore a,
.dark .blog-item .readmore a:visited,
.dark .blog-item .readmore a:active,
.dark .com-content-article .readmore a,
.dark .com-content-article .readmore a:visited,
.dark .com-content-article .readmore a:active {
  color: #60a5fa;
}

.dark .blog-item .readmore a:hover,
.dark .com-content-article .readmore a:hover {
  color: #93c5fd;
}

/* Single article page */
.com-content-article.item-page {
  padding: 2rem;
  background: #ffffff;
  border-radius: 1rem;
  border: 1px solid #e5e7eb;
}

.com-content-article.item-page .page-header h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #111827;
}

.com-content-article.item-page .com-content-article__body {
  line-height: 1.75;
}

.com-content-article.item-page .com-content-article__body p {
  margin-bottom: 1rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #333;
  background: transparent;
}

/* ============================================
   CATEGORY BADGES
   ============================================ */
.tag-ai {
  background-color: rgba(147, 51, 234, 0.7);
  color: #ffffff;
  backdrop-filter: blur(4px);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.tag-arduino {
  background-color: rgba(234, 88, 12, 0.7);
  color: #ffffff;
  backdrop-filter: blur(4px);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.tag-python {
  background-color: rgba(37, 99, 235, 0.7);
  color: #ffffff;
  backdrop-filter: blur(4px);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.tag-electronics {
  background-color: rgba(16, 185, 129, 0.7);
  color: #ffffff;
  backdrop-filter: blur(4px);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

/* ============================================
   SERVICE CARDS (mod_articles_category)
   ============================================ */
.services,
.no-card.services {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.services h3,
.no-card.services h3 {
  text-align: center;
  font-size: 1.875rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 3rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.dark .services h3,
.dark .no-card.services h3 {
  color: #f9fafb;
}

.mod-articles-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

@media (min-width: 768px) {
  .mod-articles-grid.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mod-articles-grid.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mod-articles-grid.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.mod-articles-item {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.mod-articles-item:hover {
  border-color: #3b82f6;
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.mod-articles-item-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mod-articles-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.mod-articles-title a,
.mod-articles-title a:visited,
.mod-articles-title a:active {
  color: #111827;
  text-decoration: none;
}

.mod-articles-title a:hover {
  color: #2563eb;
}

.dark .mod-articles-title a,
.dark .mod-articles-title a:visited,
.dark .mod-articles-title a:active {
  color: #f9fafb;
}

.dark .mod-articles-title a:hover {
  color: #60a5fa;
}

.mod-articles-item-content p,
.mod-articles-item-content .mod-articles-introtext {
  color: #6b7280;
  font-size: 0.875rem;
  line-height: 1.625;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: transparent;
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
  display: flex;
  justify-content: flex-end;
  gap: 0.25rem;
}

.pagination a {
  color: #374151;
  padding: 0.5rem 1rem;
  text-decoration: none;
  border-radius: 0.375rem;
  transition: all 0.2s;
}

.pagination a:hover:not(.active) {
  background-color: #f3f4f6;
}

.pagination a.active {
  background-color: #2563eb;
  color: white;
}

.pagination__wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
}

.counter {
  padding-left: 2rem;
  font-size: 0.875rem;
  color: #6b7280;
}

/* ============================================
   CONTACT FORM
   ============================================ */
.contact-form {
  max-width: 500px;
  margin: 0 auto;
  padding: 1.25rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  background: #ffffff;
}

.contact-form legend {
  font-size: 1.2em;
  font-weight: bold;
  margin-bottom: 0.75rem;
  color: #111827;
}

.contact-form label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 0.625rem;
  margin-bottom: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  box-sizing: border-box;
  font-family: inherit;
}

.contact-form button {
  padding: 0.625rem 1.25rem;
  background-color: #2563eb;
  color: #fff;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  font-weight: 500;
}

.contact-form button:hover {
  background-color: #1d4ed8;
}

.contact-form .star {
  color: #ef4444;
}

.contact-form .control-group {
  margin-bottom: 1rem;
}

.com-contact h3 {
  display: none;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ============================================
   DARK MODE
   ============================================ */
.dark .bg-white { background-color: #111827; }
.dark .bg-gray-50 { background-color: #030712; }
.dark .bg-gray-100 { background-color: #1f2937; }
.dark .bg-gray-200 { background-color: #374151; }
.dark .bg-blue-50 { background-color: rgba(30, 58, 138, 0.3); }
.dark .bg-blue-100 { background-color: rgba(30, 58, 138, 0.3); }
.dark .bg-purple-100 { background-color: rgba(88, 28, 135, 0.3); }
.dark .bg-emerald-100 { background-color: rgba(6, 78, 59, 0.3); }
.dark .bg-orange-100 { background-color: rgba(124, 45, 18, 0.3); }
.dark .bg-slate-100 { background-color: rgba(15, 23, 42, 0.8); }

.dark .text-gray-300 { color: #d1d5db; }
.dark .text-gray-500 { color: #9ca3af; }
.dark .text-gray-600 { color: #9ca3af; }
.dark .text-gray-700 { color: #d1d5db; }
.dark .text-gray-900 { color: #f9fafb; }
.dark .text-blue-600 { color: #60a5fa; }
.dark .text-blue-700 { color: #93c5fd; }
.dark .text-white { color: #f9fafb; }

.dark .border-gray-200 { border-color: #374151; }
.dark .border-gray-300 { border-color: #4b5563; }

.dark .blog-item,
.dark .com-content-article {
  background-color: #1f2937;
  border-color: #374151;
}

.dark .blog-item .item-title,
.dark .com-content-article .item-title,
.dark .com-content-article .page-header h1 {
  color: #f9fafb;
}

.dark .service-card,
.dark .mod-articles-item {
  background-color: #1f2937;
  border-color: #374151;
}

.dark .mod-articles-title a {
  color: #f9fafb;
}

.dark .hero-pattern {
  background-image: radial-gradient(circle at 1px 1px, rgba(96, 165, 250, 0.1) 1px, transparent 0);
}

.dark .com-content-article.item-page {
  background: #1f2937;
  border-color: #374151;
}

.dark .com-content-article.item-page .page-header h1 {
  color: #f9fafb;
}

.dark .com-content-article.item-page .com-content-article__body p {
  color: #d1d5db;
  background: transparent;
}

.dark .pagination a {
  color: #d1d5db;
}

.dark .pagination a:hover:not(.active) {
  background-color: #374151;
}

.dark .contact-form {
  background: #1f2937;
  border-color: #374151;
}

.dark .contact-form legend {
  color: #f9fafb;
}

.dark .contact-form input[type="text"],
.dark .contact-form input[type="email"],
.dark .contact-form textarea {
  background: #111827;
  border-color: #4b5563;
  color: #f9fafb;
}


/* Dark mode links - readable colors */
.dark a {
  color: #60a5fa;
}

.dark a:hover {
  color: #93c5fd;
}

/* Visited links in dark mode - same as unvisited */
.dark a:visited {
  color: inherit;
}

.dark a:visited:hover {
  color: inherit;
}

/* Homepage specific - no visited color changes */
.dark .blog-item a:visited,
.dark .mod-articles-item a:visited,
.dark .hero a:visited,
.dark .services a:visited {
  color: inherit;
}

/* Article page navigation (prev/next) */
.dark .pagenavigation a {
  color: #60a5fa;
}

.dark .pagenavigation a:visited {
  color: #60a5fa;
}

/* Read more links */
.dark .readmore a {
  color: #60a5fa;
}

.dark .readmore a:visited {
  color: #60a5fa;
}

/* ============================================
   NAV MOBILE
   ============================================ */
.line {
  width: 24px;
  height: 2px;
  background: #374151;
  margin: 5px 0;
  transition: all 0.3s ease;
}

.dark .line {
  background: #d1d5db;
}

nav .hamburger {
  position: relative;
  cursor: pointer;
  z-index: 2;
  display: none;
  padding: 0.5rem;
  border-radius: 0.5rem;
  transition: background-color 0.2s ease;
}

nav .hamburger:hover {
  background-color: #f3f4f6;
}

.dark nav .hamburger:hover {
  background-color: #374151;
}

@media screen and (max-width: 768px) {
  nav .hamburger {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 4rem;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    height: auto;
    max-height: 0;
    width: 100%;
    flex-direction: column;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    pointer-events: none;
    padding: 0 1rem;
    margin: 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  }

  .dark .nav-links {
    background: rgba(17, 24, 39, 0.98);
  }

  .nav-links.open {
    max-height: 400px;
    padding: 1rem;
    pointer-events: all;
  }

  .nav-links li {
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    padding: 0.75rem 0;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid #f3f4f6;
  }

  .dark .nav-links li {
    border-bottom-color: #374151;
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .nav-links li a {
    font-size: 1.125rem;
    display: block;
    width: 100%;
  }

  .nav-links.open li {
    opacity: 1;
    transform: translateY(0);
  }

  .nav-links.open li:nth-child(1) { transition-delay: 0.1s; }
  .nav-links.open li:nth-child(2) { transition-delay: 0.2s; }
  .nav-links.open li:nth-child(3) { transition-delay: 0.3s; }
  .nav-links.open li:nth-child(4) { transition-delay: 0.4s; }
  .nav-links.open li:nth-child(5) { transition-delay: 0.5s; }
}

.hamburger.active .line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active .line:nth-child(2) {
  opacity: 0;
}

.hamburger.active .line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (min-width: 640px) {
  .sm\:flex { display: flex; }
  .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
  .sm\:flex-row { flex-direction: row; }
}

@media (min-width: 768px) {
  .md\:flex { display: flex; }
  .md\:hidden { display: none; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:flex-row { flex-direction: row; }
  .md\:col-span-2 { grid-column: span 2 / span 2; }
  .md\:px-8 { padding-left: 2rem; padding-right: 2rem; }
  .md\:text-6xl { font-size: 3.75rem; line-height: 1; }
}

@media (min-width: 1024px) {
  .lg\:w-1\/5 { width: 20%; }
  .lg\:w-1\/6 { width: 16.666667%; }
  .lg\:w-5\/6 { width: 83.333333%; }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
}
