/* Architecture Studio - Deep Blue Steel Theme CSS */

/* ===== ROOT VARIABLES ===== */
:root {
  --primary-color: #1565C0;
  --secondary-color: #FFA726;
  --dark-blue: #0D47A1;
  --light-blue: #42A5F5;
  --steel-gray: #455A64;
  --dark-gray: #263238;
  --light-gray: #ECEFF1;
  --white: #FFFFFF;
  --black: #000000;
  --transition: all 0.3s ease;
  --box-shadow: 0 5px 20px rgba(13, 71, 161, 0.15);
  --box-shadow-hover: 0 8px 30px rgba(13, 71, 161, 0.25);
}

/* ===== GLOBAL STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--white);
  color: var(--dark-gray);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1320px;
  padding-left: 15px;
  padding-right: 15px;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--dark-gray);
  line-height: 1.2;
}

.display-2 {
  font-size: clamp(2.5rem, 5vw, 4.5rem) !important;
  font-weight: 800 !important;
  color: var(--white) !important;
}

.display-4 {
  font-size: clamp(2rem, 4vw, 3.5rem) !important;
  font-weight: 700 !important;
}

.display-5 {
  font-size: clamp(1.5rem, 3vw, 2.5rem) !important;
  font-weight: 700 !important;
}

.lead {
  font-size: clamp(1rem, 2vw, 1.25rem) !important;
  font-weight: 400 !important;
  color: var(--light-gray) !important;
  line-height: 1.8 !important;
}

.fw-bold {
  font-weight: 700 !important;
}

.fw-semibold {
  font-weight: 600 !important;
}

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

.text-muted {
  color: var(--steel-gray) !important;
}

/* ===== NAVBAR ===== */
.navbar {
  background: linear-gradient(135deg, var(--dark-blue) 0%, var(--primary-color) 100%) !important;
  padding: 1rem 0;
  box-shadow: 0 2px 15px rgba(13, 71, 161, 0.3);
  transition: var(--transition);
  z-index: 1000;
}

.navbar.sticky-top {
  position: sticky;
  top: 0;
}

.navbar-dark .navbar-brand {
  color: var(--white) !important;
  font-size: 1.5rem;
  font-weight: 700;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-brand:hover {
  color: var(--secondary-color) !important;
  transform: translateX(5px);
}

.navbar-brand .bi {
  font-size: 1.8rem;
  color: var(--secondary-color);
  animation: rotate 10s linear infinite;
}

.navbar-toggler {
  border: 2px solid var(--white) !important;
  padding: 0.5rem 0.75rem;
  transition: var(--transition);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem rgba(255, 167, 38, 0.5) !important;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.navbar-nav {
  gap: 0.5rem;
}

.nav-item {
  position: relative;
}

.nav-link {
  color: var(--white) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  border-radius: 5px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--secondary-color);
  transition: var(--transition);
  transform: translateX(-50%);
}

.nav-link:hover,
.nav-link.active {
  color: var(--secondary-color) !important;
  background-color: rgba(255, 167, 38, 0.1) !important;
}

.nav-link:hover::before,
.nav-link.active::before {
  width: 80%;
}

/* ===== BUTTONS ===== */
.btn {
  font-weight: 600;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  border: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
  z-index: -1;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-blue) 100%) !important;
  color: var(--white) !important;
  border: 2px solid transparent !important;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--dark-blue) 0%, var(--primary-color) 100%) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(21, 101, 192, 0.4) !important;
}

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #FF9800 100%) !important;
  color: var(--white) !important;
  border: 2px solid transparent !important;
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #FF9800 0%, var(--secondary-color) 100%) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 167, 38, 0.4) !important;
}

.btn-outline-light {
  background-color: transparent !important;
  color: var(--white) !important;
  border: 2px solid var(--white) !important;
}

.btn-outline-light:hover {
  background-color: var(--white) !important;
  color: var(--primary-color) !important;
  border-color: var(--white) !important;
  transform: translateY(-2px);
}

.btn-outline-primary {
  background-color: transparent !important;
  color: var(--primary-color) !important;
  border: 2px solid var(--primary-color) !important;
}

.btn-outline-primary:hover {
  background-color: var(--primary-color) !important;
  color: var(--white) !important;
  transform: translateY(-2px);
}

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

