/* ===========================================
   AQUAMINE DRILLING LIMITED - MAIN STYLESHEET
   Professional Responsive Design
   Version: 4.2 - Mobile Bug Fixed
   =========================================== */

/* CSS Variables - Design System */
:root {
  /* Color Palette */
  --background-color: #ffffff;
  --default-color: #394450;
  --heading-color: #223a58;
  --accent-color: #136ad5;
  --surface-color: #ffffff;
  --contrast-color: #ffffff;
  
  /* Navigation Colors */
  --nav-color: rgba(255, 255, 255, 0.7);
  --nav-hover-color: #ffffff;
  --nav-mobile-bg: #ffffff;
  --nav-dropdown-bg: #ffffff;
  --nav-dropdown-color: #394450;
  --nav-dropdown-hover: #136ad5;
  
  /* Spacing */
  --section-padding: 5rem 0;
  --card-padding: 2rem;
  --border-radius: 0.5rem;
  --box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  
  /* Typography */
  --font-body: 'Roboto', sans-serif;
  --font-heading: 'Raleway', sans-serif;
  --font-nav: 'Ubuntu', sans-serif;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--heading-color);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3.5rem;
}

h2 {
  font-size: 2.5rem;
  position: relative;
  padding-bottom: 15px;
}

h2:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--accent-color);
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.25rem;
}

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

a:hover {
  color: var(--nav-dropdown-hover);
}

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

section {
  padding: var(--section-padding);
}

.container {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

/* Desktop Container Widths */
@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

/* Utility Classes */
.text-center { text-align: center; }
.mb-20 { margin-bottom: 20px; }
.mt-40 { margin-top: 40px; }
.mb-40 { margin-bottom: 40px; }
.py-6 { padding-top: 5rem; padding-bottom: 5rem; }
.min-vh-80 { min-height: 80vh; }
.hover-lift { transition: transform 0.3s ease; }
.hover-lift:hover { transform: translateY(-10px); }
.bg-gradient { background: linear-gradient(135deg, #136ad5 0%, #0d5bb5 100%); }

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header .section-title {
  margin-bottom: 1rem;
}

.section-header .lead {
  font-size: 1.25rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition);
  border: 2px solid transparent;
  cursor: pointer;
  font-family: var(--font-heading);
}

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

.btn-primary:hover {
  background-color: transparent;
  color: var(--accent-color);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(19, 106, 213, 0.2);
}

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

.btn-outline-primary:hover {
  background-color: var(--accent-color);
  color: var(--contrast-color);
  transform: translateY(-3px);
}

.btn-outline-light {
  background-color: transparent;
  color: var(--contrast-color);
  border-color: var(--contrast-color);
}

.btn-outline-light:hover {
  background-color: var(--contrast-color);
  color: var(--accent-color);
}

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

.btn-link {
  background: transparent;
  border: none;
  color: var(--accent-color);
  padding: 0;
  font-weight: 600;
}

.btn-link:hover {
  color: var(--nav-dropdown-hover);
  transform: translateX(5px);
}

/* Cards */
.card {
  border: none;
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--box-shadow);
  height: 100%;
}

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

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

.card-body {
  padding: var(--card-padding);
}

.card-title {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--heading-color);
}

/* Header Styles - MOBILE OPTIMIZED */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.98);
  z-index: 1030;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
  backdrop-filter: blur(10px);
  min-height: 76px;
  display: flex;
  align-items: center;
}

.header.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.navbar {
  width: 100%;
  min-height: 76px;
  display: flex;
  align-items: center;
}

.navbar-brand {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--heading-color);
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  margin: 0;
}

.navbar-brand .brand-logo {
  color: var(--heading-color);
  font-size: 1.5rem;
}

.navbar-brand .brand-tagline {
  font-size: 0.7rem;
  color: var(--accent-color);
  font-weight: 400;
}

.navbar-nav .nav-link {
  font-family: var(--font-nav);
  font-weight: 500;
  color: var(--default-color);
  padding: 0.5rem 1rem;
  margin: 0 0.2rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--accent-color);
}

.navbar-toggler {
  border: none;
  padding: 0.5rem;
  font-size: 1.2rem;
}

