/* CoreCommerce Technologies - Custom Styles */
/* Brand Colors: Primary Blue #1A5FA8, Accent Orange #F58220 */

:root {
  --primary-blue: #1A5FA8;
  --primary-blue-dark: #154d8a;
  --primary-blue-light: #2a7bc8;
  --accent-orange: #F58220;
  --accent-orange-dark: #e0711a;
  --accent-orange-light: #ff9a40;
  --dark-gray: #2c3e50;
  --light-gray: #f8f9fa;
  --white: #ffffff;
  --text-muted: #6c757d;
}

/* Global Styles */
body {
  font-family: 'Roboto', sans-serif;
  color: var(--dark-gray);
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

/* Navbar */
.navbar {
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  padding: 0.5rem 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.navbar-brand img {
  transition: all 0.3s ease;
  height: 65px;
}

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

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

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

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

/* Language Switch */
.lang-switch {
  display: flex !important;
  align-items: center;
  margin-left: 1rem;
}

.lang-switch .btn {
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 5px;
  transition: all 0.3s ease;
  margin-left: 0.25rem;
  border: 2px solid var(--primary-blue);
  cursor: pointer;
}

.lang-switch .btn.active {
  background-color: var(--primary-blue) !important;
  border-color: var(--primary-blue) !important;
  color: var(--white) !important;
}

.lang-switch .btn:not(.active) {
  background-color: transparent !important;
  border-color: var(--primary-blue) !important;
  color: var(--primary-blue) !important;
}

.lang-switch .btn:not(.active):hover {
  background-color: var(--primary-blue) !important;
  color: var(--white) !important;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.hero-illustration {
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: float 4s ease-in-out infinite;
}

.hero-illustration img {
  max-width: 350px;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

/* Accent Button */
.btn-accent {
  background-color: var(--accent-orange);
  border-color: var(--accent-orange);
  color: var(--white);
  font-weight: 600;
  padding: 0.75rem 2rem;
  transition: all 0.3s ease;
}

.btn-accent:hover {
  background-color: var(--accent-orange-dark);
  border-color: var(--accent-orange-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(245, 130, 32, 0.4);
}

.btn-outline-light {
  font-weight: 600;
  padding: 0.75rem 2rem;
}

.btn-outline-light:hover {
  color: var(--primary-blue);
}

/* Text Colors */
.text-accent {
  color: var(--accent-orange) !important;
}

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

/* Services Section */
#services {
  background-color: var(--white);
}

.service-card {
  background: var(--white);
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-blue), var(--accent-orange));
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

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

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon-wrapper {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  transition: all 0.4s ease;
}

.service-icon-wrapper i {
  font-size: 2rem;
  color: var(--white);
}

.service-card:hover .service-icon-wrapper {
  background: linear-gradient(135deg, var(--accent-orange) 0%, var(--accent-orange-light) 100%);
  transform: scale(1.1) rotate(5deg);
}

.service-card h4 {
  color: var(--dark-gray);
  font-size: 1.25rem;
}

/* About Section */
.wrapper-features {
  gap: 10px;
  flex-direction: column;
}

.feature-icon-sm {
  width: 30px;
  height: 30px;
  background: var(--accent-orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon-sm i {
  color: var(--white);
  font-size: 0.875rem;
}

.stat-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    grid-auto-flow: column;
    gap: 20px;
}

.wrapper-stat-card {
    padding-left: 0;
    margin-bottom: 0;
    display: block;
    margin: 0;
}

.stat-card {
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 25px;
    min-height: 150px;
}

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

.stat-card:hover h2 {
  color: var(--primary-blue) !important;
}

/* FAQ Section - MDB Accordion */
.md-accordion .card {
  margin-bottom: 1rem;
  border-radius: 10px !important;
  overflow: hidden;
}

.md-accordion .card-header {
  padding: 0;
  background-color: var(--primary-blue);
  border-bottom: none;
  border-radius: 10px !important;
}

.md-accordion .card-header a {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--primary-blue);
  padding: 1.25rem 1.5rem;
  background-color: var(--white);
  border: none;
  text-decoration: none;
  transition: all 0.3s ease;
}

.md-accordion .card-header a:hover {
  text-decoration: none;
  color: var(--primary-blue);
}

.md-accordion .card-header a:not(.collapsed) {
  background-color: var(--primary-blue);
  color: var(--white);
  border-radius: 10px 10px 0 0;
}

.md-accordion .card-header a .rotate-icon {
  transition: transform 0.3s ease;
}

.md-accordion .card-header a.collapsed .rotate-icon {
  transform: rotate(0deg);
}

.md-accordion .card-header a:not(.collapsed) .rotate-icon {
  transform: rotate(180deg);
}

.md-accordion .card-body {
  padding: 1.5rem;
  color: var(--text-muted);
  line-height: 1.7;
  background-color: var(--white);
  border-top: 1px solid rgba(0,0,0,0.05);
}

/* Contact Section */
.contact-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon i {
  font-size: 1.5rem;
  color: var(--white);
}

.contact-item:hover .contact-icon {
  background: linear-gradient(135deg, var(--accent-orange) 0%, var(--accent-orange-light) 100%);
}

.contact-form-wrapper {
  border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Form Styles */
.form-control {
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  padding: 0.75rem 1rem;
}

.form-control:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 0.2rem rgba(26, 95, 168, 0.25);
}

label {
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--dark-gray);
}

/* Footer */
.footer-section {
  background: linear-gradient(135deg, var(--dark-gray) 0%, #1a252f 100%);
}

.footer-section h4 {
  color: var(--accent-orange);
}

/* Responsive Adjustments */
@media (max-width: 991px) {
  .hero-section {
    text-align: center;
    padding-top: 100px;
  }

  .hero-section .d-flex {
    justify-content: center;
  }
}

@media (max-width: 767px) {
  .hero-section h1 {
    font-size: 2rem;
  }

  .hero-section .lead {
    font-size: 1rem;
  }

  .service-card {
    margin-bottom: 1rem;
  }

  .contact-form-wrapper {
    padding: 2rem !important;
  }

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

  .display-5 {
    font-size: 1.75rem;
  }
}

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

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

/* Utility Classes */
.rounded-4 {
  border-radius: 1rem !important;
}

/* Alert Styles */
.alert-success {
  background-color: #d4edda;
  border-color: #c3e6cb;
  color: #155724;
}

.alert-danger {
  background-color: #f8d7da;
  border-color: #f5c6cb;
  color: #721c24;
}