.btn .bi {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.btn:hover .bi-arrow-right,
.btn:hover .bi-arrow-right-circle,
.btn:hover .bi-arrow-right-circle-fill {
  transform: translateX(5px);
}

/* ===== HERO SECTION ===== */
.position-relative {
  position: relative;
}

.overflow-hidden {
  overflow: hidden;
}

.position-absolute {
  position: absolute;
}

.hero-section {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--dark-blue) 0%, var(--primary-color) 50%, var(--steel-gray) 100%);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,%3Csvg width="100" height="100" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M0 0h100v100H0z" fill="none"/%3E%3Cpath d="M0 0l50 50M50 0l50 50M0 50l50 50" stroke="%23ffffff" stroke-width="0.5" opacity="0.1"/%3E%3C/svg%3E');
  opacity: 0.1;
  animation: backgroundScroll 20s linear infinite;
}

.hero-section .row {
  min-height: 100vh;
}

.engine-pulse {
  animation: pulse 2s ease-in-out infinite;
  display: inline-block;
}

.hero-section .bi-lightning-charge-fill {
  color: var(--secondary-color);
  font-size: 3rem;
  margin-right: 1rem;
  animation: flash 2s ease-in-out infinite;
}

.hero-section .img-fluid {
  border-radius: 15px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  transition: var(--transition);
  animation: floatImage 6s ease-in-out infinite;
}

.hero-section .img-fluid:hover {
  transform: scale(1.05) rotate(2deg);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
}

.bi-chevron-down {
  font-size: 2rem;
  color: var(--white);
  animation: bounce 2s ease-in-out infinite;
  cursor: pointer;
  transition: var(--transition);
}

.bi-chevron-down:hover {
  color: var(--secondary-color);
  transform: scale(1.2);
}

/* ===== CARDS & SECTIONS ===== */
.py-5 {
  padding-top: 5rem !important;
  padding-bottom: 5rem !important;
}

.py-4 {
  padding-top: 3rem !important;
  padding-bottom: 3rem !important;
}

.bg-light {
  background-color: var(--light-gray) !important;
}

.bg-dark {
  background: linear-gradient(135deg, var(--dark-gray) 0%, var(--steel-gray) 100%) !important;
  color: var(--white) !important;
}

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

.card,
.service-card {
  border: none;
  border-radius: 15px;
  overflow: hidden;
  transition: var(--transition);
  background-color: var(--white);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  height: 100%;
}

.card:hover,
.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--box-shadow-hover);
}

.card-body {
  padding: 2rem;
}

.card-title {
  color: var(--dark-gray);
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.card-text {
  color: var(--steel-gray);
  line-height: 1.8;
}

/* Service Cards with Flip Effect */
.service-card {
  position: relative;
  perspective: 1000px;
  min-height: 350px;
}

.service-front,
.service-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  transition: transform 0.6s;
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  padding: 2rem;
}

.service-front {
  background: linear-gradient(135deg, var(--white) 0%, var(--light-gray) 100%);
  z-index: 2;
  transform: rotateY(0deg);
}

.service-back {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-blue) 100%);
  color: var(--white) !important;
  transform: rotateY(180deg);
}

.service-card:hover .service-front {
  transform: rotateY(-180deg);
}

.service-card:hover .service-back {
  transform: rotateY(0deg);
}

.service-front .bi,
.service-back .bi {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.service-front .bi {
  color: var(--primary-color);
}

.service-back .bi {
  color: var(--secondary-color);
}

.service-back h3,
.service-back p,
.service-back ul {
  color: var(--white) !important;
}

/* ===== ICONS ===== */
.bi {
  display: inline-block;
  vertical-align: middle;
}

.bi-gear-fill,
.bi-speedometer2,
.bi-tools,
.bi-shield-check,
.bi-cpu,
.bi-terminal,
.bi-hurricane,
.bi-bezier2,
.bi-disc,
.bi-clipboard-data,
.bi-check-circle-fill {
  color: var(--primary-color);
}

.bi-lightning-charge-fill,
.bi-arrow-right,
.bi-arrow-right-circle,
.bi-arrow-right-circle-fill {
  color: var(--secondary-color);
}

/* ===== BADGES ===== */
.badge {
  background-color: var(--secondary-color) !important;
  color: var(--white) !important;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.5px;
  display: inline-block;
}

/* ===== TIMELINE ===== */
.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  transform: translateX(-50%);
  z-index: 1;
}

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

