/* ============================================
   BLACK SQUARE SYSTEMS LTD - PROFESSIONAL & TASTEFUL
   ============================================ */

/* CSS Variables */
:root {
  --primary: #0d6efd;
  --primary-dark: #0a58ca;
  --primary-light: #3d8bfd;
  --primary-glow: rgba(13, 110, 253, 0.3);
  --dark: #020617;
  --dark-soft: #111827;
  --gray-soft: #f3f4f6;
  --text-primary: #f9fafb;
  --text-secondary: #e5e7eb;
  --text-muted: #6b7280;
  --text-dark: #1f2937;
  --border-color: rgba(255, 255, 255, 0.1);
  --border-gradient: linear-gradient(135deg, rgba(13, 110, 253, 0.3), rgba(13, 110, 253, 0.1));
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  --gradient-dark: linear-gradient(135deg, var(--dark) 0%, var(--dark-soft) 100%);
  --gradient-border: linear-gradient(135deg, rgba(13, 110, 253, 0.4), rgba(13, 110, 253, 0.2));
  --gradient-border-vibrant: linear-gradient(135deg, #0d6efd, #3d8bfd);
  --site-gradient: linear-gradient(135deg, #81c47b, #3858af);
}

/* Base Styles */
* {
  box-sizing: border-box;
}

body {
  scroll-behavior: smooth;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.7;
  color: var(--text-dark);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-size: 16px;
  transition: opacity 0.3s ease-out;
  background: var(--site-gradient);
  min-height: 100vh;
}

/* Typography - Improved Legibility */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--text-dark);
}

p {
  line-height: 1.7;
  color: var(--text-dark);
}

.text-muted {
  color: var(--text-muted) !important;
  line-height: 1.6;
}

/* Navbar - Clean & Professional */
.navbar {
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  background-color: rgba(2, 6, 23, 0.7) !important;
  transition: var(--transition);
  padding: 0.5rem 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  width: 100%;
}

.navbar::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(13, 110, 253, 0.3), transparent);
  opacity: 0.5;
}

.navbar.scrolled {
  padding: 0.25rem 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  background-color: rgba(2, 6, 23, 0.85) !important;
}

.navbar-brand {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--text-primary) !important;
  transition: var(--transition);
  display: flex;
  align-items: center;
}

.navbar-brand img {
  height: 90px;
  width: auto;
}

.navbar-brand:hover {
  opacity: 0.9;
}

.navbar-brand span {
  font-size: 1.4rem;
  display: inline-block;
  margin-right: 0.5rem;
}

.nav-link {
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  position: relative;
  transition: var(--transition);
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: 0.95rem;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: var(--transition);
  transform: translateX(-50%);
  border-radius: 2px;
}

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

.nav-link:hover::after,
.nav-link.active::after {
  width: 70%;
}

.nav-link.active {
  color: var(--text-primary) !important;
  font-weight: 600;
}

.nav-link.active::after {
  width: 70%;
}

/* Hero Section - Premium & Modern */
.hero {
  min-height: 90vh;
  /* Taller for more impact */
  background-color: var(--dark);
  /* Fallback */
  background-image: url('../images/hero-tech-infrastructure.jpg');
  background-size: cover;
  background-position: center;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 100px;
  padding-bottom: 5rem;
}

/* Dynamic dark gradient background overlay (adjusted opacity for image visibility) */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 15% 50%, rgba(13, 110, 253, 0.2) 0%, transparent 40%),
    radial-gradient(circle at 85% 30%, rgba(10, 88, 202, 0.15) 0%, transparent 40%),
    linear-gradient(135deg, rgba(2, 6, 23, 0.92) 0%, rgba(2, 6, 23, 0.8) 100%);
  z-index: 1;
}

/* Subtle overlay mesh pattern */
.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: 0 0, 20px 20px;
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
}

/* Glassmorphism Card (Form) */
.glass-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.glass-shine {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(105deg, transparent 20%, rgba(255, 255, 255, 0.02) 25%, transparent 30%);
  pointer-events: none;
}