.navbar-toggler:focus {
  box-shadow: none;
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

/* Skip to Content (Accessibility) */
.skip-to-content {
  position: absolute;
  top: -60px;
  left: 10px;
  background: var(--accent-color);
  color: white;
  padding: 12px 20px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  z-index: 9999;
  transition: top 0.3s ease;
}

.skip-to-content:focus {
  top: 10px;
  outline: 3px solid var(--accent-color);
  outline-offset: 2px;
}

/* Hero Section - Homepage */
.hero-section {
  position: relative;
  min-height: 85vh;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
              url('../assets/images/hero-bg-optimized.jpg') center/cover no-repeat;
  color: var(--contrast-color);
  display: flex;
  align-items: center;
  text-align: center;
  padding-top: 76px;
  margin-top: 0;
}

.hero-section h1 {
  color: var(--contrast-color);
  font-size: 3rem;
  margin-bottom: 20px;
}

.hero-section .lead {
  font-size: 1.25rem;
  margin-bottom: 40px;
  opacity: 0.9;
}

.hero-actions {
  margin-top: 30px;
}

.hero-actions .btn {
  margin: 0 10px;
}

/* Stats Counter - Homepage */
.stats-counter {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
  text-align: center;
  padding: 20px;
}

.stat-icon {
  margin-bottom: 1rem;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--contrast-color);
  display: block;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

/* Page Hero - About, Services, Projects, Contact */
.page-hero,
.contact-hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
              url('../assets/images/page-hero-optimized.jpg') center/cover no-repeat;
  color: white;
  padding-top: 76px;
}

.about-hero {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
              url('../assets/images/about-hero-optimized.jpg') center/cover no-repeat;
}

.services-hero {
  background: linear-gradient(rgba(19, 106, 213, 0.9), rgba(34, 58, 88, 0.9)), 
              url('../assets/images/services-hero-optimized.jpg') center/cover no-repeat;
}

.projects-hero {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
              url('../assets/images/projects-hero-optimized.jpg') center/cover no-repeat;
}

/* Services Section - Homepage */
.services-section {
  background: var(--surface-color);
}

.service-card {
  text-align: center;
  height: 100%;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-10px);
}

.service-icon-wrapper {
  margin-bottom: 1.5rem;
}

.service-icon {
  width: 80px;
  height: 80px;
  background: var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

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

/* Why Choose Us - Homepage */
.why-choose-section {
  background: #f8f9fa;
}

.feature-card {
  text-align: center;
  height: 100%;
}

.feature-icon-wrapper {
  margin-bottom: 1.5rem;
}

.feature-icon {
  width: 100px;
  height: 100px;
  background: var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.feature-icon i {
  font-size: 2.5rem;
  color: var(--contrast-color);
}

/* CTA Sections */
.cta-section {
  background: linear-gradient(rgba(19, 106, 213, 0.9), rgba(34, 58, 88, 0.9)), 
              url('../assets/images/cta-bg-optimized.jpg') center/cover no-repeat;
  color: white;
}

.cta-services {
  background: linear-gradient(135deg, var(--heading-color), #111);
}

.cta-projects {
  background: linear-gradient(135deg, var(--accent-color), var(--heading-color));
}

/* About Page Styles */
.about-tabs .nav-pills .nav-link {
  background: white;
  color: var(--default-color);
  border: 2px solid #e0e0e0;
  border-radius: 30px;
  margin: 0 5px 10px;
  padding: 10px 25px;
  font-weight: 500;
  transition: var(--transition);
}

.about-tabs .nav-pills .nav-link.active {
  background: var(--accent-color);
  color: white;
  border-color: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(19, 106, 213, 0.2);
}

.certification-item {
  text-align: center;
  padding: 1.5rem;
  border: 1px solid #e0e0e0;
  border-radius: var(--border-radius);
  height: 100%;
  transition: var(--transition);
}

.certification-item:hover {
  border-color: var(--accent-color);
  transform: translateY(-5px);
}

.certification-item i {
  color: var(--accent-color);
  margin-bottom: 1rem;
}

/* Team Section - About Page */
.team-card {
  text-align: center;
  height: 100%;
}

.team-img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.5rem;
  border: 5px solid var(--surface-color);
  box-shadow: var(--box-shadow);
}

.team-credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin: 1rem 0;
}

.team-specialties .badge {
  background: rgba(19, 106, 213, 0.1);
  color: var(--accent-color);
  border: 1px solid rgba(19, 106, 213, 0.2);
}

/* Equipment Section - About Page */
.equipment-card {
  text-align: center;
  height: 100%;
  transition: var(--transition);
}

.equipment-card:hover {
  transform: translateY(-5px);
}

.equipment-card i {
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.specs {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Values Section - About Page */
.value-item {
  margin-bottom: 1.5rem;
}

.value-icon {
  flex-shrink: 0;
}

.value-icon i {
  color: var(--accent-color);
}

.mission-vision-item {
  padding: 2rem;
  border-radius: var(--border-radius);
  margin-bottom: 1.5rem;
}

/* Services Page Styles */
.service-category {
  margin: 3rem 0;
}

.category-header {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #f0f0f0;
}

.category-icon {
  width: 70px;
  height: 70px;
  background: var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
  flex-shrink: 0;
}

.category-icon i {
  color: white;
  font-size: 2rem;
}

.category-title {
  flex: 1;
}

.category-title h2 {
  margin-bottom: 0.5rem;
}

.category-title p {
  color: #666;
  margin: 0;
}

/* Service Cards Grid - Services Page */
.service-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.service-card-detailed {
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  height: 100%;
}

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

.service-card-header {
  padding: 2rem 2rem 0;
}

.service-card-icon {
  width: 60px;
  height: 60px;
  background: var(--accent-color);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.service-card-icon i {
  color: white;
  font-size: 1.8rem;
}

.service-card-body {
  padding: 0 2rem 2rem;
}

.service-features {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.service-features li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
}

.service-features li:last-child {
  border-bottom: none;
}

.service-features li i {
  color: var(--accent-color);
  margin-right: 0.5rem;
  font-size: 0.9rem;
}

.service-timeline {
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 8px;
  margin: 1.5rem 0;
}

.timeline-item {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-color);
  border-radius: 50%;
  margin-right: 0.5rem;
}

/* Comparison Table - Services Page */
.comparison-table {
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  margin: 2rem 0;
}

.comparison-header {
  background: var(--heading-color);
  color: white;
  padding: 1.5rem 2rem;
}

.comparison-body {
  padding: 2rem;
}

.comparison-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 1.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid #f0f0f0;
  align-items: center;
}

.comparison-row:last-child {
  border-bottom: none;
}

.comparison-label {
  font-weight: 600;
  color: var(--heading-color);
}

.comparison-value {
  text-align: center;
}

.check-icon {
  color: #4CAF50;
}

.times-icon {
  color: #F44336;
}

/* Service Process - Services Page */
.service-process-container {
  position: relative;
  padding-left: 2rem;
}

.service-process-container:before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent-color);
}

