/* Custom Tailwind Components - Used with Tailwind CDN */

/* Custom Color Utilities (from tailwind.config.js) */
.bg-primary-50 { background-color: #f0f9ff; }
.bg-primary-100 { background-color: #e0f2fe; }
.bg-primary-200 { background-color: #bae6fd; }
.bg-primary-300 { background-color: #7dd3fc; }
.bg-primary-400 { background-color: #38bdf8; }
.bg-primary-500 { background-color: #0ea5e9; }
.bg-primary-600 { background-color: #0284c7; }
.bg-primary-700 { background-color: #0369a1; }
.bg-primary-800 { background-color: #075985; }
.bg-primary-900 { background-color: #0c4a6e; }

.text-primary-50 { color: #f0f9ff; }
.text-primary-100 { color: #e0f2fe; }
.text-primary-200 { color: #bae6fd; }
.text-primary-300 { color: #7dd3fc; }
.text-primary-400 { color: #38bdf8; }
.text-primary-500 { color: #0ea5e9; }
.text-primary-600 { color: #0284c7; }
.text-primary-700 { color: #0369a1; }
.text-primary-800 { color: #075985; }
.text-primary-900 { color: #0c4a6e; }

.border-primary-50 { border-color: #f0f9ff; }
.border-primary-100 { border-color: #e0f2fe; }
.border-primary-200 { border-color: #bae6fd; }
.border-primary-300 { border-color: #7dd3fc; }
.border-primary-400 { border-color: #38bdf8; }
.border-primary-500 { border-color: #0ea5e9; }
.border-primary-600 { border-color: #0284c7; }
.border-primary-700 { border-color: #0369a1; }
.border-primary-800 { border-color: #075985; }
.border-primary-900 { border-color: #0c4a6e; }

.bg-accent-50 { background-color: #f0fdf4; }
.bg-accent-100 { background-color: #dcfce7; }
.bg-accent-200 { background-color: #bbf7d0; }
.bg-accent-300 { background-color: #86efac; }
.bg-accent-400 { background-color: #4ade80; }
.bg-accent-500 { background-color: #22c55e; }
.bg-accent-600 { background-color: #16a34a; }
.bg-accent-700 { background-color: #15803d; }
.bg-accent-800 { background-color: #166534; }
.bg-accent-900 { background-color: #14532d; }

.text-accent-50 { color: #f0fdf4; }
.text-accent-100 { color: #dcfce7; }
.text-accent-200 { color: #bbf7d0; }
.text-accent-300 { color: #86efac; }
.text-accent-400 { color: #4ade80; }
.text-accent-500 { color: #22c55e; }
.text-accent-600 { color: #16a34a; }
.text-accent-700 { color: #15803d; }
.text-accent-800 { color: #166534; }
.text-accent-900 { color: #14532d; }

.bg-warning-50 { background-color: #fffbeb; }
.bg-warning-100 { background-color: #fef3c7; }
.bg-warning-200 { background-color: #fde68a; }
.bg-warning-300 { background-color: #fcd34d; }
.bg-warning-400 { background-color: #fbbf24; }
.bg-warning-500 { background-color: #f59e0b; }
.bg-warning-600 { background-color: #d97706; }
.bg-warning-700 { background-color: #b45309; }
.bg-warning-800 { background-color: #92400e; }
.bg-warning-900 { background-color: #78350f; }

.text-warning-50 { color: #fffbeb; }
.text-warning-100 { color: #fef3c7; }
.text-warning-200 { color: #fde68a; }
.text-warning-300 { color: #fcd34d; }
.text-warning-400 { color: #fbbf24; }
.text-warning-500 { color: #f59e0b; }
.text-warning-600 { color: #d97706; }
.text-warning-700 { color: #b45309; }
.text-warning-800 { color: #92400e; }
.text-warning-900 { color: #78350f; }

.bg-error-50 { background-color: #fef2f2; }
.bg-error-100 { background-color: #fee2e2; }
.bg-error-200 { background-color: #fecaca; }
.bg-error-300 { background-color: #fca5a5; }
.bg-error-400 { background-color: #f87171; }
.bg-error-500 { background-color: #ef4444; }
.bg-error-600 { background-color: #dc2626; }
.bg-error-700 { background-color: #b91c1c; }
.bg-error-800 { background-color: #991b1b; }
.bg-error-900 { background-color: #7f1d1d; }

.text-error-50 { color: #fef2f2; }
.text-error-100 { color: #fee2e2; }
.text-error-200 { color: #fecaca; }
.text-error-300 { color: #fca5a5; }
.text-error-400 { color: #f87171; }
.text-error-500 { color: #ef4444; }
.text-error-600 { color: #dc2626; }
.text-error-700 { color: #b91c1c; }
.text-error-800 { color: #991b1b; }
.text-error-900 { color: #7f1d1d; }

/* Buttons */
.btn-primary {
  background-color: rgb(2 132 199);
  color: rgb(255 255 255);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  transition: all 0.2s;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(59, 130, 246, 0.1);
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.btn-primary:hover {
  background-color: rgb(3 105 161);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05), 0 0 0 1px rgba(59, 130, 246, 0.1);
  transform: translate(var(--tw-translate-x), calc(var(--tw-translate-y) + -0.125rem)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.btn-secondary {
  background-color: rgb(255 255 255);
  color: rgb(2 132 199);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  border-width: 2px;
  border-color: rgb(2 132 199);
  transition: all 0.2s;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(59, 130, 246, 0.1);
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.btn-secondary:hover {
  background-color: rgb(249 250 251);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05), 0 0 0 1px rgba(59, 130, 246, 0.1);
  transform: translate(var(--tw-translate-x), calc(var(--tw-translate-y) + -0.125rem)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.btn-outline {
  background-color: transparent;
  color: rgb(2 132 199);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  border-width: 2px;
  border-color: rgb(2 132 199);
  transition: all 0.2s;
}

.btn-outline:hover {
  background-color: rgb(2 132 199);
  color: rgb(255 255 255);
}

/* Cards */
.card {
  background-color: rgb(255 255 255);
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(59, 130, 246, 0.1);
  transition: all 0.3s;
  border-width: 1px;
  border-color: rgb(229 231 235);
}

.card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05), 0 0 0 1px rgba(59, 130, 246, 0.1);
  border-color: rgb(186 230 253);
}

.card-tech {
  background-image: linear-gradient(to bottom right, rgb(255 255 255), rgb(249 250 251));
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(59, 130, 246, 0.1);
  transition: all 0.3s;
  border-width: 1px;
  border-color: rgb(229 231 235);
}

.card-tech:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05), 0 0 0 1px rgba(59, 130, 246, 0.1);
  border-color: rgb(186 230 253);
}

/* Navigation */
.nav-link {
  color: rgb(55 65 81);
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}

.nav-link:hover {
  color: rgb(2 132 199);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 0.125rem;
  width: 0;
  background-color: rgb(2 132 199);
  transition: all 0.2s;
}

.nav-link:hover::after {
  width: 100%;
}

/* Grids */
.tech-grid {
  display: grid;
  gap: 1.5rem;
}

.tech-grid-2 {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .tech-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.tech-grid-3 {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .tech-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .tech-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.tech-grid-4 {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .tech-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .tech-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Sections */
.section-title {
  margin-bottom: 2rem;
  text-align: center;
  font-size: 1.875rem;
  line-height: 2.25rem;
  font-weight: 700;
  color: rgb(17 24 39);
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.25rem;
    line-height: 2.5rem;
  }
}

.section-subtitle {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 3rem;
  max-width: 48rem;
  text-align: center;
  font-size: 1.125rem;
  line-height: 1.75rem;
  color: rgb(75 85 99);
}

.hero-title {
  font-size: 2.25rem;
  line-height: 2.5rem;
  font-weight: 700;
  line-height: 1.25;
  color: rgb(17 24 39);
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3rem;
    line-height: 1;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 3.75rem;
    line-height: 1;
  }
}

.hero-subtitle {
  font-size: 1.25rem;
  line-height: 1.75rem;
  line-height: 1.625;
  color: rgb(75 85 99);
}

/* Feature Card */
.feature-card {
  padding: 2rem;
  text-align: center;
  background-color: rgb(255 255 255);
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(59, 130, 246, 0.1);
  transition: all 0.3s;
  border-width: 1px;
  border-color: rgb(229 231 235);
}

.feature-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05), 0 0 0 1px rgba(59, 130, 246, 0.1);
  border-color: rgb(186 230 253);
  transform: translate(var(--tw-translate-x), calc(var(--tw-translate-y) + -0.5rem)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.feature-icon {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.5rem;
  height: 4rem;
  width: 4rem;
  color: rgb(2 132 199);
  transition: color 0.2s;
}

/* Stats */
.stats-card {
  text-align: center;
  padding: 1.5rem;
  background-color: rgb(255 255 255);
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(59, 130, 246, 0.1);
}

.stats-number {
  margin-bottom: 0.5rem;
  font-size: 2.25rem;
  line-height: 2.5rem;
  font-weight: 700;
  color: rgb(2 132 199);
}

.stats-label {
  font-weight: 500;
  color: rgb(75 85 99);
}

/* Code Blocks */
.code-block {
  background-color: rgb(17 24 39);
  color: rgb(243 244 246);
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.code-header {
  background-color: rgb(31 41 55);
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom-width: 1px;
  border-color: rgb(55 65 81);
}

.code-content {
  padding: 1rem;
  overflow-x: auto;
}

/* Forms */
.form-input {
  width: 100%;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  border-width: 1px;
  border-color: rgb(209 213 219);
  border-radius: 0.5rem;
  transition: color 0.2s, background-color 0.2s, border-color 0.2s;
}

.form-input:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
  --tw-ring-opacity: 1;
  --tw-ring-color: rgb(14 165 233);
  border-color: rgb(14 165 233);
}

.form-label {
  display: block;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  color: rgb(55 65 81);
  margin-bottom: 0.5rem;
}

/* Alerts */
.alert {
  padding: 1rem;
  border-radius: 0.5rem;
  border-left-width: 4px;
}

.alert-info {
  background-color: rgb(240 249 255);
  border-color: rgb(14 165 233);
  color: rgb(3 105 161);
}

.alert-success {
  background-color: rgb(240 253 244);
  border-color: rgb(34 197 94);
  color: rgb(21 128 61);
}

.alert-warning {
  background-color: rgb(255 251 235);
  border-color: rgb(245 158 11);
  color: rgb(180 83 9);
}

.alert-error {
  background-color: rgb(254 242 242);
  border-color: rgb(239 68 68);
  color: rgb(185 28 28);
}

/* Tech Badge */
.tech-badge {
  display: inline-flex;
  align-items: center;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
}

.tech-badge-primary {
  background-color: rgb(224 242 254);
  color: rgb(7 89 133);
}

.tech-badge-secondary {
  background-color: rgb(243 244 246);
  color: rgb(31 41 55);
}

.tech-badge-accent {
  background-color: rgb(220 252 231);
  color: rgb(22 101 52);
}

/* Patterns */
.circuit-pattern {
  background-image: radial-gradient(circle at 1px 1px, #e5e7eb 1px, transparent 0);
  background-size: 20px 20px;
}

.gradient-tech {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gradient-primary {
  background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 100%);
}

/* Custom Utilities */
.text-gradient {
  background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.shadow-tech {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(59, 130, 246, 0.1);
}

.shadow-tech-lg {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05), 0 0 0 1px rgba(59, 130, 246, 0.1);
}

/* Scroll to Top Button */
.scroll-to-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3rem;
  height: 3rem;
  background-color: rgb(2 132 199/var(--tw-bg-opacity,1));
  color: rgb(255 255 255/var(--tw-text-opacity,1));
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  opacity: 0;
  visibility: hidden;
  transform: translateY(1rem);
  transition: all 0.3s ease;
  z-index: 1000;
}

.scroll-to-top-btn:hover {
  background-color: rgb(3 105 161/var(--tw-bg-opacity,1));
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transform: translateY(-0.25rem);
}

.scroll-to-top-btn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top-btn:focus {
  outline: 2px solid rgb(2 132 199/var(--tw-bg-opacity,1));
  outline-offset: 2px;
}

@media (max-width: 768px) {
  .scroll-to-top-btn {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 2.75rem;
    height: 2.75rem;
  }
}

