/* Nordic Steel Architecture Studio - Custom Styles */

/* ===========================
   CSS Variables & Base Styles
   =========================== */
:root {
  --primary-color: #2E3440;
  --secondary-color: #5E81AC;
  --accent-light: #88C0D0;
  --accent-dark: #4C566A;
  --text-light: #ECEFF4;
  --text-dark: #2E3440;
  --steel-gradient: linear-gradient(135deg, #2E3440 0%, #4C566A 100%);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-dark);
  overflow-x: hidden;
  background-color: #ECEFF4;
}

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

/* ===========================
   Typography
   =========================== */
.display-2,
.display-3,
.display-4,
.display-5,
.display-6 {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-dark) !important;
}

.text-white.display-2,
.text-white.display-3,
.text-white.display-4,
.text-white.display-5,
.text-white.display-6,
.text-white {
  color: #FFFFFF !important;
}

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

.text-muted {
  color: #6c757d !important;
}

.lead {
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 1.6;
}

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

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

.fst-italic {
  font-style: italic !important;
}

.text-uppercase {
  text-transform: uppercase !important;
  letter-spacing: 0.05em;
}

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

.text-decoration-underline {
  text-decoration: underline !important;
}

.fs-1 { font-size: 2.5rem !important; }
.fs-2 { font-size: 2rem !important; }
.fs-4 { font-size: 1.5rem !important; }
.fs-5 { font-size: 1.25rem !important; }

/* ===========================
   Navigation
   =========================== */
.navbar {
  background: var(--steel-gradient) !important;
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(46, 52, 64, 0.3);
  transition: var(--transition-smooth);
}

.navbar.scrolled {
  padding: 0.5rem 0;
  background: rgba(46, 52, 64, 0.95) !important;
  backdrop-filter: blur(10px);
}

.navbar-dark .navbar-brand {
  color: #FFFFFF !important;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: var(--transition-smooth);
}

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

.navbar-dark .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  margin: 0 0.25rem;
  position: relative;
  transition: var(--transition-smooth);
}

.navbar-dark .navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent-light);
  transition: var(--transition-smooth);
  transform: translateX(-50%);
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
  color: #FFFFFF !important;
}

.navbar-dark .navbar-nav .nav-link:hover::after,
.navbar-dark .navbar-nav .nav-link.active::after {
  width: 80%;
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.3) !important;
  padding: 0.5rem 0.75rem;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem rgba(94, 129, 172, 0.25) !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, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* ===========================
   Hero Section
   =========================== */
.hero-section {
  background: var(--steel-gradient);
  min-height: 90vh;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    linear-gradient(45deg, rgba(94, 129, 172, 0.1) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(94, 129, 172, 0.1) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(94, 129, 172, 0.1) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(94, 129, 172, 0.1) 75%);
  background-size: 60px 60px;
  background-position: 0 0, 0 30px, 30px -30px, -30px 0px;
  opacity: 0.3;
  animation: blueprintMove 20s linear infinite;
}

@keyframes blueprintMove {
  0% { background-position: 0 0, 0 30px, 30px -30px, -30px 0px; }
  100% { background-position: 60px 60px, 60px 90px, 90px 30px, 30px 60px; }
}

.blueprint-overlay {
  background: url('data:image/svg+xml,%3Csvg width="100" height="100" xmlns="http://www.w3.org/2000/svg"/%3E');
  opacity: 0.05;
  pointer-events: none;
  z-index: 1;
}

.crane-animation {
  position: absolute;
  top: 20%;
  right: -100px;
  width: 300px;
  height: 300px;
  opacity: 0.15;
  animation: craneMove 30s ease-in-out infinite;
  z-index: 2;
}

@keyframes craneMove {
  0%, 100% { transform: translateX(0) rotate(0deg); }
  50% { transform: translateX(-50px) rotate(2deg); }
}

.crane-load {
  animation: loadSwing 3s ease-in-out infinite;
  transform-origin: top center;
}

@keyframes loadSwing {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(20px); }
}

.hero-section .container {
  position: relative;
  z-index: 3;
}

.hero-section .text-white {
  color: #FFFFFF !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-section .lead {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 1.3rem;
  line-height: 1.7;
}

