/* Arctic Copper Architecture Studio - Professional CSS */

/* ===== ROOT VARIABLES ===== */
:root {
  --primary-color: #2E7D94;
  --secondary-color: #F4A261;
  --dark-primary: #1a4d5c;
  --light-primary: #4a9fb8;
  --dark-secondary: #d88a45;
  --arctic-white: #F8FBFD;
  --copper-dark: #8B4513;
  --text-dark: #2c3e50;
  --text-light: #6c757d;
  --transition-speed: 0.4s;
  --box-shadow: 0 10px 40px rgba(46, 125, 148, 0.15);
  --box-shadow-hover: 0 15px 60px rgba(46, 125, 148, 0.25);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-dark) !important;
  background-color: var(--arctic-white) !important;
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-weight: 700 !important;
  color: var(--primary-color) !important;
  letter-spacing: -0.5px;
}

.lead {
  color: var(--text-light) !important;
  font-size: 1.15rem !important;
}

.fs-4, .fs-5, .fs-6 {
  color: var(--text-dark) !important;
}

/* ===== NAVIGATION ===== */
.navbar {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-primary) 100%) !important;
  padding: 1rem 0 !important;
  box-shadow: var(--box-shadow);
  transition: all var(--transition-speed) ease;
  z-index: 1030 !important;
}

.navbar.navbar-light {
  background: linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(248,251,253,0.98) 100%) !important;
  backdrop-filter: blur(10px);
}

.navbar-light .navbar-brand,
.navbar-light .nav-link {
  color: var(--primary-color) !important;
}

.navbar.fixed-top,
.navbar.sticky-top {
  animation: slideDown 0.5s ease;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.navbar-brand {
  font-size: 1.75rem !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  letter-spacing: 1px;
  transition: all var(--transition-speed) ease;
}

.navbar-brand:hover {
  color: var(--secondary-color) !important;
  transform: scale(1.05);
}

.navbar-dark .navbar-brand {
  color: #ffffff !important;
}

.navbar-toggler {
  border: 2px solid rgba(255,255,255,0.5) !important;
  padding: 0.5rem 0.75rem !important;
  transition: all var(--transition-speed) ease;
}

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

.navbar-toggler-icon {
  filter: brightness(0) invert(1);
}

.navbar-light .navbar-toggler {
  border-color: var(--primary-color) !important;
}

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

.nav-link {
  color: rgba(255,255,255,0.9) !important;
  font-weight: 500 !important;
  padding: 0.5rem 1.25rem !important;
  margin: 0 0.25rem;
  border-radius: 8px;
  transition: all var(--transition-speed) ease;
  position: relative;
  overflow: hidden;
}

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

.nav-link:hover,
.nav-link.active {
  color: #ffffff !important;
  background: rgba(255,255,255,0.15) !important;
  transform: translateY(-2px);
}

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

.navbar-light .nav-link:hover,
.navbar-light .nav-link.active {
  background: rgba(46, 125, 148, 0.1) !important;
  color: var(--primary-color) !important;
}

/* ===== BUTTONS ===== */
.btn {
  font-weight: 600 !important;
  border-radius: 12px !important;
  transition: all var(--transition-speed) ease !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none !important;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  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-primary) 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 5px 20px rgba(46, 125, 148, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--dark-primary) 0%, var(--primary-color) 100%) !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 30px rgba(46, 125, 148, 0.4) !important;
  color: #ffffff !important;
}

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--dark-secondary) 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 5px 20px rgba(244, 162, 97, 0.3);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, var(--dark-secondary) 0%, var(--secondary-color) 100%) !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 30px rgba(244, 162, 97, 0.4) !important;
  color: #ffffff !important;
}

.btn-light {
  background: #ffffff !important;
  color: var(--primary-color) !important;
  border: 2px solid var(--primary-color) !important;
}

.btn-light:hover {
  background: var(--primary-color) !important;
  color: #ffffff !important;
  transform: translateY(-3px) !important;
}

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

.btn-outline-secondary:hover {
  background: var(--secondary-color) !important;
  color: #ffffff !important;
  transform: translateY(-3px) !important;
}

.btn-outline-light {
  border: 2px solid #ffffff !important;
  color: #ffffff !important;
  background: transparent !important;
}

.btn-outline-light:hover {
  background: #ffffff !important;
  color: var(--primary-color) !important;
}

.btn-sm {
  padding: 0.4rem 1rem !important;
  font-size: 0.875rem !important;
}

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

