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

* {
  -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; }

html {
  scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  line-height: 1.2;
  font-weight: 600;
}

/* ============================================
   TAILWIND-LIKE UTILITY CLASSES
   ============================================ */

/* Container */
.max-w-7xl { max-width: 80rem; margin-left: auto; margin-right: auto; }
.max-w-3xl { max-width: 48rem; margin-left: auto; margin-right: auto; }
.max-w-4xl { max-width: 56rem; margin-left: auto; margin-right: auto; }
.max-w-sm { max-width: 24rem; }

/* Flexbox */
.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 */
.grid { display: grid; }

/* Spacing */
.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-10 { margin-top: 2.5rem; }
.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-10 { margin-bottom: 2.5rem; }
.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; }

/* Typography */
.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-right { text-align: right; }

/* Colors - Light Mode */
.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-gray-700 { border-color: #374151; }
.border-gray-800 { border-color: #1f2937; }
.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 */
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

/* Positioning */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.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; }

/* Effects */
.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; }

/* Transitions */
.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; }

/* Shadows */
.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 fit */
.object-cover { object-fit: cover; }

/* Width/Height */
.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 */
.cursor-pointer { cursor: pointer; }

/* ============================================
   HERO PATTERN
   ============================================ */
.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
   ============================================ */
.gradient-text {
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   ARTICLE CARDS (for com_content blog layout)
   ============================================ */
.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);
}

/* Article image header with color tint overlay */
.blog-item .item-image,
.com-content-article .item-image {
  position: relative;
  overflow: hidden;
  height: 12rem;
}

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

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

.blog-item .item-image::after,
.com-content-article .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;
}

/* Category badge on image */
.blog-item .item-image .category-badge,
.com-content-article .item-image .category-badge {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  z-index: 2;
}

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

/* Article title */
.blog-item .item-title,
.com-content-article .page-header h1,
.com-content-article .item-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.75rem;
}

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

/* Article info (date, author, etc) */
.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;
}

/* Read more link */
.blog-item .readmore,
.com-content-article .readmore {
  margin-top: 1rem;
}

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

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

/* ============================================
   BLOG GRID LAYOUT
   ============================================ */
.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));
  }
}

/* ============================================
   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 (from mod_articles_category)
   ============================================ */

/* The module wrapper */
.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;
}

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

/* The grid container */
.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));
  }
}

/* Individual service cards */
.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);
}

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

.dark .mod-articles-item:hover {
  border-color: #3b82f6;
}

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

.mod-articles-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0;
}

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

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

.dark .mod-articles-title a {
  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;
}

.dark .mod-articles-item-content p,
.dark .mod-articles-item-content .mod-articles-introtext {
  color: #9ca3af;
}

/* ============================================
   HERO CARDS (from mod_articles_category in hero position)
   ============================================ */

.hero .mod-articles-grid,
.hero .mod-articles-items {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 2rem;
}

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

.hero .mod-articles-item {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero .mod-articles-item: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);
}

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

.hero .mod-articles-item .item-image,
.hero .mod-articles-item .mod-articles-item-image {
  position: relative;
  overflow: hidden;
  height: 12rem;
}

.hero .mod-articles-item .item-image img,
.hero .mod-articles-item .mod-articles-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero .mod-articles-item:hover .item-image img,
.hero .mod-articles-item:hover .mod-articles-item-image img {
  transform: scale(1.05);
}

.hero .mod-articles-item .item-image::after,
.hero .mod-articles-item .mod-articles-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;
}

.hero .mod-articles-item-content {
  padding: 1.5rem;
}

.hero .mod-articles-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.hero .mod-articles-title a {
  color: #111827;
}

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

.hero .mod-articles-item-content p {
  color: #6b7280;
  font-size: 0.875rem;
  line-height: 1.625;
}

.dark .hero .mod-articles-item-content p {
  color: #9ca3af;
}

/* ============================================
   SERVICE CARDS
   ============================================ */
