/* CodeMiner Custom Styles for Business Frontpage Theme */

/* Color Variables */
:root {
  --primary-color: #283593;
  --secondary-color: #008080;
  --accent-color: #17a2b8;
  --dark-color: #343a40;
  --light-color: #f0f2ff;
  --success-color: #28a745;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
}

/* Override Bootstrap primary color */
.bg-primary {
  background-color: var(--primary-color) !important;
}

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

.btn-primary:hover {
  background-color: #1a237e;
  border-color: #1a237e;
}

.btn-secondary {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
}

.btn-secondary:hover {
  background-color: #006666;
  border-color: #006666;
}

/* Header Styles */
.navbar-brand {
  font-size: 1.5rem;
  font-weight: bold;
}

/* Hero Logo Size - Responsive */
.hero-section img {
  width: 400px;
  height: auto;
  max-width: 100%;
}

/* Tablet and below */
@media (max-width: 768px) {
  .hero-section img {
    width: 300px;
  }
}


/* Hero Section */
.hero-section {
  padding-top: 100px; /* Account for fixed navbar */
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.hero-section h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-section .lead {
  font-size: 1.25rem;
  font-weight: 300;
  margin-bottom: 2rem;
}

/* Marketing Boxes */
.marketing-box {
  padding: 3rem 2rem;
  text-align: center;
  border-radius: 0.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  background: white;
  border: 1px solid #e9ecef;
}

.marketing-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.marketing-box .fa-stack {
  margin-bottom: 1.5rem;
}

.marketing-box h4 {
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

/* Problem/Solution Cards */
.problem-card {
  background: #fff5f5;
  border-left: 4px solid var(--danger-color);
  padding: 2rem;
  margin-bottom: 2rem;
  border-radius: 0.5rem;
}

.problem-card h3 {
  color: var(--danger-color);
  margin-bottom: 1rem;
}

.solution-card {
  background: #f0fff4;
  border-left: 4px solid var(--success-color);
  padding: 2rem;
  margin-bottom: 2rem;
  border-radius: 0.5rem;
}

.solution-card h3 {
  color: var(--success-color);
  margin-bottom: 1rem;
}

/* Feature Cards */
.feature-card {
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 0.5rem;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  border-color: var(--primary-color);
}

.feature-card .feature-icon {
  font-size: 3rem;
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
}

.feature-card h4 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.feature-card .icon-list {
  text-align: left !important;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Section Styles */
.section {
  padding: 5rem 0;
}

.section-alt {
  background-color: var(--light-color);
}

/* CTA Section */
.cta-section {
  background: var(--primary-color);
  color: white !important;
  padding: 2.5rem 0;
  text-align: center;
}

.cta-section h2 {
  color: white !important;
  margin-bottom: 1.5rem;
}

.cta-section h2.display-4 {
  color: white !important;
}

.cta-section .lead {
  color: rgba(255, 255, 255, 0.9) !important;
  margin-bottom: 2rem;
}

.cta-section p {
  color: white !important;
}

/* Icon Lists */
.icon-list {
  list-style: none;
  padding: 0;
  text-align: left;
}

.icon-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
  padding-left: 0;
  text-align: left;
  font-size: 1.2rem;
}

.icon-list li::before {
  content: "✓";
  color: var(--success-color);
  font-weight: bold;
  margin-right: 1rem;
  flex-shrink: 0;
  font-size: 1.2rem;
}

/* Standard Lists */
.standard-list {
  list-style: disc;
  padding-left: 1.5rem;
  text-align: left;
  font-size: 1.3rem;
}

.standard-list li {
  margin-bottom: 0.5rem;
  text-align: left;
}

/* Quote Lists */
.quote-list {
  list-style: none;
  text-align: center;
  padding: 0;
  text-align: left;
  font-size: 1.3rem
}

.quote-list li {
  margin-bottom: 1rem;
  text-align: center;
  padding-left: 0;
  font-style: italic;
  font-size: 1.3rem
}

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

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

.contact-form label {
  font-weight: 600;
  color: var(--dark-color);
  margin-bottom: 0.5rem;
}

.contact-form .form-control {
  border-radius: 0.5rem;
  border: 1px solid #ced4da;
  padding: 0.75rem 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(40, 53, 147, 0.25);
}

/* Page Styles */
.page-title {
  color: var(--primary-color);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
}

.page-content {
  line-height: 1.8;
}

.page-content h2 {
  color: var(--primary-color);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.page-content h3 {
  color: var(--secondary-color);
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2.5rem;
  }
  
  .hero-section .lead {
    font-size: 1.1rem;
  }
  
  .marketing-box {
    margin-bottom: 2rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .feature-card {
    margin-bottom: 2rem;
  }
}

@media (max-width: 576px) {
  .hero-section {
    padding-top: 80px;
    min-height: 60vh;
  }
  
  .hero-section h1 {
    font-size: 2rem;
  }
  
  /* Fix logo size on mobile */
  .hero-section img {
    width: 200px;
    max-width: 80%;
    height: auto;
  }
  
  .marketing-box {
    padding: 2rem 1rem;
  }
}

/* Animation Classes */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Utility Classes */
.text-primary-custom {
  color: var(--primary-color) !important;
}

.text-secondary-custom {
  color: var(--secondary-color) !important;
}

.bg-primary-custom {
  background-color: var(--primary-color) !important;
}

.bg-secondary-custom {
  background-color: var(--secondary-color) !important;
}

/* Custom Button Styles */
.btn-custom {
  border-radius: 2rem;
  padding: 0.75rem 2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.btn-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Loading Animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
