/* CircuitoLinks - Modern SEO Resource Site
   Custom CSS to complement Bootstrap 5 */

:root {
  /* Primary Colors - Tech blue gradient */
  --primary-50: #e6f0f9;
  --primary-100: #cce1f3;
  --primary-200: #99c3e7;
  --primary-300: #66a5db;
  --primary-400: #3387cf;
  --primary-500: #0066b3;
  --primary-600: #00528f;
  --primary-700: #003d6b;
  --primary-800: #002948;
  --primary-900: #001424;

  /* Accent - Orange for CTAs */
  --accent: #f59e0b;
  --accent-light: #fbbf24;
  --accent-dark: #d97706;

  /* Neutrals */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  /* Semantic */
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --info: #3b82f6;
}

/* Global Styles */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--gray-800);
  line-height: 1.7;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.3;
}

.display-4 {
  font-weight: 800;
}

/* Custom Primary Colors for Bootstrap */
.bg-primary {
  background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-700) 100%) !important;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
  border: none;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 102, 179, 0.3);
}

.btn-outline-primary {
  color: var(--primary-500);
  border-color: var(--primary-500);
}

.btn-outline-primary:hover {
  background-color: var(--primary-500);
  border-color: var(--primary-500);
}

.text-primary {
  color: var(--primary-500) !important;
}

/* Links */
a {
  color: var(--primary-500);
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary-700);
}

/* Navbar Customization */
.navbar {
  transition: all 0.3s ease;
}

.navbar-brand {
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--primary-600) !important;
}

.nav-link {
  font-weight: 500;
  color: var(--gray-700) !important;
  padding: 0.5rem 1rem !important;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--primary-500) !important;
}

.navbar.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Hero Sections */
.hero-section {
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 102, 179, 0.9) 0%, rgba(0, 61, 107, 0.95) 100%);
  z-index: 1;
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

.hero-section .hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* Cards */
.card {
  border: none;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.card-title {
  font-weight: 600;
}

/* Feature Cards with Icons */
.feature-card {
  padding: 2rem;
  border-radius: 16px;
  background: white;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.feature-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.feature-icon.blue {
  background: var(--primary-100);
  color: var(--primary-600);
}

.feature-icon.orange {
  background: #fef3c7;
  color: var(--accent-dark);
}

.feature-icon.green {
  background: #d1fae5;
  color: #059669;
}

.feature-icon.purple {
  background: #e9d5ff;
  color: #7c3aed;
}

/* Content Sections */
.content-section {
  padding: 5rem 0;
}

.content-section.alt {
  background-color: var(--gray-50);
}

/* Article Content */
.article-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-100);
}

.article-content h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--gray-700);
}

.article-content p {
  margin-bottom: 1.25rem;
}

.article-content ul, .article-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.article-content li {
  margin-bottom: 0.75rem;
}

/* Sidebar */
.sidebar-widget {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  margin-bottom: 1.5rem;
}

.sidebar-widget h4 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-100);
}

.sidebar-widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-widget li {
  margin-bottom: 0.5rem;
}

.sidebar-widget a {
  color: var(--gray-700);
  text-decoration: none;
  display: flex;
  align-items: center;
  padding: 0.5rem 0;
  transition: all 0.2s ease;
}

.sidebar-widget a:hover {
  color: var(--primary-500);
  padding-left: 0.5rem;
}

.sidebar-widget a i {
  margin-right: 0.75rem;
  color: var(--primary-400);
}

/* Footer */
footer {
  background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%);
}

footer h5 {
  color: white;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

footer a {
  color: var(--gray-400);
  text-decoration: none;
  transition: color 0.2s ease;
}

footer a:hover {
  color: white;
}

/* Breadcrumbs */
.breadcrumb {
  background: transparent;
  padding: 0;
  margin-bottom: 1.5rem;
}

.breadcrumb-item a {
  color: var(--primary-500);
  text-decoration: none;
}

.breadcrumb-item.active {
  color: var(--gray-500);
}

/* Tables */
.table th {
  background: var(--primary-50);
  color: var(--primary-700);
  font-weight: 600;
}

/* Alerts/Callouts */
.callout {
  border-left: 4px solid var(--primary-500);
  background: var(--primary-50);
  padding: 1.25rem 1.5rem;
  border-radius: 0 8px 8px 0;
  margin: 1.5rem 0;
}

.callout.warning {
  border-left-color: var(--warning);
  background: #fef3c7;
}

.callout.success {
  border-left-color: var(--success);
  background: #d1fae5;
}

/* Image Styles */
.hero-image {
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.content-image {
  border-radius: 12px;
  margin: 2rem 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Buttons */
.btn {
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.btn-light {
  background: white;
  color: var(--primary-600);
}

.btn-light:hover {
  background: var(--gray-100);
  color: var(--primary-700);
}

/* 404 Page */
.error-page {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.error-page h1 {
  font-size: 8rem;
  font-weight: 800;
  color: var(--primary-500);
  line-height: 1;
  margin-bottom: 1rem;
}

.error-page p {
  font-size: 1.25rem;
  color: var(--gray-600);
  margin-bottom: 2rem;
}

/* Responsive */
@media (max-width: 991px) {
  .hero-section {
    padding: 3rem 0;
  }

  .display-4 {
    font-size: 2.5rem;
  }

  .content-section {
    padding: 3rem 0;
  }
}

@media (max-width: 767px) {
  .hero-section {
    text-align: center;
  }

  .hero-section img {
    margin-top: 2rem;
  }

  .display-4 {
    font-size: 2rem;
  }

  .navbar-brand {
    font-size: 1.25rem;
  }

  .content-section {
    padding: 2.5rem 0;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

/* Contact Form */
.contact-form .form-control {
  border-radius: 8px;
  padding: 0.875rem 1rem;
  border: 2px solid var(--gray-200);
  transition: all 0.2s ease;
}

.contact-form .form-control:focus {
  border-color: var(--primary-400);
  box-shadow: 0 0 0 4px rgba(0, 102, 179, 0.1);
}

.contact-form label {
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: 0.5rem;
}

/* FAQ Accordion */
.accordion-button {
  font-weight: 600;
  color: var(--gray-800);
}

.accordion-button:not(.collapsed) {
  background-color: var(--primary-50);
  color: var(--primary-700);
}

.accordion-button:focus {
  box-shadow: 0 0 0 4px rgba(0, 102, 179, 0.1);
}

/* Utility Classes */
.text-gradient {
  background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-700) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-gradient-primary {
  background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-700) 100%);
}

.shadow-soft {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.shadow-strong {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}
