/*!
 * Start Bootstrap - Stylish Portfolio Bootstrap Theme (http://startbootstrap.com)
 * Code licensed under the Apache License v2.0.
 * For details, see http://www.apache.org/licenses/LICENSE-2.0.
 */

/* Global Styles */

html,
body {
  width: 100%;
  height: 100%;
}

/* Global scroll padding to account for fixed navbar */
html {
  scroll-padding-top: 80px;
  /* equal to navbar height */
}

body {
  font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #334155;
  /* Modern slate gray for text */
}

/* Typography Enhancements */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  color: #0f172a;
  /* Slate 900 for high-contrast headers */
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.text-vertical-center {
  display: table-cell;
  text-align: center;
  vertical-align: middle;
}

.text-vertical-center h1 {
  margin: 0;
  padding: 0;
  font-size: 4.5em;
  font-weight: 800;
  letter-spacing: -0.03em;
}

/* Modern Button Styles */
.btn {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  border-radius: 50px;
  /* Pill shape */
  padding: 12px 28px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  letter-spacing: 0.01em;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.btn:active {
  transform: translateY(1px);
}

.btn-custom {
  display: inline-block;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%);
  /* Modern Indigo/Blue Gradient */
  color: #fff !important;
  border: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 14px 0 rgba(79, 70, 229, 0.39);
}

.btn-custom:hover {
  background: linear-gradient(135deg, #4338ca 0%, #2563eb 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}

.btn-dark {
  color: #fff;
  background-color: #1e293b;
  border: none;
}

.btn-dark:hover {
  background-color: #0f172a;
}

.btn-light {
  color: #0f172a;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
}

.btn-light:hover {
  background-color: #f8fafc;
  border-color: #cbd5e1;
}

/* Custom Horizontal Rule */
hr.small {
  max-width: 80px;
  border-width: 3px;
  border-color: #4f46e5;
  border-radius: 3px;
  opacity: 1;
  margin: 1.5rem auto 3rem auto;
}

hr.small.div-center {
  margin-left: auto;
  margin-right: auto;
}

/* Side Menu */
#sidebar-wrapper {
  z-index: 1000;
  position: fixed;
  right: 0;
  width: 280px;
  height: 100%;
  margin-right: -280px;
  overflow-y: auto;
  background: rgba(15, 23, 42, 0.95);
  /* Deep slate with opacity */
  backdrop-filter: blur(10px);
  /* Glass effect */
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-nav {
  position: absolute;
  top: 0;
  width: 280px;
  margin: 0;
  padding: 20px 0;
  list-style: none;
}

.sidebar-nav li {
  text-indent: 20px;
  line-height: 50px;
}

.sidebar-nav li a {
  display: block;
  text-decoration: none;
  font-weight: 500;
  color: #cbd5e1;
  font-size: 1.1rem;
  transition: all 0.2s ease;
}

.sidebar-nav li a:hover {
  text-decoration: none;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  padding-left: 10px;
  /* Slight indent bump on hover */
}

.sidebar-nav>.sidebar-brand {
  height: 65px;
  font-size: 1.4rem;
  line-height: 65px;
  font-weight: 700;
}

.sidebar-nav>.sidebar-brand a {
  color: #fff;
}

#menu-toggle {
  z-index: 1050;
  position: fixed;
  top: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0f172a;
  transition: all 0.3s ease;
}

#menu-toggle:hover {
  transform: rotate(90deg);
  background: #fff;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

#sidebar-wrapper.active {
  right: 280px;
  width: 280px;
}

/* Header Sections */
.header {
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0f172a;
  overflow: hidden;
  position: relative;
}

.header-container {
  display: flex;
  width: 100%;
  height: 100%;
  max-width: 1400px;
  /* Constrain width on ultrawide */
  margin: 0 auto;
}

/* Glassmorphism treatment for hero text */
.header-text {
  flex: 1.2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.page-header {
  height: 40vh;
  min-height: 300px;
  padding-top: 60px;
}

/* Stunning background treatment */
.header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.9) 0%, rgba(226, 232, 240, 0.4) 100%),
    url("../img/bg.jpg") no-repeat center center;
  background-size: cover;
  z-index: 1;
}

.page-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.9) 0%, rgba(226, 232, 240, 0.4) 100%),
    url("../img/bg_map.jpg") no-repeat center center;
  background-size: cover;
  z-index: 1;
}

.header-text h1 {
  font-size: 5rem;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.1;
  background: linear-gradient(to right, #0f172a, #334155);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header-text .subtitle {
  font-size: 2.2rem;
  margin-bottom: 20px;
  font-weight: 500;
  color: #475569;
}

.header-text .site-description {
  font-size: 1.25rem;
  margin-bottom: 30px;
  max-width: 600px;
  color: #64748b;
  line-height: 1.6;
}

.header-image {
  flex: 0.8;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.header-image::before {
  content: "";
  display: block;
  width: 90%;
  height: 90%;
  background: url("../img/front bg.jpg") no-repeat center center;
  background-size: contain;
  animation: float 6s ease-in-out infinite;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.1));
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-20px);
  }

  100% {
    transform: translateY(0px);
  }
}