.btn-close,
.btn-close-white {
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

.btn-close:hover {
  opacity: 1;
  transform: rotate(90deg);
}

/* ===== CAROUSEL ===== */
.carousel {
  position: relative;
  height: 100vh;
  min-height: 600px;
}

.carousel.slide {
  transition: transform 0.6s ease-in-out;
}

.carousel-fade .carousel-item {
  opacity: 0;
  transition: opacity 1.5s ease;
}

.carousel-fade .carousel-item.active {
  opacity: 1;
}

.carousel-inner {
  height: 100%;
}

.carousel-item {
  height: 100%;
  position: relative;
}

.carousel-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(46, 125, 148, 0.85) 0%, rgba(26, 77, 92, 0.75) 100%);
  z-index: 1;
}

.carousel-item img {
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.carousel-caption {
  z-index: 2;
  top: 50%;
  transform: translateY(-50%);
  bottom: auto;
  left: 5%;
  right: 5%;
  text-align: left;
  padding: 2rem;
}

.carousel-caption h1,
.carousel-caption h2,
.carousel-caption .display-2,
.carousel-caption .display-3 {
  color: #ffffff !important;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
  animation: fadeInUp 1s ease;
  font-weight: 700 !important;
}

.carousel-caption p,
.carousel-caption .lead {
  color: rgba(255,255,255,0.95) !important;
  text-shadow: 1px 1px 5px rgba(0,0,0,0.3);
  animation: fadeInUp 1.2s ease;
}

.carousel-caption .btn {
  animation: fadeInUp 1.4s ease;
  margin-top: 1rem;
}

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

.carousel-indicators {
  z-index: 3;
  margin-bottom: 2rem;
}

.carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0 8px;
  background-color: rgba(255,255,255,0.5) !important;
  border: 2px solid #ffffff !important;
  transition: all var(--transition-speed) ease;
}

.carousel-indicators button.active {
  background-color: var(--secondary-color) !important;
  transform: scale(1.3);
}

.carousel-control-prev,
.carousel-control-next {
  width: 60px;
  height: 60px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(46, 125, 148, 0.8) !important;
  border-radius: 50%;
  transition: all var(--transition-speed) ease;
  opacity: 0.7;
  z-index: 3;
}

.carousel-control-prev {
  left: 2rem;
}

.carousel-control-next {
  right: 2rem;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background: var(--secondary-color) !important;
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
}

/* ===== CARDS ===== */
.card {
  border-radius: 16px !important;
  overflow: hidden;
  transition: all var(--transition-speed) ease !important;
  background: #ffffff !important;
  border: none !important;
  height: 100%;
}

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

.card.shadow,
.shadow {
  box-shadow: var(--box-shadow) !important;
}

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

.card-img-top {
  height: 250px;
  object-fit: cover;
  transition: all 0.6s ease;
}

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

.card-body {
  padding: 2rem !important;
}

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

.card-text {
  color: var(--text-light) !important;
  line-height: 1.8;
}

/* ===== SECTIONS ===== */
section {
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.py-5 {
  padding: 4rem 0 !important;
}

.my-4 {
  margin: 3rem 0 !important;
}

.my-5 {
  margin: 4rem 0 !important;
}

.container,
.container-fluid {
  position: relative;
  z-index: 2;
}

/* ===== IMAGES ===== */
.img-fluid {
  border-radius: 16px;
  transition: all var(--transition-speed) ease;
}

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

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

.shadow-lg {
  box-shadow: var(--box-shadow-hover) !important;
}

.shadow-sm {
  box-shadow: 0 2px 10px rgba(46, 125, 148, 0.1) !important;
}

.object-fit-cover {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

img:hover {
  transform: scale(1.02);
}

/* ===== FORMS ===== */
.form-control,
.form-select {
  border: 2px solid rgba(46, 125, 148, 0.2) !important;
  border-radius: 10px !important;
  padding: 0.75rem 1rem !important;
  transition: all var(--transition-speed) ease !important;
  background-color: #ffffff !important;
  color: var(--text-dark) !important;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 0.25rem rgba(46, 125, 148, 0.15) !important;
  background-color: #ffffff !important;
}

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

.form-check-input {
  border: 2px solid var(--primary-color) !important;
  cursor: pointer;
}

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

.form-check-label {
  color: var(--text-dark) !important;
  cursor: pointer;
}

.invalid-feedback {
  color: #dc3545 !important;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.form-control.is-invalid,
.form-select.is-invalid {
  border-color: #dc3545 !important;
}

.needs-validation .form-control:invalid {
  border-color: #dc3545 !important;
}

/* ===== BADGES ===== */
.badge {
  padding: 0.5rem 1rem !important;
  border-radius: 20px !important;
  font-weight: 600 !important;
  letter-spacing: 0.5px;
  font-size: 0.85rem !important;
}

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

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

/* ===== ALERTS ===== */
.alert {
  border-radius: 12px !important;
  border: none !important;
  padding: 1.25rem !important;
  margin-bottom: 1.5rem !important;
}

.alert-primary {
  background-color: rgba(46, 125, 148, 0.1) !important;
  color: var(--primary-color) !important;
}

.alert-secondary {
  background-color: rgba(244, 162, 97, 0.1) !important;
  color: var(--dark-secondary) !important;
}

/* ===== MODAL ===== */
.modal-content {
  border-radius: 20px !important;
  border: none !important;
  box-shadow: var(--box-shadow-hover);
  overflow: hidden;
}

.modal-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-primary) 100%) !important;
  color: #ffffff !important;
  border: none !important;
  padding: 1.5rem 2rem !important;
}