.process-step {
  position: relative;
  margin-bottom: 2.5rem;
}

.process-step:before {
  content: '';
  position: absolute;
  left: -35px;
  top: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-color);
  border: 3px solid white;
  box-shadow: 0 0 0 3px var(--accent-color);
}

.process-content {
  background: white;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.process-duration {
  display: inline-block;
  background: var(--accent-color);
  color: white;
  padding: 0.25rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

/* Why Choose Grid - Services Page */
.why-choose-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 2.5rem 0;
}

.why-choose-item {
  text-align: center;
  padding: 2rem 1.5rem;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

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

.why-choose-icon {
  width: 70px;
  height: 70px;
  background: rgba(19, 106, 213, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.why-choose-icon i {
  color: var(--accent-color);
  font-size: 2rem;
}

/* Service Packages - Services Page */
.package-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2.5rem 0;
}

.package-card {
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  position: relative;
}

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

.package-header {
  padding: 2rem;
  text-align: center;
  color: white;
}

.package-basic .package-header {
  background: linear-gradient(135deg, #4CAF50, #8BC34A);
}

.package-standard .package-header {
  background: linear-gradient(135deg, #2196F3, #03A9F4);
}

.package-premium .package-header {
  background: linear-gradient(135deg, #FF9800, #FF5722);
}

.package-popular {
  position: absolute;
  top: -10px;
  right: -10px;
  background: #F44336;
  color: white;
  padding: 0.25rem 1.5rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  transform: rotate(15deg);
}

.package-price {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 0.5rem 0;
}

.package-period {
  font-size: 0.9rem;
  opacity: 0.9;
}

.package-body {
  padding: 2rem;
}

.package-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}

.package-features li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
}

.package-features li:last-child {
  border-bottom: none;
}

.package-features li i {
  margin-right: 0.5rem;
  font-size: 0.9rem;
}

.check-feature {
  color: #4CAF50;
}

.times-feature {
  color: #9E9E9E;
}

/* Projects Page Styles */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

.project-item {
  transition: all 0.4s ease;
}

.project-filter {
  margin-bottom: 3rem;
}

.filter-btn {
  padding: 0.75rem 1.5rem;
  margin: 0 0.5rem 0.5rem;
  border: 2px solid #e0e0e0;
  background: white;
  color: var(--default-color);
  border-radius: 30px;
  transition: var(--transition);
  font-weight: 500;
  cursor: pointer;
  font-family: var(--font-body);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--accent-color);
  color: white;
  border-color: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(19, 106, 213, 0.2);
}

.project-card {
  height: 100%;
  overflow: hidden;
  transition: var(--transition);
}

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

.project-img-container {
  position: relative;
  overflow: hidden;
  height: 250px;
}

.img-placeholder {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 1.2rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.placeholder-text {
  text-align: center;
  padding: 20px;
}

.category-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1rem 0;
  padding: 1rem 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.meta-item i {
  color: var(--accent-color);
  font-size: 1rem;
}

.project-services {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.service-tag {
  background: rgba(19, 106, 213, 0.1);
  color: var(--accent-color);
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.85rem;
  font-weight: 500;
}

/* Timeline - Projects Page */
.timeline {
  position: relative;
  padding-left: 2.5rem;
}

.timeline:before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent-color);
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}

.timeline-item:before {
  content: '';
  position: absolute;
  left: -33px;
  top: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-color);
  border: 4px solid white;
  box-shadow: 0 0 0 3px var(--accent-color);
}

.timeline-content {
  background: white;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.timeline-date {
  display: inline-block;
  background: var(--accent-color);
  color: white;
  padding: 0.25rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

/* Footer */
.footer {
  background: var(--heading-color);
  color: var(--contrast-color);
  padding: 3rem 0 1.5rem;
}

.footer h3,
.footer h4 {
  color: var(--contrast-color);
}

.footer-brand {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.footer-tagline {
  color: var(--accent-color);
  font-weight: 500;
  margin-bottom: 1rem;
}

.footer-description {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.5rem;
}

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

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
}

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

.footer-contact .contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.footer-contact .contact-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  flex-shrink: 0;
}

.footer-contact .contact-icon i {
  color: var(--contrast-color);
  font-size: 1rem;
}

.footer-contact .contact-details h5 {
  color: var(--contrast-color);
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.footer-contact .contact-details p,
.footer-contact .contact-details address {
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  font-style: normal;
  line-height: 1.5;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.footer-contact a:hover {
  color: var(--accent-color);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--contrast-color);
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--accent-color);
  transform: translateY(-3px);
}

.certifications {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.certifications .badge {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.35rem 0.75rem;
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.legal-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: var(--transition);
}

.legal-links a:hover {
  color: var(--accent-color);
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--accent-color);
  color: var(--contrast-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  border: none;
  cursor: pointer;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--heading-color);
  transform: translateY(-5px);
}

/* Focus Styles for Accessibility */
.btn:focus,
.nav-link:focus,
.filter-btn:focus,
.form-control:focus {
  outline: 3px solid var(--accent-color);
  outline-offset: 3px;
}

/* ===========================================
   TABLET AND MOBILE (992px and below)
   =========================================== */

@media (max-width: 992px) {
  html {
    font-size: 15px;
  }
  
  section {
    padding: 4rem 0;
  }
  
  .py-6 {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
}

/* ===========================================
   MOBILE (768px and below) - CRITICAL FIXES
   =========================================== */

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  h3 {
    font-size: 1.5rem;
  }
  
  /* Header adjustments for mobile */
  .header {
    min-height: 60px;
    max-height: 60px;
  }
  
  .navbar {
    min-height: 60px;
    max-height: 60px;
    padding: 0.5rem 0;
  }
  
  .navbar-brand {
    font-size: 1.2rem;
  }
  
  .navbar-brand .brand-logo {
    font-size: 1.2rem;
  }
  
  .navbar-brand .brand-tagline {
    font-size: 0.6rem;
  }
  
  /* ===========================================
     MOBILE NAVIGATION MENU FIX - NO BUGS
     =========================================== */
  
  /* Override Bootstrap completely for mobile menu */
  #mainNavbar.navbar-collapse {
    position: fixed !important;
    top: 60px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    background: white !important;
    padding: 20px !important;
    border-radius: 0 0 10px 10px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
    max-height: calc(100vh - 60px) !important;
    overflow-y: auto !important;
    z-index: 1050 !important;
    transform: none !important;
    transition: none !important;
  }
  
  /* Fix Bootstrap's collapsing behavior */
  #mainNavbar.navbar-collapse.collapsing {
    height: auto !important;
    transition: none !important;
  }
  
  /* Ensure proper show/hide */
  #mainNavbar.navbar-collapse:not(.show) {
    display: none !important;
  }
  
  #mainNavbar.navbar-collapse.show {
    display: block !important;
  }
  
  /* Menu items */
  .navbar-nav {
    padding: 0.5rem 0;
    width: 100% !important;
    margin: 0 !important;
  }
  
  .navbar-nav .nav-item {
    margin: 0;
    width: 100% !important;
  }
  
  .navbar-nav .nav-link {
    padding: 12px 15px !important;
    margin: 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    width: 100% !important;
    display: block !important;
  }
  
  .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }
  
  /* Dropdown fixes */
  .dropdown-menu {
    position: static !important;
    float: none !important;
    width: 100% !important;
    border: none !important;
    box-shadow: none !important;
    background: #f8f9fa !important;
    padding-left: 1rem !important;
  }
  
  .dropdown-item {
    padding: 10px 15px !important;
    border-bottom: 1px solid rgba(0,0,0,0.05) !important;
  }
  
  .dropdown-item:last-child {
    border-bottom: none !important;
  }
  
  /* Get Quote button fix */
  .navbar .btn-primary {
    margin-top: 15px;
    width: 100%;
    display: block;
    text-align: center;
  }
  
  /* Hero section adjustments */
  .hero-section {
    min-height: 60vh;
    padding-top: 60px;
  }
  
  .hero-section h1 {
    font-size: 2rem;
    line-height: 1.2;
  }
  
  .hero-section .lead {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
  
  .page-hero,
  .contact-hero {
    min-height: 40vh;
    padding-top: 60px;
  }
  
  /* Hero buttons full width */
  .hero-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
  }
  
  .hero-actions .btn {
    margin: 0;
    width: 100%;
  }
  
  /* Stats counter */
  .stats-counter {
    margin-top: 2rem;
    padding-top: 2rem;
  }
  
  .stats-counter .col-6 {
    margin-bottom: 1.5rem;
  }
  
  .stat-number {
    font-size: 1.8rem;
  }
  
  /* Grid adjustments */
  .service-cards-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .project-grid {
    grid-template-columns: 1fr;
  }
  
  .why-choose-grid,
  .package-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  /* Category header */
  .category-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .category-icon {
    margin-right: 0;
  }
  
  /* Comparison table */
  .comparison-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 1rem;
  }
  
  /* Footer */
  .footer > .container > .row > div {
    margin-bottom: 2rem;
  }
  
  .social-links {
    justify-content: center;
  }
  
  /* Back to top button */
  .back-to-top {
    width: 45px;
    height: 45px;
    bottom: 1.5rem;
    right: 1.5rem;
  }
}

