/* =========================================================
   AxisGeo Mining Services Ltd - Global Stylesheet
   ========================================================= */

:root {
  --primary: #0B3C5D;
  --primary-dark: #072a41;
  --light-blue: #2E86C1;
  --light-blue-soft: #EAF4FB;
  --secondary: #D4AF37;
  --accent: #1E8E5A;
  --bg: #F8F9FA;
  --dark: #222222;
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius: 14px;
  --shadow-soft: 0 10px 30px rgba(11, 60, 93, 0.08);
  --shadow-hover: 0 20px 40px rgba(11, 60, 93, 0.15);
  --transition: all .35s ease;
}

* { 
  scroll-behavior: smooth; 
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html { 
  scroll-padding-top: 110px; 
  overflow-x: hidden;
}

section[id] { 
  scroll-margin-top: 110px; 
}

body {
  font-family: var(--font-body);
  color: var(--dark);
  background-color: var(--bg);
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--primary);
}

a { 
  text-decoration: none; 
  transition: var(--transition); 
}

img { 
  max-width: 100%; 
  height: auto;
}

/* ===================== UTILITY ===================== */
.section-pad { 
  padding: 90px 0; 
}

@media (max-width: 768px) { 
  .section-pad { 
    padding: 60px 0; 
  } 
}

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

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

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

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

.bg-accent-brand { 
  background-color: var(--accent) !important; 
}

.section-tag {
  display: inline-block;
  font-size: .8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 10px;
}

.section-title { 
  font-size: 2.2rem; 
  margin-bottom: 15px; 
}

.section-subtitle { 
  color: #6b7280; 
  max-width: 700px; 
  margin: 0 auto 30px;
}

/* ===================== TOPBAR ===================== */
.topbar {
  background: var(--primary-dark);
  color: #cfe0ea;
  font-size: .85rem;
  padding: 8px 0;
}

.topbar a { 
  color: #cfe0ea; 
  margin-left: 10px; 
  transition: var(--transition);
}

.topbar a:hover { 
  color: var(--secondary); 
}

/* ===================== NAVBAR ===================== */
.navbar-wrapper {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  padding: 8px 0;
  transition: var(--transition);
  background: transparent;
}

.navbar-main {
  background: rgba(7, 42, 65, .88);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50px;
  padding: 8px 20px;
  max-width: 1200px;
  margin: 0 auto;
  box-shadow: 0 10px 35px rgba(7,42,65,.25);
  transition: var(--transition);
}

.navbar-wrapper.navbar-scrolled .navbar-main {
  background: rgba(7, 42, 65, .95);
  box-shadow: 0 14px 40px rgba(7,42,65,.35);
}

.navbar-brand { 
  display: flex; 
  align-items: center; 
  gap: 12px; 
}

.logo-holder {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 5px;
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
  flex-shrink: 0;
}

.logo-holder img { 
  width: 100%; 
  height: 100%; 
  object-fit: contain; 
}