/* ===========================
   Buttons
   =========================== */
.btn {
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 8px;
  transition: var(--transition-smooth);
  border: none;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.btn-lg {
  padding: 1rem 2rem !important;
  font-size: 1rem !important;
  border-radius: 10px;
}

.btn-sm {
  padding: 0.5rem 1rem !important;
  font-size: 0.85rem !important;
}

.btn-primary {
  background: var(--secondary-color) !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 15px rgba(94, 129, 172, 0.4);
}

.btn-primary:hover {
  background: #4a6a94 !important;
  color: #FFFFFF !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(94, 129, 172, 0.5);
}

.btn-primary:active {
  transform: translateY(0) !important;
}

.btn-secondary {
  background: var(--accent-dark) !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 15px rgba(76, 86, 106, 0.4);
}

.btn-secondary:hover {
  background: #3d4555 !important;
  color: #FFFFFF !important;
  transform: translateY(-2px);
}

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

.btn-outline-secondary:hover {
  background: var(--accent-dark) !important;
  color: #FFFFFF !important;
  border-color: var(--accent-dark) !important;
}

.btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.8) !important;
  color: #FFFFFF !important;
  background: transparent !important;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  color: #FFFFFF !important;
  border-color: #FFFFFF !important;
  transform: translateY(-2px);
}

.btn-group .btn {
  margin: 0 0.25rem;
}

/* ===========================
   Cards
   =========================== */
.card {
  border: none !important;
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition-smooth);
  background: #FFFFFF;
  box-shadow: 0 2px 15px rgba(46, 52, 64, 0.08);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(46, 52, 64, 0.15);
}

.card-img-top {
  height: 250px;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.card:hover .card-img-top {
  transform: scale(1.05);
}

.card-body {
  padding: 1.5rem;
}

.card-title {
  font-weight: 700;
  color: var(--text-dark) !important;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.card-text {
  color: #6c757d !important;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.service-card {
  background: #FFFFFF;
  border-radius: 12px;
  padding: 2rem;
  transition: var(--transition-smooth);
  box-shadow: 0 2px 15px rgba(46, 52, 64, 0.08);
  height: 100%;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(94, 129, 172, 0.2);
  background: linear-gradient(135deg, #FFFFFF 0%, #f8f9fa 100%);
}

.service-card .bi {
  color: var(--secondary-color) !important;
  transition: var(--transition-smooth);
}

.service-card:hover .bi {
  transform: scale(1.1) rotate(5deg);
}

.portfolio-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  height: 350px;
  cursor: pointer;
}

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

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(46, 52, 64, 0.95) 0%, rgba(46, 52, 64, 0.3) 50%, transparent 100%);
  opacity: 0;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
}

.portfolio-card:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-card:hover img {
  transform: scale(1.1);
}

.cert-card {
  background: #FFFFFF;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: var(--transition-smooth);
  height: 100%;
}

.cert-card:hover {
  border-color: var(--secondary-color);
  box-shadow: 0 8px 25px rgba(94, 129, 172, 0.15);
  transform: translateY(-5px);
}

.hover-lift {
  transition: var(--transition-smooth);
}

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

/* ===========================
   Sections
   =========================== */
.py-5 {
  padding-top: 4rem !important;
  padding-bottom: 4rem !important;
}

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