.modal-title {
  color: #ffffff !important;
  font-weight: 700 !important;
}

.modal-body {
  padding: 2rem !important;
}

.modal-lg {
  max-width: 900px !important;
}

.modal-xl {
  max-width: 1200px !important;
}

.modal.fade .modal-dialog {
  transition: transform 0.4s ease;
}

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

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

.accordion-button {
  background-color: #ffffff !important;
  color: var(--primary-color) !important;
  font-weight: 600 !important;
  padding: 1.25rem 1.5rem !important;
  border: none !important;
  transition: all var(--transition-speed) ease;
}

.accordion-button:not(.collapsed) {
  background: linear-gradient(135deg, rgba(46, 125, 148, 0.1) 0%, rgba(26, 77, 92, 0.05) 100%) !important;
  color: var(--primary-color) !important;
  box-shadow: none !important;
}

.accordion-button:focus {
  box-shadow: none !important;
  border: none !important;
}

.accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%232E7D94'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
}

.accordion-body {
  padding: 1.5rem !important;
  color: var(--text-light) !important;
  line-height: 1.8;
}

.accordion-flush .accordion-item {
  border-radius: 0 !important;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  background: transparent !important;
  padding: 1rem 0 !important;
  margin-bottom: 0 !important;
}

.breadcrumb-item {
  color: var(--text-light) !important;
}

.breadcrumb-item.active {
  color: var(--primary-color) !important;
  font-weight: 600;
}

.breadcrumb-item + .breadcrumb-item::before {
  color: var(--text-light) !important;
}

.breadcrumb-item a {
  color: var(--primary-color) !important;
  text-decoration: none;
  transition: all var(--transition-speed) ease;
}

.breadcrumb-item a:hover {
  color: var(--secondary-color) !important;
}

/* ===== TABLE ===== */
.table-responsive {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

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

.table thead {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-primary) 100%) !important;
  color: #ffffff !important;
}

.table thead th {
  color: #ffffff !important;
  font-weight: 600 !important;
  padding: 1rem !important;
  border: none !important;
}

.table tbody tr {
  transition: all var(--transition-speed) ease;
  border-bottom: 1px solid rgba(46, 125, 148, 0.1);
}

.table tbody tr:hover {
  background-color: rgba(46, 125, 148, 0.05) !important;
  transform: scale(1.01);
}

.table tbody td {
  padding: 1rem !important;
  vertical-align: middle;
  color: var(--text-dark) !important;
}

/* ===== PROGRESS ===== */
.progress {
  height: 12px !important;
  border-radius: 10px !important;
  background-color: rgba(46, 125, 148, 0.1) !important;
  overflow: hidden;
}

.progress-bar {
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--light-primary) 100%) !important;
  transition: width 1s ease !important;
  border-radius: 10px !important;
}

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

.list-unstyled li {
  padding: 0.5rem 0;
  color: var(--text-dark) !important;
}

/* ===== PORTFOLIO ===== */
.portfolio-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.filter-btn {
  padding: 0.75rem 2rem !important;
  background: #ffffff !important;
  color: var(--primary-color) !important;
  border: 2px solid var(--primary-color) !important;
  border-radius: 30px !important;
  font-weight: 600 !important;
  cursor: pointer;
  transition: all var(--transition-speed) ease !important;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary-color) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(46, 125, 148, 0.3);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.portfolio-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--box-shadow);
  transition: all var(--transition-speed) ease;
}