/* Glass inputs */
.form-control-glass,
.form-select-glass {
  background-color: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
  transition: all 0.3s ease;
}

.form-control-glass:focus,
.form-select-glass:focus {
  background-color: rgba(255, 255, 255, 0.1) !important;
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.15) !important;
}

.form-control-glass::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

/* Fix for invisible dropdown options */
.form-select option {
  color: var(--text-dark);
  background-color: #fff;
}

/* Typography Enhancements */
.hero-title {
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.text-gradient-primary {
  background: linear-gradient(135deg, #60a5fa 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

.text-light-50 {
  color: rgba(255, 255, 255, 0.6) !important;
}

.ls-1 {
  letter-spacing: 1px;
}

/* Animations using pure CSS */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 30px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.fade-in-up {
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.delay-1 {
  animation-delay: 0.1s;
}

.delay-2 {
  animation-delay: 0.2s;
}

.delay-3 {
  animation-delay: 0.3s;
}

.delay-4 {
  animation-delay: 0.4s;
}

.delay-5 {
  animation-delay: 0.5s;
}

/* Badge style update */
.badge-glass {
  background: rgba(13, 110, 253, 0.15);
  border: 1px solid rgba(13, 110, 253, 0.3);
  backdrop-filter: blur(4px);
}

/* Button hover effects */
.hover-lift {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-4px);
}

.hover-glow:hover {
  box-shadow: 0 0 20px rgba(13, 110, 253, 0.6);
}

.shadow-2xl {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.section-title {
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin-bottom: 0.75rem;
  line-height: 1.3;
  color: var(--text-dark);
  letter-spacing: -0.02em;
}

/* Buttons - Professional */
.btn {
  transition: var(--transition);
  font-weight: 600;
  border-radius: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-size: 0.95rem;
  letter-spacing: 0.2px;
}

.btn-primary {
  background: var(--gradient-primary);
  border: none;
  box-shadow: 0 2px 8px rgba(13, 110, 253, 0.25);
  color: #ffffff;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.35);
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
}

.btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.8);
  background: transparent;
  color: #ffffff;
  font-weight: 600;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #ffffff;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

/* Icon Circles - Subtle */
.icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-dark);
  color: var(--text-primary);
  font-size: 1.3rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.icon-circle:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  background: var(--gradient-primary);
  border-color: rgba(13, 110, 253, 0.4);
}

/* Cards - With Gradient Borders */
.card {
  transition: var(--transition);
  border-radius: 0.75rem;
  overflow: hidden;
  position: relative;
  height: 100%;

  /* Gradient Border Setup (2px thick) */
  border: 2px solid transparent;
  background-image: linear-gradient(#ffffff, #ffffff), var(--gradient-border-vibrant);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow: var(--shadow-sm);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  /* Make gradient more vibrant on hover */
  background-image: linear-gradient(#ffffff, #ffffff), linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.card-body {
  padding: 2rem;
  position: relative;
}

/* Fix for dark cards */
.card.bg-dark {
  background-color: #212529 !important;
  color: #fff !important;
  /* Override the white background image from .card */
  background-image: linear-gradient(#212529, #212529), var(--gradient-border-vibrant);
}

.card.bg-dark:hover {
  background-image: linear-gradient(#212529, #212529), linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.card.bg-dark .card-title,
.card.bg-dark h1,
.card.bg-dark h2,
.card.bg-dark h3,
.card.bg-dark h4,
.card.bg-dark h5,
.card.bg-dark h6 {
  color: #fff !important;
}

.card.bg-dark .text-muted {
  color: rgba(255, 255, 255, 0.7) !important;
}

.card.bg-dark .form-label {
  color: rgba(255, 255, 255, 0.9);
}

.card.bg-dark .form-control,
.card.bg-dark .form-select {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.card.bg-dark .form-control::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.card.bg-dark .form-control:focus,
.card.bg-dark .form-select:focus {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: var(--primary);
  color: #fff;
}


.card-title {
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
  font-size: 1.25rem;
  line-height: 1.3;
}

.card-text {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.card ul {
  margin-top: 0.5rem;
  padding-left: 1.25rem;
}

.card ul li {
  margin-bottom: 0.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  position: relative;
}

.card ul li::marker {
  color: var(--primary);
}

/* Background Utilities */
.bg-soft-dark {
  background: var(--gradient-dark) !important;
}

.bg-soft-gray {
  background-color: var(--gray-soft);
}

/* Stats Section - Premium Redesign */
.icon-square {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.image-stack-1 {
  transition: transform 0.5s ease;
}

.image-stack-1:hover {
  transform: translateY(-5px);
}

.stats-float-card {
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  min-width: 200px;
}

.stats-float-card:hover {
  transform: translateY(-5px) scale(1.02) !important;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15) !important;
  z-index: 10 !important;
}

.fw-bold.fs-4 {
  color: var(--primary);
  font-weight: 700;
  font-size: 2rem;
  line-height: 1.2;
}

/* Dots pattern animation */
@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

#dots circle {
  fill: currentColor;
}

/* Logo Grid */
.logo-grid {
  padding: 2rem 0;
}

.logo-grid img {
  height: 120px;
  width: 100%;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: var(--transition);
  padding: 1rem;
}

.logo-grid img:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}

/* Forms - Professional */
.form-control,
.form-select {
  border-radius: 0.5rem;
  border: 1px solid #d1d5db;
  transition: var(--transition);
  padding: 0.625rem 0.875rem;
  background: #ffffff;
  font-size: 0.95rem;
  line-height: 1.5;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
  outline: none;
}

.form-label {
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  letter-spacing: 0.2px;
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

/* Sections - Well Spaced & Aligned */
section {
  position: relative;
  padding: 5rem 0;
}

section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-width: 1200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.08), transparent);
}

section:nth-child(even) {
  background: var(--gray-soft);
}

section:nth-child(even)::before {
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.05), transparent);
}

/* Container Alignment */
.container {
  max-width: 1200px;
}

/* Text Alignment */
.text-center {
  text-align: center;
}

.text-center p {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Process Section */
.badge.bg-dark {
  background: var(--gradient-dark) !important;
  padding: 0.5rem 0.875rem;
  font-weight: 700;
  font-size: 0.875rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.border.rounded-4:hover .badge.bg-dark {
  background: var(--gradient-primary) !important;
  transform: scale(1.05);
}

/* Contact Section */
#contact {
  background: var(--gradient-dark);
  position: relative;
  padding: 6rem 0;
}

#contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(13, 110, 253, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(13, 110, 253, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

#contact .card {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

#contact .card::before {
  background: var(--gradient-border);
}

#contact .section-title {
  color: var(--text-primary);
}

/* Footer */
.footer-elaborate {
  background: var(--gradient-dark) !important;
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.footer-elaborate::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
  opacity: 0.6;
}

.footer-brand {
  position: relative;
  z-index: 1;
}

.footer-brand img {
  height: 90px;
  width: auto;
}

.footer-logo {
  font-size: 1.75rem;
  display: inline-block;
  margin-right: 0.5rem;
}

.footer-brand h5 {
  color: var(--text-primary);
  font-size: 1.4rem;
  letter-spacing: -0.3px;
  margin-bottom: 1rem;
}

.footer-contact-info {
  margin-top: 1.5rem;
}

.footer-contact-info i {
  font-size: 1rem;
  width: 20px;
  text-align: center;
  color: var(--primary);
}

.footer-contact-info a {
  transition: var(--transition);
  color: var(--text-secondary);
}

.footer-contact-info a:hover {
  color: var(--primary) !important;
}

.footer-heading {
  color: var(--text-primary);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.footer-links {
  position: relative;
  z-index: 1;
}

.footer-links a {
  text-decoration: none;
  transition: var(--transition);
  color: var(--text-muted);
  display: inline-block;
  padding: 0.25rem 0;
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-links a:hover {
  color: var(--primary) !important;
  transform: translateX(3px);
}

.footer-cta .btn {
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.footer-social {
  position: relative;
  z-index: 1;
}

.social-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
  font-size: 1.1rem;
}

.social-icon:hover {
  color: var(--text-primary);
  border-color: var(--primary);
  background: rgba(13, 110, 253, 0.1);
  transform: translateY(-2px);
}

.footer-bottom {
  position: relative;
  z-index: 1;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-legal a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.875rem;
}

.footer-legal a:hover {
  color: var(--primary) !important;
}

.footer-certifications {
  padding-top: 1rem;
  margin-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-certifications span {
  display: inline-flex;
  align-items: center;
  transition: var(--transition);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  margin-right: 0.75rem;
  margin-bottom: 0.5rem;
}

.footer-certifications i {
  color: var(--primary);
  font-size: 0.9rem;
  margin-right: 0.5rem;
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background: var(--gradient-primary);
  border: none;
  border-radius: 50%;
  color: #ffffff;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 1000;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* Animations - Subtle */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Consistent spacing and styling across all pages */
section:first-of-type {
  padding-top: 0;
}

/* Enhanced card hover effects */
.card {
  transition: var(--transition);
  border-radius: 0.75rem;
}

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

/* Consistent form focus states */
.form-control:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

/* Selection */
::selection {
  background: var(--primary);
  color: #ffffff;
}

::-moz-selection {
  background: var(--primary);
  color: #ffffff;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

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

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

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

/* Smooth Scrolling */
html {
  scroll-padding-top: 80px;
  scroll-behavior: smooth;
}

/* Smooth link transitions */
a {
  transition: color 0.2s ease, opacity 0.2s ease;
  text-decoration: none;
}

a:hover {
  opacity: 0.85;
}

a:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Focus States */
*:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: 5rem 0 3rem;
    background-attachment: scroll;
  }

  .hero-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  section {
    padding: 3.5rem 0;
  }

  .card-body {
    padding: 1.5rem;
  }

  .icon-circle {
    width: 48px;
    height: 48px;
    font-size: 1.1rem;
  }

  .footer-elaborate {
    padding: 3rem 0 1.5rem;
  }

  .back-to-top {
    width: 44px;
    height: 44px;
    bottom: 1.5rem;
    right: 1.5rem;
    font-size: 1.1rem;
  }
}

@media (max-width: 576px) {
  .hero {
    padding: 4rem 0 2.5rem;
  }

  .btn-lg {
    padding: 0.625rem 1.25rem;
    font-size: 0.9rem;
  }

  .card-body {
    padding: 1.25rem;
  }

  .footer-certifications span {
    width: 100%;
    margin-right: 0;
  }
}

/* ============================================
   IMAGES - RESPONSIVE & PROFESSIONAL
   ============================================ */

/* Hero Image */
.hero-image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.15);
  background: rgba(2, 6, 23, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: var(--transition);
  display: block;
  border-radius: 0.75rem;
}

.hero-image:hover {
  transform: scale(1.03);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.5);
}

/* About Image */
.about-image-wrapper {
  position: relative;
}

.about-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  max-height: 400px;
  transition: var(--transition);
}

.about-image:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* Stats Image */
.stats-image-wrapper {
  position: relative;
}

.stats-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  max-height: 300px;
  transition: var(--transition);
}