.timeline-dot {
  position: absolute;
  top: 50%;
  width: 20px;
  height: 20px;
  background-color: var(--secondary-color);
  border: 4px solid var(--white);
  border-radius: 50%;
  transform: translateY(-50%);
  z-index: 2;
  box-shadow: 0 0 0 4px var(--primary-color);
}

.timeline-item:nth-child(odd) .timeline-dot {
  right: -10px;
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -10px;
}

/* ===== FORMS ===== */
.form-control,
.form-select {
  border: 2px solid var(--light-gray);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: var(--transition);
  background-color: var(--white);
  color: var(--dark-gray);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 0.25rem rgba(21, 101, 192, 0.25) !important;
  outline: none;
}

.form-label {
  font-weight: 600;
  color: var(--dark-gray);
  margin-bottom: 0.5rem;
}

/* ===== ACCORDION ===== */
.accordion {
  border-radius: 10px;
  overflow: hidden;
}

.accordion-item {
  border: none !important;
  margin-bottom: 1rem;
  border-radius: 10px !important;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.accordion-header {
  border: none;
}

.accordion-button {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-blue) 100%) !important;
  color: var(--white) !important;
  font-weight: 600;
  padding: 1.25rem 1.5rem;
  border: none;
  transition: var(--transition);
}

.accordion-button:not(.collapsed) {
  background: linear-gradient(135deg, var(--dark-blue) 0%, var(--primary-color) 100%) !important;
  color: var(--white) !important;
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.25rem rgba(21, 101, 192, 0.25) !important;
  border: none;
}

.accordion-button::after {
  filter: brightness(0) invert(1);
}

.accordion-body {
  padding: 1.5rem;
  background-color: var(--white);
  color: var(--dark-gray);
  line-height: 1.8;
}

.accordion-collapse {
  background-color: var(--white);
}