.brand-mark {
  background: var(--primary);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: .85rem;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.brand-text { 
  font-family: var(--font-heading); 
  font-weight: 700; 
  color: #fff; 
  font-size: 1.05rem; 
  transition: var(--transition); 
}

.navbar-nav .nav-link {
  font-weight: 600;
  color: #fff !important;
  padding: 10px 16px !important;
  border-radius: 30px;
  position: relative;
  transition: var(--transition);
}

.navbar-nav .nav-link.active, 
.navbar-nav .nav-link:hover { 
  color: #fff !important; 
  background: rgba(255,255,255,.18); 
}

.navbar-nav .dropdown-menu {
  border: none;
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(11,60,93,.25);
  padding: 10px;
  margin-top: 10px;
}

.navbar-nav .dropdown-item {
  border-radius: 10px;
  padding: 10px 16px;
  font-weight: 600;
  color: var(--dark);
  transition: var(--transition);
}

.navbar-nav .dropdown-item:hover, 
.navbar-nav .dropdown-item:focus { 
  background: var(--light-blue-soft); 
  color: var(--primary); 
}

.btn-cta-nav {
  background: var(--light-blue);
  color: #fff !important;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 30px;
  transition: var(--transition);
}

.btn-cta-nav:hover { 
  background: var(--secondary); 
  color: var(--primary-dark) !important; 
}

.navbar-toggler { 
  border: none; 
  box-shadow: none !important; 
}

.navbar-toggler-icon { 
  filter: brightness(0) invert(1); 
}

/* ===================== NAVBAR RESPONSIVE ===================== */
@media (max-width: 991px) {
  .navbar-wrapper { 
    top: 0; 
    padding: 4px 0;
  }
  
  .navbar-main { 
    border-radius: 20px; 
    margin: 0 10px;
    padding: 8px 16px;
  }
  
  .navbar-collapse { 
    background: rgba(7,42,65,.95); 
    border-radius: 16px; 
    margin-top: 10px; 
    padding: 12px;
    max-height: 80vh;
    overflow-y: auto;
  }
  
  .navbar-nav .nav-link {
    color: #fff !important;
    padding: 8px 12px !important;
  }
  
  .navbar-nav .dropdown-menu {
    background: rgba(255,255,255,.05);
    padding-left: 20px;
    margin-top: 0;
    box-shadow: none;
  }
  
  .navbar-nav .dropdown-item {
    color: #fff !important;
  }
  
  .navbar-nav .dropdown-item:hover {
    background: rgba(255,215,0,.1);
    color: #FFD700 !important;
  }
}

@media (max-width: 576px) {
  .navbar-main {
    border-radius: 16px;
    padding: 6px 12px;
    margin: 0 6px;
  }
  
  .logo-holder {
    width: 40px;
    height: 40px;
  }
  
  .brand-text {
    font-size: .9rem;
  }
  
  .btn-cta-nav {
    padding: 8px 16px;
    font-size: .85rem;
  }
}

/* ===================== BUTTONS ===================== */
.btn-primary-solid {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 600;
  transition: var(--transition);
  display: inline-block;
}

.btn-primary-solid:hover { 
  background: var(--primary-dark); 
  color: #fff; 
  transform: translateY(-3px); 
}

.btn-secondary-solid {
  background: var(--secondary);
  color: var(--primary-dark);
  border: none;
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 700;
  transition: var(--transition);
  display: inline-block;
}

.btn-secondary-solid:hover { 
  background: #b8952c; 
  color: #fff; 
  transform: translateY(-3px); 
}

.btn-outline-light-custom {
  border: 2px solid #fff;
  color: #fff;
  padding: 11px 28px;
  border-radius: 30px;
  font-weight: 600;
  background: transparent;
  display: inline-block;
}

.btn-outline-light-custom:hover { 
  background: #fff; 
  color: var(--primary); 
}

.btn-outline-primary-custom {
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 10px 26px;
  border-radius: 30px;
  font-weight: 600;
  background: transparent;
  display: inline-block;
}

.btn-outline-primary-custom:hover { 
  background: var(--primary); 
  color: #fff; 
}

/* ===================== HERO ===================== */
.hero-section {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background: linear-gradient(120deg, rgba(11,60,93,.92), rgba(7,42,65,.88)), url('../images/hero-bg.jpg') center/cover no-repeat;
  color: #fff;
  overflow: hidden;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 90px;
  background: var(--bg);
  clip-path: polygon(0 60%, 100% 0, 100% 100%, 0 100%);
}

.hero-section .hero-tag {
  background: rgba(212,175,55,.15);
  border: 1px solid var(--secondary);
  color: var(--secondary);
  padding: 6px 18px;
  border-radius: 30px;
  font-size: .8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 700;
  display: inline-block;
}

.hero-section h1 { 
  color: #fff; 
  font-size: 3.2rem; 
  font-weight: 800; 
  line-height: 1.2; 
}

.hero-section p.lead { 
  color: #dbe6ee; 
  max-width: 600px; 
}

@media (max-width: 768px) { 
  .hero-section { 
    min-height: 80vh;
  }
  .hero-section h1 { 
    font-size: 2.1rem; 
  }
}

.hero-stats-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  padding: 20px 25px;
}

/* Small page hero (used for about/services/etc.) */
.page-hero {
  background: linear-gradient(120deg, rgba(11,60,93,.93), rgba(7,42,65,.9)), url('../images/hero-bg.jpg') center/cover no-repeat;
  color: #fff;
  padding: 140px 0 70px;
  position: relative;
}

.page-hero h1 { 
  color: #fff; 
  font-size: 2.6rem; 
}

.breadcrumb-custom a { 
  color: #dbe6ee; 
}

.breadcrumb-custom .active { 
  color: var(--secondary); 
}

@media (max-width: 768px) {
  .page-hero {
    padding: 100px 0 50px;
  }
  .page-hero h1 {
    font-size: 2rem;
  }
}

/* ===================== CARDS ===================== */
.custom-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  border: none;
  overflow: hidden;
  height: 100%;
}

.custom-card:hover { 
  transform: translateY(-8px); 
  box-shadow: var(--shadow-hover); 
}

.service-card { 
  padding: 0; 
  text-align: left; 
  position: relative; 
}

.service-card .service-img { 
  height: 200px; 
  overflow: hidden; 
}

.service-card .service-img img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  transition: var(--transition); 
}

.service-card:hover .service-img img { 
  transform: scale(1.08); 
}

.service-card .service-card-body { 
  padding: 30px; 
}