.stats-image:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* Service Images */
.service-image-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: var(--gradient-dark);
}

.service-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
  opacity: 0.9;
}

.card:hover .service-image {
  transform: scale(1.1);
  opacity: 1;
}

/* Industry Images */
.industry-card {
  transition: var(--transition);
}

.industry-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  max-height: 200px;
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.industry-card:hover .industry-image {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

/* Project/Case Study Images */
.project-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: var(--transition);
}

.border.rounded-4:hover .project-image {
  transform: scale(1.05);
}

/* Process Images */
.process-image {
  width: 100%;
  height: 150px;
  object-fit: cover;
  transition: var(--transition);
}

.border.rounded-4:hover .process-image {
  transform: scale(1.05);
}

/* Contact Image */
.contact-image-wrapper {
  position: relative;
}

.contact-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  max-height: 300px;
  transition: var(--transition);
}

.contact-image:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* General Image Styles */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

/* Image Loading States */
img {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

img[src] {
  background: none;
  animation: none;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* Responsive Images */
@media (max-width: 768px) {
  .service-image-wrapper {
    height: 180px;
  }

  .project-image {
    height: 180px;
  }

  .process-image {
    height: 120px;
  }

  .industry-image {
    max-height: 180px;
  }

  .about-image,
  .stats-image,
  .contact-image {
    max-height: 250px;
  }
}

/* ============================================
   PAGE-SPECIFIC STYLES
   ============================================ */

/* Page Hero (for non-homepage pages) */
.page-hero {
  min-height: 50vh;
  background: var(--gradient-dark);
  background-image: url('../images/hero-tech-infrastructure.jpg');
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 100px;
  padding-bottom: 4rem;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    linear-gradient(135deg, rgba(2, 6, 23, 0.85) 0%, rgba(2, 6, 23, 0.75) 100%),
    radial-gradient(circle at 20% 50%, rgba(13, 110, 253, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(13, 110, 253, 0.1) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

/* Contact Info Styles */
.contact-info .icon-circle {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.contact-info h5 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--text-dark);
}

.contact-info a {
  color: var(--primary);
  transition: var(--transition);
}

.contact-info a:hover {
  color: var(--primary-dark);
  text-decoration: underline !important;
}

/* Map Placeholder */
.map-placeholder {
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}

/* Project Cards */
.project-image {
  height: 220px;
  object-fit: cover;
  transition: var(--transition);
}

.card:hover .project-image {
  transform: scale(1.05);
}

.card .badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.375rem 0.75rem;
}

/* Social Icons (for contact page) */
.social-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(13, 110, 253, 0.1);
  border: 1px solid rgba(13, 110, 253, 0.2);
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
  font-size: 1.2rem;
}

.social-icon:hover {
  background: var(--gradient-primary);
  border-color: var(--primary);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* Lead Text */
.lead {
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.6;
}

/* List Styles */
.list-unstyled li {
  margin-bottom: 0.75rem;
}

/* Badge Styles */
.badge {
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* Responsive Page Hero */
@media (max-width: 768px) {
  .page-hero {
    min-height: auto;
    padding: 5rem 0 2rem;
    background-attachment: scroll;
  }

  .page-title {
    font-size: 2rem;
  }

  .lead {
    font-size: 1rem;
  }

  .contact-info .icon-circle {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .project-image {
    height: 180px;
  }
}

/* Print Styles */
@media print {

  .navbar,
  footer,
  .btn,
  .back-to-top {
    display: none;
  }

  section {
    page-break-inside: avoid;
  }

  img {
    page-break-inside: avoid;
  }
}

/* Topbar Styles */
.topbar {
  background-color: rgba(2, 6, 23, 0.6);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  height: 40px;
  display: flex;
  align-items: center;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1040;
  font-size: 0.85rem;
}

.topbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.topbar-info,
.topbar-social {
  display: flex;
  align-items: center;
}

.topbar-info span {
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
}

.topbar-social a {
  color: rgba(255, 255, 255, 0.7);
  margin-left: 1rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
}

.topbar-social a:hover {
  color: var(--primary);
  transform: translateY(-2px);
}

/* Adjust Navbar when Topbar is present */
.navbar {
  top: 40px;
  will-change: top;
}

.navbar.scrolled .navbar-brand img {
  height: 60px;
}

.navbar-collapse {
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

@media (max-width: 576px) {
  .topbar-info span.address-text {
    display: none;
  }
}


/* Adjust content padding for fixed topbar */
.hero {
  padding-top: 140px;
  /* Original 100px + 40px topbar */
}

/* Page Hero - Fix for overlapping titles */
.page-hero {
  padding-top: 200px !important;
  padding-bottom: 5rem;
  position: relative;
  background-size: cover;
  background-position: center;
}

@media (max-width: 991.98px) {
  .page-hero {
    padding-top: 160px !important;
  }
}