.py-0 {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.px-5 {
  padding-left: 3rem !important;
  padding-right: 3rem !important;
}

.px-4 {
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
}

.px-3 {
  padding-left: 1rem !important;
  padding-right: 1rem !important;
}

.px-0 {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.p-5 {
  padding: 3rem !important;
}

.p-4 {
  padding: 1.5rem !important;
}

.p-3 {
  padding: 1rem !important;
}

.p-0 {
  padding: 0 !important;
}

.ps-5 {
  padding-left: 3rem !important;
}

.ps-3 {
  padding-left: 1rem !important;
}

.ps-lg-5 {
  padding-left: 3rem !important;
}

.pt-5 {
  padding-top: 3rem !important;
}

.pb-4 {
  padding-bottom: 1.5rem !important;
}

.mt-5 {
  margin-top: 3rem !important;
}

.mt-4 {
  margin-top: 1.5rem !important;
}

.mt-3 {
  margin-top: 1rem !important;
}

.mt-2 {
  margin-top: 0.5rem !important;
}

.mb-5 {
  margin-bottom: 3rem !important;
}

.mb-4 {
  margin-bottom: 1.5rem !important;
}

.mb-3 {
  margin-bottom: 1rem !important;
}

.mb-2 {
  margin-bottom: 0.5rem !important;
}

.mb-1 {
  margin-bottom: 0.25rem !important;
}

.mb-0 {
  margin-bottom: 0 !important;
}

.mb-lg-0 {
  margin-bottom: 0 !important;
}

.mb-md-0 {
  margin-bottom: 0 !important;
}

.ms-auto {
  margin-left: auto !important;
}

.ms-4 {
  margin-left: 1.5rem !important;
}

.ms-3 {
  margin-left: 1rem !important;
}

.me-3 {
  margin-right: 1rem !important;
}

.me-2 {
  margin-right: 0.5rem !important;
}

.me-1 {
  margin-right: 0.25rem !important;
}

.my-4 {
  margin-top: 1.5rem !important;
  margin-bottom: 1.5rem !important;
}

.mx-auto {
  margin-left: auto !important;
  margin-right: auto !important;
}

header {
  background: var(--steel-gradient);
  color: #FFFFFF;
}

section {
  position: relative;
}

.min-vh-50 {
  min-height: 50vh !important;
}

/* ===========================
   Utilities
   =========================== */
.shadow {
  box-shadow: 0 4px 15px rgba(46, 52, 64, 0.1) !important;
}

.shadow-sm {
  box-shadow: 0 2px 8px rgba(46, 52, 64, 0.08) !important;
}

.shadow-lg {
  box-shadow: 0 10px 30px rgba(46, 52, 64, 0.15) !important;
}

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

.rounded-circle {
  border-radius: 50% !important;
}

.overflow-hidden {
  overflow: hidden !important;
}

.position-relative {
  position: relative !important;
}

.position-absolute {
  position: absolute !important;
}

.position-sticky {
  position: sticky !important;
  top: 100px;
}

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

.top-50 {
  top: 50% !important;
}

.start-0 {
  left: 0 !important;
}

.start-50 {
  left: 50% !important;
}

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

.translate-middle {
  transform: translate(-50%, -50%) !important;
}

.w-100 {
  width: 100% !important;
}

.w-50 {
  width: 50% !important;
}

.w-md-auto {
  width: auto !important;
}

.h-100 {
  height: 100% !important;
}

.h-50 {
  height: 50% !important;
}

.d-flex {
  display: flex !important;
}

.d-inline-flex {
  display: inline-flex !important;
}

.d-block {
  display: block !important;
}

.d-none {
  display: none !important;
}

.flex-column {
  flex-direction: column !important;
}

.flex-wrap {
  flex-wrap: wrap !important;
}

.flex-shrink-0 {
  flex-shrink: 0 !important;
}

.flex-grow-1 {
  flex-grow: 1 !important;
}

.align-items-center {
  align-items: center !important;
}

.align-items-start {
  align-items: flex-start !important;
}

.align-items-end {
  align-items: flex-end !important;
}

.justify-content-center {
  justify-content: center !important;
}

.justify-content-between {
  justify-content: space-between !important;
}

.justify-content-end {
  justify-content: flex-end !important;
}

.text-center {
  text-align: center !important;
}

.text-md-start {
  text-align: start !important;
}

.text-lg-start {
  text-align: start !important;
}

.text-lg-end {
  text-align: end !important;
}

.text-md-end {
  text-align: end !important;
}

.gap-3 {
  gap: 1rem !important;
}

.g-0 {
  --bs-gutter-x: 0;
  --bs-gutter-y: 0;
}

.g-2 {
  --bs-gutter-x: 0.5rem;
  --bs-gutter-y: 0.5rem;
}

.g-3 {
  --bs-gutter-x: 1rem;
  --bs-gutter-y: 1rem;
}

.g-4 {
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 1.5rem;
}

.opacity-25 {
  opacity: 0.25 !important;
}

.opacity-75 {
  opacity: 0.75 !important;
}

.bg-white {
  background-color: #FFFFFF !important;
}

.border {
  border: 1px solid #dee2e6 !important;
}

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

.border-3 {
  border-width: 3px !important;
}

.border-start {
  border-left: 1px solid #dee2e6 !important;
}

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

/* ===========================
   Bootstrap Icons
   =========================== */
.bi {
  display: inline-block;
  vertical-align: middle;
  line-height: 1;
}

.bi-chat-dots-fill,
.bi-camera-fill,
.bi-geo-alt-fill,
.bi-telephone-fill,
.bi-clock-fill,
.bi-briefcase-fill,
.bi-train-front,
.bi-car-front,
.bi-bicycle,
.bi-universal-access,
.bi-lightning-charge-fill,
.bi-droplet-fill,
.bi-recycle,
.bi-tree-fill,
.bi-award-fill,
.bi-patch-check-fill,
.bi-buildings-fill,
.bi-graph-up-arrow,
.bi-coin,
.bi-speedometer2,
.bi-cloud-fog2-fill,
.bi-info-circle-fill,
.bi-box-seam,
.bi-sun,
.bi-gear-wide-connected,
.bi-truck,
.bi-moisture,
.bi-clock-history,
.bi-envelope-fill,
.bi-linkedin,
.bi-instagram,
.bi-facebook {
  color: var(--secondary-color);
  transition: var(--transition-smooth);
}

/* ===========================
   Forms
   =========================== */
.form-label {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.form-control,
.form-select {
  border: 2px solid #e9ecef;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: var(--transition-smooth);
  background-color: #FFFFFF;
  color: var(--text-dark);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--secondary-color) !important;
  box-shadow: 0 0 0 0.25rem rgba(94, 129, 172, 0.15) !important;
  outline: none;
}

.form-control::placeholder {
  color: #adb5bd;
}

.form-select-lg {
  padding: 1rem 1.5rem;
  font-size: 1.1rem;
}

.form-check {
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
}

.form-check-input {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.125rem;
  border: 2px solid #dee2e6;
  transition: var(--transition-smooth);
}

.form-check-input:checked {
  background-color: var(--secondary-color) !important;
  border-color: var(--secondary-color) !important;
}

.form-check-input:focus {
  box-shadow: 0 0 0 0.25rem rgba(94, 129, 172, 0.15) !important;
}

.form-check-label {
  margin-left: 0.5rem;
  color: var(--text-dark);
}

.form-range {
  width: 100%;
  height: 1.5rem;
  padding: 0;
  background-color: transparent;
  appearance: none;
}

.form-range::-webkit-slider-thumb {
  width: 1.5rem;
  height: 1.5rem;
  background-color: var(--secondary-color);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.form-range::-webkit-slider-thumb:hover {
  background-color: #4a6a94;
  transform: scale(1.1);
}

.form-range::-webkit-slider-runnable-track {
  width: 100%;
  height: 0.5rem;
  background-color: #e9ecef;
  border-radius: 0.25rem;
}

/* ===========================
   Alerts & Badges
   =========================== */
.alert {
  border-radius: 10px;
  padding: 1rem 1.5rem;
  border: none;
  margin-bottom: 1rem;
}

.alert-light {
  background-color: #f8f9fa;
  color: var(--text-dark);
}

.alert-info {
  background-color: #e7f3ff;
  color: #004085;
  border-left: 4px solid var(--secondary-color);
}

.badge {
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
}

.badge.bg-primary {
  background-color: var(--secondary-color) !important;
  color: #FFFFFF !important;
}

.badge.bg-secondary {
  background-color: var(--accent-dark) !important;
  color: #FFFFFF !important;
}

/* ===========================
   Images
   =========================== */
.img-fluid {
  max-width: 100%;
  height: auto;
  display: block;
}

img {
  vertical-align: middle;
}

/* ===========================
   Lists
   =========================== */
.list-unstyled {
  padding-left: 0;
  list-style: none;
}

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

/* ===========================
   Footer
   =========================== */
footer {
  background: var(--steel-gradient);
  color: rgba(255, 255, 255, 0.8);
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}

footer h4,
footer h5,
footer .h4 {
  color: #FFFFFF !important;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

footer a {
  color: rgba(255, 255, 255, 0.7) !important;
  transition: var(--transition-smooth);
  text-decoration: none;
}

footer a:hover {
  color: #FFFFFF !important;
  padding-left: 5px;
}

footer .bi {
  color: var(--accent-light) !important;
}

footer .small {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(46, 52, 64, 0.98);
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 8px;
  }

  .navbar-nav .nav-link {
    padding: 0.75rem 1rem !important;
  }

  .hero-section {
    min-height: auto;
    padding: 60px 0;
  }

  .display-2 {
    font-size: 2.5rem !important;
  }

  .display-3 {
    font-size: 2rem !important;
  }

  .display-4 {
    font-size: 1.75rem !important;
  }

  .display-5 {
    font-size: 1.5rem !important;
  }

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

  .px-5 {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }

  .px-lg-5 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .ps-lg-5 {
    padding-left: 1rem !important;
  }

  .mb-lg-0 {
    margin-bottom: 2rem !important;
  }

  .d-lg-block {
    display: none !important;
  }

  .order-lg-1 {
    order: 1;
  }

  .order-lg-2 {
    order: 2;
  }

  .text-lg-start {
    text-align: center !important;
  }

  .text-lg-end {
    text-align: center !important;
  }

  .position-sticky {
    position: relative !important;
  }

  .col-lg-2,
  .col-lg-3,
  .col-lg-4,
  .col-lg-5,
  .col-lg-6,
  .col-lg-7,
  .col-lg-8,
  .col-lg-10,
  .col-lg-12 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .offset-lg-1,
  .offset-lg-2 {
    margin-left: 0;
  }

  .btn-lg {
    padding: 0.875rem 1.5rem !important;
  }

  .gap-3 {
    gap: 0.75rem !important;
  }

  .portfolio-card {
    height: 250px;
  }
}

@media (max-width: 767.98px) {
  .display-2 {
    font-size: 2rem !important;
  }

  .display-3 {
    font-size: 1.75rem !important;
  }

  .lead {
    font-size: 1.1rem;
  }

  .btn-group {
    flex-direction: column;
    width: 100%;
  }

  .btn-group .btn {
    margin: 0.25rem 0;
    width: 100%;
  }

  .text-md-start,
  .text-md-end {
    text-align: center !important;
  }

  .mb-md-0 {
    margin-bottom: 1.5rem !important;
  }

  .w-md-auto {
    width: 100% !important;
  }

  .col-md-3,
  .col-md-4,
  .col-md-5,
  .col-md-6 {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 1.5rem;
  }

  .service-card {
    margin-bottom: 1.5rem;
  }

  .card-img-top {
    height: 200px;
  }

  .py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }

  .p-5 {
    padding: 2rem !important;
  }

  footer {
    text-align: center;
  }

  footer .col-lg-2,
  footer .col-lg-3 {
    margin-bottom: 2rem;
  }
}

@media (max-width: 575.98px) {
  .col-sm-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .hero-section {
    padding: 40px 0;
  }

  .btn-lg {
    padding: 0.75rem 1.25rem !important;
    font-size: 0.9rem !important;
  }

  .display-2 {
    font-size: 1.75rem !important;
  }

  .portfolio-card {
    height: 200px;
  }

  .navbar-brand {
    font-size: 1.25rem !important;
  }

  .px-5 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}

/* ===========================
   Animations
   =========================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

.slide-in-left {
  animation: slideInLeft 0.6s ease-out forwards;
}

.slide-in-right {
  animation: slideInRight 0.6s ease-out forwards;
}

/* ===========================
   Scroll Animation Classes
   =========================== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   Loading Spinner
   =========================== */
.spinner-border {
  width: 2rem;
  height: 2rem;
  border: 0.25em solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spinner-border 0.75s linear infinite;
}

@keyframes spinner-border {
  to { transform: rotate(360deg); }
}

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

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--secondary-color);
  border-radius: 6px;
}

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

/* ===========================
   Print Styles
   =========================== */
@media print {
  .navbar,
  .btn,
  footer {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }

  a {
    text-decoration: underline;
  }
}