@media (max-width: 992px) {
  .header-text h1 {
    font-size: 3.5rem;
  }

  .header-text .subtitle {
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
  }

  .header-text,
  .header-image {
    flex: none;
    width: 100%;
    height: auto;
  }

  .header-image::before {
    width: 100%;
    height: 300px;
    margin-top: 20px;
  }

  .header-text {
    padding: 120px 20px 20px 20px;
  }
}

/* Landscape mode fixes for short screens */
@media (max-height: 600px) and (orientation: landscape) {
  .header {
    height: auto;
    padding-bottom: 40px;
  }

  .header-text {
    padding-top: 100px;
  }
}

/* Sections Global Padding */
.about,
.services,
.portfolio,
.contact,
.call-to-action {
  padding: 100px 0;
  scroll-margin-top: 80px;
}

.about {
  background-color: #ffffff;
}

/* Modern Card Layout for Services */
.services {
  background-color: #f8fafc;
  /* Very light slate */
}

/* Target the wrapper row specifically to use flexbox properly for equal heights */
.services .row.justify-content-center {
  display: flex;
  flex-wrap: wrap;
}

.services [class*="col-"] {
  display: flex;
  margin-bottom: 30px;
}

.service-item {
  background: #ffffff;
  padding: 40px 30px;
  border-radius: 20px;
  /* Modern rounded corners */
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  border: 1px solid #f1f5f9;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Force equal height and push button to bottom */
.service-item p {
  flex-grow: 1;
  color: #64748b;
  margin-bottom: 25px;
  line-height: 1.6;
}

.service-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border-color: #e2e8f0;
}

.service-item .fa-stack {
  margin-bottom: 1.5rem;
}

.service-item .fa-stack-2x {
  color: #eff6ff;
  /* Very light blue background for icons */
}

.service-item .text-primary {
  color: #4f46e5 !important;
  /* Premium Indigo */
}

.service-item h4 {
  font-size: 1.25rem;
  margin-bottom: 15px;
}

/* Callout Section styling */
.callout {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 500px;
  color: #ffffff;
  background: url("../img/robot.jpg") no-repeat center center fixed;
  background-size: cover;
  text-align: center;
}

.callout::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.8));
  /* Dark modern overlay */
  z-index: 0;
}

.callout * {
  position: relative;
  z-index: 1;
}

.callout h2 {
  color: #ffffff;
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 30px;
}

/* Portfolio grid adjustments */
.portfolio {
  background-color: #ffffff;
}

.portfolio-item {
  margin-bottom: 30px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.portfolio-item:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
}

.img-portfolio {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.3s ease;
}

/* Contact Section & Form Styling */
.contact {
  background-color: #f8fafc;
}

.form-control,
.form-select {
  border-radius: 8px;
  padding: 12px 16px;
  border: 1px solid #cbd5e1;
  font-family: 'Inter', sans-serif;
  color: #334155;
  background-color: #ffffff;
  transition: all 0.2s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
  outline: none;
}

.form-label {
  font-weight: 600;
  color: #475569;
  margin-bottom: 8px;
}

/* Main Navigation Bar modern upgrade */
#mainNav {
  display: block;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 15px 0;
}

#mainNav .nav-link {
  color: #475569 !important;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 8px 16px;
  margin: 0 5px;
  border-radius: 50px;
  transition: all 0.2s ease;
}

#mainNav .nav-link:hover,
#mainNav .nav-link.active {
  color: #4f46e5 !important;
  background-color: rgba(79, 70, 229, 0.05);
}

#mainNav .navbar-brand {
  font-weight: 800;
  color: #0f172a !important;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

/* Footer modern look */
footer {
  padding: 60px 0;
  background-color: #0f172a;
  /* Slate 900 */
  color: #f8fafc;
}

footer .text-muted {
  color: #94a3b8 !important;
  /* Slate 400 */
}

/* Map specific fixes */
.map {
  height: 500px;
  width: 100%;
  border: none;
}

.scrolloff {
  pointer-events: none;
}

/* Ensure global link colors match the new theme */
a {
  color: #4f46e5;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #3730a3;
}

/* Root overrides for bootstrap */
:root {
  --bs-primary-rgb: 79, 70, 229;
  /* Indigo 600 */
  --bs-body-bg: #f8fafc;
  --bs-body-color: #334155;
  --bs-font-sans-serif: "Inter", system-ui, -apple-system, sans-serif;
}

.bg-primary {
  background-color: #4f46e5 !important;
}

.text-primary {
  color: #4f46e5 !important;
}

/* Content pages formatting */
#page-content p {
  line-height: 1.8;
  font-size: 1.1rem;
  color: #475569;
}

/* Loading Overlay styling */
#loadingOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(15, 23, 42, 0.85);
  /* Slate 900 semi transparent */
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#loadingOverlay.active {
  opacity: 1;
  visibility: visible;
}

/* Custom CSS Spinner */
.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top-color: #4f46e5;
  /* Indigo */
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-text {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.6;
  }
}