/* ===== ALERTS ===== */
.alert {
  border: none;
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.alert-info {
  background-color: rgba(21, 101, 192, 0.1) !important;
  color: var(--primary-color) !important;
  border-left: 4px solid var(--primary-color) !important;
}

.alert-warning {
  background-color: rgba(255, 167, 38, 0.1) !important;
  color: #E65100 !important;
  border-left: 4px solid var(--secondary-color) !important;
}

.alert .bi {
  font-size: 1.5rem;
}

/* ===== LIST GROUP ===== */
.list-group {
  border-radius: 10px;
  overflow: hidden;
}

.list-group-item {
  border: none;
  border-bottom: 1px solid var(--light-gray);
  padding: 1rem 1.5rem;
  transition: var(--transition);
  background-color: var(--white);
  color: var(--dark-gray);
}

.list-group-item:hover {
  background-color: rgba(21, 101, 192, 0.05);
  padding-left: 2rem;
}

.list-group-item:last-child {
  border-bottom: none;
}

.list-group-flush .list-group-item {
  border-left: none;
  border-right: none;
}

/* ===== MASONRY GALLERY ===== */
.masonry-gallery {
  column-count: 3;
  column-gap: 1.5rem;
}

.masonry-gallery .card {
  break-inside: avoid;
  margin-bottom: 1.5rem;
  display: inline-block;
  width: 100%;
}

.masonry-gallery .card-img-top {
  border-radius: 15px 15px 0 0;
  transition: var(--transition);
}

.masonry-gallery .card:hover .card-img-top {
  transform: scale(1.1);
}

/* ===== RATIO (VIDEO EMBED) ===== */
.ratio {
  position: relative;
  width: 100%;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.ratio::before {
  display: block;
  padding-top: var(--bs-aspect-ratio);
  content: "";
}

.ratio-16x9 {
  --bs-aspect-ratio: 56.25%;
}

.ratio > * {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ===== FOOTER ===== */
footer {
  background: linear-gradient(135deg, var(--dark-gray) 0%, var(--steel-gray) 100%);
  color: var(--white);
  padding: 4rem 0 2rem;
}

footer h5,
footer .h5 {
  color: var(--secondary-color) !important;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

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

footer .list-unstyled li {
  margin-bottom: 0.75rem;
}

footer a {
  color: var(--light-gray) !important;
  text-decoration: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

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

footer .text-decoration-none {
  text-decoration: none !important;
}

footer .border-top {
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

footer .bi-facebook,
footer .bi-instagram,
footer .bi-youtube {
  font-size: 1.5rem;
  transition: var(--transition);
}

footer .bi-facebook:hover {
  color: #1877F2 !important;
}

footer .bi-instagram:hover {
  color: #E4405F !important;
}

footer .bi-youtube:hover {
  color: #FF0000 !important;
}

/* ===== SHADOWS ===== */
.shadow {
  box-shadow: var(--box-shadow) !important;
}

.shadow-lg {
  box-shadow: 0 10px 40px rgba(13, 71, 161, 0.2) !important;
}

.shadow-sm {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08) !important;
}

/* ===== BORDERS & ROUNDING ===== */
.rounded {
  border-radius: 10px !important;
}

.rounded-3 {
  border-radius: 15px !important;
}

.border {
  border: 1px solid var(--light-gray) !important;
}

.border-top {
  border-top: 1px solid var(--light-gray) !important;
}

.border-light {
  border-color: rgba(255, 255, 255, 0.2) !important;
}

.border-0 {
  border: 0 !important;
}

/* ===== SPACING UTILITIES ===== */
.m-3 { margin: 1.5rem !important; }
.m-4 { margin: 2rem !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }
.my-4 { margin-top: 1.5rem !important; margin-bottom: 1.5rem !important; }
.ms-2 { margin-left: 0.5rem !important; }
.ms-3 { margin-left: 1rem !important; }
.ms-4 { margin-left: 1.5rem !important; }
.ms-auto { margin-left: auto !important; }
.me-2 { margin-right: 0.5rem !important; }
.me-3 { margin-right: 0.75rem !important; }
.p-3 { padding: 1rem !important; }
.p-4 { padding: 1.5rem !important; }
.p-5 { padding: 3rem !important; }
.px-0 { padding-left: 0 !important; padding-right: 0 !important; }
.px-4 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
.px-5 { padding-left: 3rem !important; padding-right: 3rem !important; }
.py-2 { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }
.py-3 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
.pt-3 { padding-top: 1rem !important; }
.pt-5 { padding-top: 3rem !important; }
.pb-4 { padding-bottom: 1.5rem !important; }
.ps-md-5 { padding-left: 3rem !important; }
.pe-md-5 { padding-right: 3rem !important; }
.pe-lg-4 { padding-right: 1.5rem !important; }

/* ===== FLEX UTILITIES ===== */
.d-flex { display: flex !important; }
.d-block { display: block !important; }
.d-inline-block { display: inline-block !important; }
.d-none { display: none !important; }
.flex-column { flex-direction: column !important; }
.flex-wrap { flex-wrap: wrap !important; }
.align-items-center { align-items: center !important; }
.align-items-start { align-items: flex-start !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }
.gap-3 { gap: 1rem !important; }
.gap-4 { gap: 1.5rem !important; }
.gap-5 { gap: 3rem !important; }

/* ===== TEXT UTILITIES ===== */
.text-center { text-align: center !important; }
.text-start { text-align: left !important; }
.text-end { text-align: right !important; }
.fs-1 { font-size: 2.5rem !important; }
.fs-3 { font-size: 1.75rem !important; }
.fs-4 { font-size: 1.5rem !important; }
.fs-5 { font-size: 1.25rem !important; }
.h4 { font-size: 1.5rem !important; }
.h5 { font-size: 1.25rem !important; }
.h6 { font-size: 1rem !important; }
.small { font-size: 0.875rem !important; }

/* ===== POSITION UTILITIES ===== */
.top-0 { top: 0 !important; }
.start-0 { left: 0 !important; }
.bottom-0 { bottom: 0 !important; }
.w-100 { width: 100% !important; }
.h-100 { height: 100% !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }

/* ===== ANIMATIONS ===== */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes flash {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes floatImage {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes backgroundScroll {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 100px 100px;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.8s ease-out;
}

.animate-fadeInLeft {
  animation: fadeInLeft 0.8s ease-out;
}

.animate-fadeInRight {
  animation: fadeInRight 0.8s ease-out;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablets and below */
@media (max-width: 991px) {
  .navbar-nav {
    padding: 1rem 0;
    gap: 0;
  }
  
  .nav-link {
    padding: 0.75rem 1rem !important;
    border-radius: 0;
  }
  
  .hero-section {
    padding: 4rem 0;
  }
  
  .display-2 {
    font-size: 2.5rem !important;
  }
  
  .masonry-gallery {
    column-count: 2;
  }
  
  .timeline-line {
    left: 30px;
  }
  
  .timeline-item {
    padding-left: 60px;
  }
  
  .timeline-dot {
    left: 20px !important;
    right: auto !important;
  }
  
  .mb-lg-0 {
    margin-bottom: 2rem !important;
  }
  
  .ps-lg-5,
  .pe-lg-5,
  .pe-lg-4 {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  
  .text-lg-end {
    text-align: left !important;
  }
  
  .d-lg-inline-block {
    display: block !important;
  }
  
  .mt-lg-0 {
    margin-top: 1rem !important;
  }
  
  .order-lg-1,
  .order-lg-2 {
    order: 0 !important;
  }
}

/* Mobile devices */
@media (max-width: 767px) {
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem !important;
    font-size: 1rem !important;
  }
  
  .display-2 {
    font-size: 2rem !important;
  }
  
  .display-4 {
    font-size: 1.75rem !important;
  }
  
  .display-5 {
    font-size: 1.5rem !important;
  }
  
  .lead {
    font-size: 1rem !important;
  }
  
  .py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
  
  .masonry-gallery {
    column-count: 1;
  }
  
  .card-body {
    padding: 1.5rem;
  }
  
  .service-card {
    min-height: 300px;
  }
  
  .service-front,
  .service-back {
    padding: 1.5rem;
  }
  
  .d-md-block {
    display: none !important;
  }
  
  .d-md-none {
    display: block !important;
  }
  
  .pe-md-5,
  .ps-md-5 {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  
  .mb-md-0 {
    margin-bottom: 1.5rem !important;
  }
  
  .text-md-start,
  .text-md-end {
    text-align: center !important;
  }
  
  .order-md-1,
  .order-md-2 {
    order: 0 !important;
  }
  
  footer .col-lg-3,
  footer .col-lg-2 {
    margin-bottom: 2rem;
  }
}

/* Large tablets */
@media (min-width: 768px) and (max-width: 991px) {
  .col-md-3 { width: 33.333333% !important; }
  .col-md-4 { width: 33.333333% !important; }
  .col-md-6 { width: 50% !important; }
  .col-md-12 { width: 100% !important; }
}

/* Desktop */
@media (min-width: 992px) {
  .col-lg-2 { width: 16.666667% !important; }
  .col-lg-3 { width: 25% !important; }
  .col-lg-4 { width: 33.333333% !important; }
  .col-lg-5 { width: 41.666667% !important; }
  .col-lg-6 { width: 50% !important; }
  .col-lg-7 { width: 58.333333% !important; }
  .col-lg-8 { width: 66.666667% !important; }
  .col-lg-10 { width: 83.333333% !important; }
  .col-lg-12 { width: 100% !important; }
  
  .offset-lg-1 { margin-left: 8.333333% !important; }
  .offset-lg-2 { margin-left: 16.666667% !important; }
  
  .d-lg-block { display: block !important; }
  .d-lg-none { display: none !important; }
}

/* ===== SCROLL BEHAVIOR ===== */
html {
  scroll-behavior: smooth;
}

/* ===== SELECTION ===== */
::selection {
  background-color: var(--primary-color);
  color: var(--white);
}

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

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

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

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary-color) 0%, var(--dark-blue) 100%);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--dark-blue) 0%, var(--primary-color) 100%);
}

/* ===== ACCESSIBILITY ===== */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--secondary-color);
  outline-offset: 2px;
}

/* ===== PRINT STYLES ===== */
@media print {
  .navbar,
  .btn,
  footer {
    display: none;
  }
  
  body {
    background: white;
    color: black;
  }
}