.service-card .service-icon {
  width: 65px;
  height: 65px;
  background: rgba(11,60,93,.08);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 20px;
  transition: var(--transition);
}

.service-card:hover .service-icon { 
  background: var(--primary); 
  color: #fff; 
}

.service-card .service-link { 
  font-weight: 700; 
  color: var(--primary); 
}

.service-card .service-link i { 
  transition: var(--transition); 
}

.service-card:hover .service-link i { 
  transform: translateX(5px); 
}

.why-card { 
  padding: 35px 25px; 
  text-align: center; 
}

.why-card .why-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
}

.industry-card {
  padding: 30px 20px;
  text-align: center;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
}

.industry-card:hover { 
  background: var(--primary); 
  color: #fff; 
  transform: translateY(-6px); 
}

.industry-card:hover h6 { 
  color: #fff; 
}

.industry-card i { 
  font-size: 2.2rem; 
  color: var(--secondary); 
  margin-bottom: 12px; 
  display: block; 
}

/* ===================== STATS ===================== */
.stats-section {
  background: var(--primary);
  color: #fff;
  position: relative;
}

.stat-item { 
  text-align: center; 
}

.stat-number { 
  font-size: 2.8rem; 
  font-weight: 800; 
  color: var(--secondary); 
  font-family: var(--font-heading); 
}

.stat-label { 
  color: #cfe0ea; 
  font-weight: 500; 
}

@media (max-width: 576px) {
  .stat-number {
    font-size: 2rem;
  }
}

/* ===================== PROJECT CARDS ===================== */
.project-card { 
  position: relative; 
  border-radius: var(--radius); 
  overflow: hidden; 
  box-shadow: var(--shadow-soft); 
}

.project-card img { 
  height: 280px; 
  object-fit: cover; 
  width: 100%; 
  transition: var(--transition); 
}

.project-card:hover img { 
  transform: scale(1.08); 
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11,60,93,.92), transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 25px;
  color: #fff;
}

.project-overlay .badge-status { 
  background: var(--secondary); 
  color: var(--primary-dark); 
  font-weight: 700; 
}

/* ===================== GALLERY ===================== */
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-soft);
}

.gallery-item img { 
  width: 100%; 
  height: 260px; 
  object-fit: cover; 
  transition: var(--transition); 
}

.gallery-item:hover img { 
  transform: scale(1.1); 
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11,60,93,.75);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.6rem;
  transition: var(--transition);
}

.gallery-item:hover .gallery-overlay { 
  opacity: 1; 
}

.filter-btns .btn {
  border-radius: 30px;
  margin: 0 5px 10px;
  border: 2px solid var(--primary);
  color: var(--primary);
  font-weight: 600;
  padding: 8px 22px;
}

.filter-btns .btn.active, 
.filter-btns .btn:hover { 
  background: var(--primary); 
  color: #fff; 
}

/* ===================== TESTIMONIALS ===================== */
.testimonial-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 35px;
  box-shadow: var(--shadow-soft);
  position: relative;
}

.testimonial-card .quote-icon { 
  color: var(--secondary); 
  font-size: 2rem; 
}

.testimonial-card .stars { 
  color: var(--secondary); 
}

.testimonial-avatar { 
  width: 55px; 
  height: 55px; 
  border-radius: 50%; 
  object-fit: cover; 
}

/* ===================== BLOG ===================== */
.blog-card { 
  border-radius: var(--radius); 
  overflow: hidden; 
  box-shadow: var(--shadow-soft); 
  background: #fff; 
  height: 100%; 
}

.blog-card img { 
  height: 220px; 
  object-fit: cover; 
  width: 100%; 
}

.blog-card .blog-body { 
  padding: 25px; 
}

.blog-card .blog-meta { 
  font-size: .82rem; 
  color: #6b7280; 
}

.blog-card .badge-cat { 
  background: rgba(212,175,55,.15); 
  color: #a3821f; 
  font-weight: 700; 
}

.blog-card h5 a { 
  color: var(--primary); 
}

.blog-card h5 a:hover { 
  color: var(--accent); 
}

/* ===================== TEAM ===================== */
.team-card { 
  text-align: center; 
  border-radius: var(--radius); 
  overflow: hidden; 
  background: #fff; 
  box-shadow: var(--shadow-soft); 
}

.team-card img { 
  height: 280px; 
  object-fit: cover; 
  width: 100%; 
}

.team-card .team-body { 
  padding: 20px; 
}

.team-social a { 
  color: var(--primary); 
  margin: 0 6px; 
}

/* ===================== CTA ===================== */
.cta-section {
  background: linear-gradient(120deg, var(--primary), var(--primary-dark));
  color: #fff;
  border-radius: var(--radius);
  padding: 60px;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: rgba(212,175,55,.15);
  border-radius: 50%;
}