/* ===========================================
   SMALL PHONES (576px and below)
   =========================================== */

@media (max-width: 576px) {
  .header {
    min-height: 55px;
    max-height: 55px;
  }
  
  .navbar {
    min-height: 55px;
    max-height: 55px;
  }
  
  #mainNavbar.navbar-collapse {
    top: 55px !important;
    max-height: calc(100vh - 55px) !important;
  }
  
  .hero-section {
    min-height: 55vh;
    padding-top: 55px;
  }
  
  .hero-section h1 {
    font-size: 1.8rem;
  }
  
  .page-hero,
  .contact-hero {
    min-height: 35vh;
    padding-top: 55px;
  }
  
  .stat-number {
    font-size: 1.5rem;
  }
  
  .btn-lg {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  /* Prevent horizontal scroll */
  body, html {
    overflow-x: hidden !important;
  }
  
  .container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  
  .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  
  [class*="col-"] {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }
}

/* ===========================================
   TABLET ONLY (768px to 992px)
   =========================================== */

@media (min-width: 768px) and (max-width: 992px) {
  .service-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hero-actions .btn {
    padding: 0.75rem 1.5rem;
  }
}

/* ===========================================
   PRINT STYLES
   =========================================== */

@media print {
  .header,
  .footer,
  .back-to-top,
  .btn,
  .filter-btn {
    display: none;
  }
  
  body {
    font-size: 12pt;
    color: #000;
  }
  
  .container {
    width: 100%;
    max-width: none;
  }
  
  a {
    color: #000;
    text-decoration: underline;
  }
  
  .card {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}