.service-card {
  transition: all 0.3s ease;
  border: 1px solid transparent;
  background-color: #ffffff;
  border-radius: 0.75rem;
  padding: 1.5rem;
}

.service-card:hover {
  border-color: #3b82f6;
  transform: translateY(-2px);
}/* ============================================
   CODE BLOCK
   ============================================ */
.code-block {
  background: #1e1e2e;
  border-radius: 0.5rem;
  padding: 1rem;
  overflow-x: auto;
  font-family: "SF Mono", "Monaco", "Inconsolata", "Fira Code", "Droid Sans Mono", "Source Code Pro", monospace;
  font-size: 0.875rem;
  line-height: 1.7;
  color: #cdd6f4;
}

.code-block pre {
  margin: 0;
  white-space: pre-wrap;
  word-wrap: break-word;
}

/* Code container with copy button */
.code-container {
  position: relative;
  border: 1px solid #ddd;
  border-radius: 0.5rem;
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.code-header {
  background-color: #f7f7f7;
  padding: 0.5rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dark .code-header {
  background-color: #1f2937;
  border-bottom: 1px solid #374151;
}

.code-header .language {
  font-weight: 600;
  font-size: 0.875rem;
}

.code-container pre {
  margin: 0;
  padding: 1rem;
  background-color: #f7f7f7;
  overflow-x: auto;
}

.dark .code-container pre {
  background-color: #111827;
}

.copy-button {
  background: none;
  border: none;
  cursor: pointer;
  color: #007bff;
  font-size: 1rem;
  padding: 0.25rem 0.5rem;
}

.copy-button:hover {
  color: #0056b3;
}

/* ============================================
   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;
}

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

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

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

.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;
}

/* ============================================
   CODE BLOCKS - Fixed for Joomla content
   ============================================ */

/* Inline code */
code {
  font-family: "SF Mono", Monaco, Inconsolata, "Fira Code", "Courier New", monospace;
  font-size: 0.875em;
  background: #f3f4f6;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  color: #374151;
}

.dark code {
  background: #374151;
  color: #e5e7eb;
}

/* Preformatted blocks */
pre {
  font-family: "SF Mono", Monaco, Inconsolata, "Fira Code", "Courier New", monospace;
  font-size: 0.875rem;
  line-height: 1.6;
  background: #1e1e2e;
  color: #cdd6f4;
  padding: 1.25rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 1rem 0;
  white-space: pre;
  word-wrap: normal;
  tab-size: 4;
}

pre code {
  background: transparent;
  padding: 0;
  border-radius: 0;
  color: inherit;
  font-size: inherit;
}

/* Code inside article content */
.item-content pre,
.com-content-article pre,
.blog-item pre {
  background: #1e1e2e;
  border-radius: 0.5rem;
  padding: 1.25rem;
  overflow-x: auto;
}

.item-content code,
.com-content-article code,
.blog-item code {
  font-family: "SF Mono", Monaco, Inconsolata, "Fira Code", "Courier New", monospace;
  font-size: 0.875em;
}

/* Code container with header and copy button */
.code-container {
  position: relative;
  border: 1px solid #374151;
  border-radius: 0.5rem;
  overflow: hidden;
  margin: 1rem 0;
}

.code-header {
  background: #2d2d44;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #374151;
}

.code-header .language {
  font-size: 0.75rem;
  font-weight: 600;
  color: #a0a0b0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.code-container pre {
  margin: 0;
  padding: 1rem 1.25rem;
  background: #1e1e2e;
  overflow-x: auto;
}

.copy-button {
  background: none;
  border: none;
  cursor: pointer;
  color: #6b7280;
  font-size: 0.875rem;
  padding: 0.25rem 0.5rem;
  transition: color 0.2s;
}

.copy-button:hover {
  color: #3b82f6;
}

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

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

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

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

.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;
}

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

.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 {
  background-color: #1f2937;
  border-color: #374151;
}

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

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

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

/* ============================================
   MENU STYLES (for mod_menu output)
   ============================================ */
.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;
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */
@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; }
}