@media (max-width: 768px) {
  .cta-section {
    padding: 40px 25px;
  }
}

/* ===================== NEWSLETTER ===================== */
.newsletter-strip { 
  background: var(--accent); 
  color: #fff; 
  padding: 45px 0; 
}

.newsletter-strip .form-control { 
  border-radius: 30px 0 0 30px; 
  padding: 12px 20px; 
  border: none; 
}

.newsletter-strip .btn-secondary-solid { 
  border-radius: 0 30px 30px 0; 
}

@media (max-width: 576px) {
  .newsletter-strip .form-control {
    border-radius: 30px;
    margin-bottom: 10px;
  }
  .newsletter-strip .btn-secondary-solid {
    border-radius: 30px;
    width: 100%;
  }
}

/* ===================== FOOTER ===================== */
.site-footer { 
  background: var(--primary-dark); 
  color: #cfe0ea; 
}

.footer-brand { 
  color: #fff; 
  font-family: var(--font-heading); 
}

.footer-heading { 
  color: #fff; 
  font-weight: 700; 
  margin-bottom: 18px; 
}

.footer-links { 
  list-style: none; 
  padding: 0; 
}

.footer-links li { 
  margin-bottom: 10px; 
}

.footer-links a { 
  color: #cfe0ea; 
}

.footer-links a:hover { 
  color: var(--secondary); 
  padding-left: 5px; 
}

.footer-contact { 
  list-style: none; 
  padding: 0; 
}

.footer-contact li { 
  margin-bottom: 12px; 
  color: #cfe0ea; 
}

.footer-contact i { 
  color: var(--secondary); 
  margin-right: 8px; 
}

.footer-social a {
  display: inline-flex;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-right: 8px;
  transition: var(--transition);
}

.footer-social a:hover { 
  background: var(--secondary); 
  color: var(--primary-dark); 
}

.footer-bottom { 
  background: rgba(0,0,0,.2); 
  color: #a9c1cf; 
}

.footer-bottom a { 
  color: #a9c1cf; 
}

.footer-bottom a:hover { 
  color: var(--secondary); 
}

@media (max-width: 768px) {
  .footer-social {
    justify-content: center;
  }
  .footer-contact li {
    justify-content: center;
  }
  .footer-bottom .container {
    text-align: center;
  }
}

/* ===================== FLOATING BUTTONS ===================== */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 999;
  background: #25D366;
  color: #fff;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
  transition: var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  color: #fff;
}

.back-to-top {
  position: fixed;
  bottom: 90px;
  right: 25px;
  z-index: 999;
  background: var(--primary);
  color: #fff;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
  transition: var(--transition);
}

.back-to-top.show { 
  display: flex; 
}

.back-to-top:hover {
  background: var(--secondary);
  color: var(--primary-dark);
  transform: translateY(-3px);
}

@media (max-width: 576px) {
  .whatsapp-float {
    width: 48px;
    height: 48px;
    font-size: 1.3rem;
    bottom: 15px;
    right: 15px;
  }
  .back-to-top {
    width: 38px;
    height: 38px;
    bottom: 75px;
    right: 15px;
    font-size: .9rem;
  }
}

/* ===================== FORMS ===================== */
.form-control, .form-select {
  border-radius: 10px;
  padding: 12px 16px;
  border: 1px solid #dfe4e8;
  width: 100%;
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(11,60,93,.12);
  outline: none;
}

.form-label { 
  font-weight: 600; 
  color: var(--dark); 
}

/* ===================== MISC ===================== */
.badge-mining { 
  background: rgba(30,142,90,.12); 
  color: var(--accent); 
  font-weight: 700; 
}

.divider-gold { 
  width: 60px; 
  height: 3px; 
  background: var(--secondary); 
  margin: 15px 0; 
}

.partner-logo { 
  max-height: 55px; 
  filter: grayscale(100%); 
  opacity: .7; 
  transition: var(--transition); 
}

.partner-logo:hover { 
  filter: none; 
  opacity: 1; 
}

.map-wrapper { 
  border-radius: var(--radius); 
  overflow: hidden; 
  box-shadow: var(--shadow-soft); 
}

.error-404 { 
  font-size: 8rem; 
  font-weight: 800; 
  color: var(--primary); 
  line-height: 1; 
}

/* ===================== RESPONSIVE HELPERS ===================== */
@media (max-width: 991px) {
  .section-title {
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  .section-title {
    font-size: 1.5rem;
  }
  .section-tag {
    font-size: .7rem;
  }
}

@media (max-width: 576px) {
  .section-title {
    font-size: 1.3rem;
  }
  .text-center-mobile {
    text-align: center !important;
  }
  .d-flex-mobile-column {
    flex-direction: column !important;
  }
}

/* ===================== SCROLLBAR STYLING ===================== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}