.portfolio-item:hover {
  transform: translateY(-10px);
  box-shadow: var(--box-shadow-hover);
}

.portfolio-item img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  transition: all 0.6s ease;
}

.portfolio-item:hover img {
  transform: scale(1.15);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(46, 125, 148, 0.95) 0%, rgba(244, 162, 97, 0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: all 0.5s ease;
  padding: 2rem;
}

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

.portfolio-overlay h3,
.portfolio-overlay h4,
.portfolio-overlay .h4 {
  color: #ffffff !important;
  margin-bottom: 1rem;
  transform: translateY(20px);
  transition: all 0.5s ease 0.1s;
}

.portfolio-overlay p {
  color: rgba(255,255,255,0.9) !important;
  transform: translateY(20px);
  transition: all 0.5s ease 0.2s;
  text-align: center;
}

.portfolio-overlay .btn {
  transform: translateY(20px);
  transition: all 0.5s ease 0.3s;
}

.portfolio-item:hover .portfolio-overlay h3,
.portfolio-item:hover .portfolio-overlay h4,
.portfolio-item:hover .portfolio-overlay p,
.portfolio-item:hover .portfolio-overlay .btn {
  transform: translateY(0);
}

.view-project,
.open-lightbox {
  background: #ffffff !important;
  color: var(--primary-color) !important;
  padding: 0.75rem 2rem !important;
  border-radius: 30px !important;
  font-weight: 600 !important;
  text-decoration: none;
  display: inline-block;
  transition: all var(--transition-speed) ease;
}

.view-project:hover,
.open-lightbox:hover {
  background: var(--secondary-color) !important;
  color: #ffffff !important;
  transform: scale(1.1);
}

/* ===== BOOTSTRAP ICONS ===== */
.bi {
  display: inline-block;
  font-size: 1.2rem;
  line-height: 1;
  vertical-align: middle;
}

.bi-geo-alt-fill,
.bi-geo-alt,
.bi-telephone-fill,
.bi-telephone,
.bi-envelope-fill,
.bi-envelope {
  color: var(--primary-color) !important;
}

/* ===== TEXT UTILITIES ===== */
.text-white {
  color: #ffffff !important;
}

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

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

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

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

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

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

a {
  color: var(--primary-color) !important;
  text-decoration: none;
  transition: all var(--transition-speed) ease;
}

a:hover {
  color: var(--secondary-color) !important;
}

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

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

/* ===== BACKGROUND UTILITIES ===== */
.bg-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-primary) 100%) !important;
}

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

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

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

/* ===== POSITION UTILITIES ===== */
.position-relative {
  position: relative !important;
}

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

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

.position-sticky {
  position: sticky !important;
  top: 0;
  z-index: 1020;
}

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

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

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

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

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

/* ===== SPACING UTILITIES ===== */
.p-3 {
  padding: 1.5rem !important;
}

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

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

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

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

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

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

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

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

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

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

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

.ps-lg-4 {
  padding-left: 2rem !important;
}

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

.pe-lg-4 {
  padding-right: 2rem !important;
}

.m-0 {
  margin: 0 !important;
}

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

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

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

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

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

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

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

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

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

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

.mt-lg-0 {
  margin-top: 0 !important;
}

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

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

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

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

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

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

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

/* ===== FLEX UTILITIES ===== */
.d-flex {
  display: flex !important;
}

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

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

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

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

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

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

.flex-sm-row {
  flex-direction: row !important;
}

.flex-md-row-reverse {
  flex-direction: row-reverse !important;
}

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

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

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

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

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

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

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

.gap-4 {
  gap: 2rem !important;
}

.g-0 {
  gap: 0 !important;
}

.g-3 > * {
  padding: 1rem;
}

.g-4 > * {
  padding: 1.5rem;
}

.g-5 > * {
  padding: 2rem;
}

/* ===== GRID UTILITIES ===== */
.row {
  margin-left: -0.75rem;
  margin-right: -0.75rem;
}

.row > * {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.col-12 {
  width: 100%;
}

/* ===== RATIO ===== */
.ratio {
  position: relative;
  width: 100%;
}

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

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

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

/* ===== OVERFLOW ===== */
.overflow-hidden {
  overflow: hidden !important;
}

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

@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 fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

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

/* ===== FOOTER ===== */
footer {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-primary) 100%) !important;
  color: #ffffff !important;
  padding: 3rem 0 1rem;
  margin-top: 5rem;
}

