/* ====================================== */
/* Global Reset & Base Styles            */
/* ====================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #667eea;
  --secondary-color: #583180;
  --accent-color: #f97316;
  --dark-bg: #1a1a2e;
  --light-bg: #f8f9fa;
  --text-dark: #333333;
  --text-light: #666666;
  --border-color: #e0e0e0;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 25px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ====================================== */
/* Typography                            */
/* ====================================== */

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--dark-bg);
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1rem;
}

p {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 1rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--secondary-color);
}

/* ====================================== */
/* Navigation Bar                        */
/* ====================================== */

.navbar {
  background: linear-gradient(135deg, var(--dark-bg) 0%, #3c518a 100%);
  box-shadow: var(--shadow-md);
  padding: 1rem 0;
  transition: var(--transition);
}

.navbar.scrolled {
  padding: 0.5rem 0;
  box-shadow: var(--shadow-lg);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: #ffffff !important;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: var(--transition);
}

.navbar-brand:hover {
  opacity: 0.8;
}

.navbar-brand img {
  border-radius: 4px;
  transition: var(--transition);
}

.navbar-brand img:hover {
  transform: scale(1.05);
}

.nav-link {
  color: rgba(255, 255, 255, 0.8) !important;
  font-weight: 500;
  position: relative;
  transition: var(--transition);
  margin: 0 8px;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  transition: var(--transition);
}

.nav-link:hover::after {
  width: 100%;
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.3);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.25);
}

/* ====================================== */
/* Hero Section                          */
/* ====================================== */

.hero-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: #ffffff;
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  z-index: 0;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  z-index: 0;
}

.hero-section > .container {
  position: relative;
  z-index: 1;
}

.hero-section h1 {
  color: #ffffff;
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease-out;
}

.hero-section .lead {
  font-size: 1.25rem;
  opacity: 0.95;
  margin-bottom: 2rem;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-section img {
  border-radius: 12px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 0.8s ease-out 0.4s both;
  transition: var(--transition);
}

.hero-section img:hover {
  transform: translateY(-10px);
}

.btn-light {
  background-color: #ffffff;
  color: var(--primary-color);
  font-weight: 600;
  padding: 12px 32px;
  border-radius: 6px;
  transition: var(--transition);
  border: 2px solid #ffffff;
}

.btn-light:hover {
  background-color: transparent;
  color: #ffffff;
  transform: translateX(5px);
}

/* ====================================== */
/* About Section                         */
/* ====================================== */

#about {
  background-color: var(--light-bg);
  padding: 80px 0;
}

#about img {
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

#about img:hover {
  transform: scale(1.02);
}

#about h2 {
  color: var(--dark-bg);
}

#about p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.badge {
  font-size: 0.85rem;
  padding: 8px 16px;
  font-weight: 600;
  border-radius: 20px;
  display: inline-block;
}

.badge.bg-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
}

.badge.bg-success {
  background: linear-gradient(135deg, #10b981, #059669) !important;
}

.badge.bg-info {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8) !important;
}

/* ====================================== */
/* Products Section                      */
/* ====================================== */

#products {
  padding: 80px 0;
  background: #ffffff;
}

#products h2 {
  color: var(--dark-bg);
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

.text-center .lead {
  color: var(--text-light);
  font-size: 1.1rem;
}

/* Product Cards */
.product-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-15px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.product-card .card-img-top {
  height: 250px;
  overflow: hidden;
  background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
  position: relative;
}

.product-card .card-img-top img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.product-card:hover .card-img-top img {
  transform: scale(1.08);
}

.product-card .card-body {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-card .card-title {
  color: var(--dark-bg);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.product-card .card-text {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.btn-outline-primary {
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  font-weight: 600;
  border-radius: 6px;
  padding: 8px 16px;
  transition: var(--transition);
}

.btn-outline-primary:hover {
  background: var(--primary-color);
  color: #ffffff;
  transform: translateX(5px);
}

/* ====================================== */
/* Clients Section                       */
/* ====================================== */

#clients {
  background-color: var(--light-bg);
  padding: 80px 0;
}

#clients h2 {
  color: var(--dark-bg);
  margin-bottom: 1rem;
}

#clients .card {
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: #ffffff;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 150px;
  padding: 2rem;
}

#clients .card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

#clients .card img {
  max-height: 100px;
  width: auto;
  object-fit: contain;
  transition: var(--transition);
  filter: grayscale(100%);
}

#clients .card:hover img {
  filter: grayscale(0%);
  transform: scale(1.05);
}

/* ====================================== */
/* Certificates Section                  */
/* ====================================== */

#certificates {
  padding: 80px 0;
  background: #ffffff;
}

#certificates h2 {
  color: var(--dark-bg);
  margin-bottom: 2rem;
}

#certificates img {
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

#certificates img:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 35px rgba(102, 126, 234, 0.2);
}

/* Why AXM Section */
.why-axm-box {
  background-color: var(--light-bg);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--primary-color);
  transition: var(--transition);
}