footer h2,
footer h3,
footer h4,
footer h5,
footer .h2,
footer .h3,
footer .h4,
footer .h5 {
  color: #ffffff !important;
}

footer p,
footer li,
footer a {
  color: rgba(255,255,255,0.85) !important;
}

footer a:hover {
  color: var(--secondary-color) !important;
}

footer .bi {
  color: #ffffff !important;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1199.98px) {
  .display-1 { font-size: 4rem !important; }
  .display-2 { font-size: 3.5rem !important; }
  .display-3 { font-size: 3rem !important; }
  .display-4 { font-size: 2.5rem !important; }
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(46, 125, 148, 0.98);
    padding: 1.5rem;
    margin-top: 1rem;
    border-radius: 12px;
    animation: slideDown 0.3s ease;
  }
  
  .navbar-light .navbar-collapse {
    background: rgba(255,255,255,0.98);
  }
  
  .nav-link {
    padding: 0.75rem 1rem !important;
    margin: 0.25rem 0;
  }
  
  .carousel {
    height: 70vh;
    min-height: 500px;
  }
  
  .carousel-caption {
    padding: 1rem;
  }
  
  .carousel-control-prev,
  .carousel-control-next {
    width: 50px;
    height: 50px;
  }
  
  .carousel-control-prev { left: 1rem; }
  .carousel-control-next { right: 1rem; }
  
  section {
    padding: 3rem 0;
  }
  
  .display-1 { font-size: 3rem !important; }
  .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; }
  
  .portfolio-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
  }
  
  .col-lg-6,
  .col-lg-7,
  .col-lg-8,
  .col-lg-10,
  .col-lg-12 {
    width: 100%;
  }
  
  .order-lg-1 { order: 1; }
  .order-lg-2 { order: 2; }
  
  .mb-lg-0 { margin-bottom: 1.5rem !important; }
}

@media (max-width: 767.98px) {
  .carousel {
    height: 60vh;
    min-height: 450px;
  }
  
  .carousel-caption {
    left: 3%;
    right: 3%;
  }
  
  .display-1 { font-size: 2.5rem !important; }
  .display-2 { font-size: 2rem !important; }
  .display-3 { font-size: 1.75rem !important; }
  .display-4 { font-size: 1.5rem !important; }
  
  .btn-lg {
    padding: 0.75rem 1.5rem !important;
    font-size: 1rem !important;
  }
  
  .card-img-top {
    height: 200px;
  }
  
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .portfolio-item img {
    height: 250px;
  }
  
  .col-md-3,
  .col-md-4,
  .col-md-5,
  .col-md-6,
  .col-md-7 {
    width: 100%;
  }
  
  .text-md-end,
  .text-md-start {
    text-align: center !important;
  }
  
  .flex-md-row-reverse {
    flex-direction: column !important;
  }
  
  section {
    padding: 2.5rem 0;
  }
}

@media (max-width: 575.98px) {
  .navbar-brand {
    font-size: 1.25rem !important;
  }
  
  .carousel {
    height: 50vh;
    min-height: 400px;
  }
  
  .carousel-caption {
    padding: 0.5rem;
  }
  
  .display-1 { font-size: 2rem !important; }
  .display-2 { font-size: 1.75rem !important; }
  .display-3 { font-size: 1.5rem !important; }
  .display-4 { font-size: 1.35rem !important; }
  
  .btn {
    padding: 0.6rem 1.25rem !important;
    font-size: 0.9rem !important;
  }
  
  .card-body {
    padding: 1.25rem !important;
  }
  
  .px-4 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
  
  .col-sm-6 {
    width: 50%;
  }
  
  .flex-sm-row {
    flex-direction: row !important;
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  .navbar,
  .carousel-control-prev,
  .carousel-control-next,
  .carousel-indicators,
  footer,
  .btn,
  .modal {
    display: none !important;
  }
  
  body {
    background: white !important;
  }
  
  a {
    color: var(--primary-color) !important;
    text-decoration: underline !important;
  }
}

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

:focus-visible {
  outline: 3px solid var(--secondary-color) !important;
  outline-offset: 2px;
}

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

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

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-primary) 100%);
  border-radius: 10px;
  border: 2px solid var(--arctic-white);
}

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

/* ===== SELECTION ===== */
::selection {
  background-color: var(--secondary-color);
  color: #ffffff;
}

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