.why-axm-box:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-md);
}

.why-axm-box:nth-child(1) {
  border-left-color: var(--primary-color);
}

.why-axm-box:nth-child(2) {
  border-left-color: var(--secondary-color);
}

.why-axm-box:nth-child(3) {
  border-left-color: #10b981;
}

.why-axm-box:nth-child(4) {
  border-left-color: #3b82f6;
}

.why-axm-box h5 {
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.why-axm-box i {
  font-size: 1.5rem;
}

.why-axm-box ul {
  list-style: none;
  padding-left: 2rem;
}

.why-axm-box li {
  margin-bottom: 0.75rem;
  color: var(--text-light);
  font-weight: 500;
}

.why-axm-box li::before {
  content: '✓';
  font-weight: 700;
  margin-right: 0.5rem;
  color: #10b981;
}

/* ====================================== */
/* Contact Section                       */
/* ====================================== */

#contact {
  padding: 80px 0;
  background-color: var(--light-bg);
}

#contact h2 {
  color: var(--dark-bg);
}

#contact .card {
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  margin-bottom: 1.5rem;
}

#contact .card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

#contact .card-title {
  color: var(--dark-bg);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

/* Contact Form */
#contact .form-label {
  color: var(--text-dark);
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

#contact .form-control {
  border: 2px solid var(--border-color);
  border-radius: 8px;
  padding: 10px 15px;
  font-size: 1rem;
  transition: var(--transition);
  background-color: #ffffff;
}

#contact .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15);
  background-color: #ffffff;
}

#contact textarea.form-control {
  resize: vertical;
  min-height: 150px;
}

#contact .btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
}

#contact .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Contact Info */
.contact-info {
  display: flex;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.contact-info i {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-right: 1.5rem;
  flex-shrink: 0;
  margin-top: 5px;
}

.contact-info h6 {
  color: var(--dark-bg);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.contact-info p {
  color: var(--text-light);
  margin-bottom: 0;
}

.contact-info a {
  color: var(--primary-color);
  font-weight: 600;
}

/* Quick Links */
.quick-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 600;
  transition: var(--transition);
  border: none;
  color: #ffffff;
  cursor: pointer;
}

.btn-circle:hover {
  transform: scale(1.1) translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.btn-success {
  background: linear-gradient(135deg, #10b981, #059669);
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

/* ====================================== */
/* Footer                                */
/* ====================================== */

footer {
  background: linear-gradient(135deg, var(--dark-bg) 0%, #d4d6dd 100%);
  color: rgba(255, 255, 255, 0.8);
  padding: 2rem 0;
}

footer h6 {
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 1rem;
}

footer p {
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

footer ul {
  list-style: none;
  padding: 0;
}

footer li {
  margin-bottom: 0.5rem;
}

footer a {
  color: #ffffff;
  text-decoration: none;
  transition: var(--transition);
}

footer a:hover {
  color: #767880;
}

footer hr {
  border-color: rgba(248, 246, 246, 0.945);
  margin: 1.5rem 0;
}

footer .small {
  color: rgba(242, 235, 235, 0.85);
}

/* ====================================== */
/* Animations                            */
/* ====================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ====================================== */
/* Utility Classes                       */
/* ====================================== */

.fw-500 {
  font-weight: 500;
}

.fw-600 {
  font-weight: 600;
}

.fw-700 {
  font-weight: 700;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.shadow-sm {
  box-shadow: var(--shadow-sm) !important;
}

.shadow-md {
  box-shadow: var(--shadow-md) !important;
}

.shadow-lg {
  box-shadow: var(--shadow-lg) !important;
}

/* ====================================== */
/* Responsive Design                     */
/* ====================================== */

@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero-section {
    padding: 80px 0;
  }

  #about,
  #products,
  #clients,
  #certificates,
  #contact {
    padding: 60px 0;
  }

  .product-card {
    margin-bottom: 1.5rem;
  }

  #contact .row {
    flex-direction: column;
  }

  .contact-info {
    margin-bottom: 1.5rem;
  }

  footer {
    padding: 2rem 0;
  }

  footer > .container > .row {
    flex-direction: column;
  }

  footer .col-md-4 {
    margin-bottom: 2rem;
  }
}

@media (max-width: 576px) {
  body {
    padding-top: 60px;
  }

  .hero-section h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
  }

  .hero-section {
    padding: 60px 0;
  }

  #clients .card {
    min-height: 120px;
  }

  #clients .card img {
    max-height: 80px;
  }

  .navbar-brand {
    font-size: 1.2rem;
  }

  .navbar-brand img {
    height: 45px;
    width: 70px;
  }

  .quick-links {
    justify-content: center;
  }

  .btn-circle {
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
  }
}

/* ====================================== */
/* Print Styles                          */
/* ====================================== */

@media print {
  body {
    padding-top: 0;
  }

  .navbar,
  footer,
  .contact-float {
    display: none;
  }

  section {
    page-break-inside: avoid;
  }
}
