/* Architecture Studio - Professional Navy & Crimson Theme */

/* ===== ROOT VARIABLES ===== */
:root {
  --primary-color: #1a237e;
  --secondary-color: #c62828;
  --primary-light: #3949ab;
  --primary-dark: #0d1642;
  --secondary-light: #ef5350;
  --secondary-dark: #8e0000;
  --text-dark: #212529;
  --text-light: #ffffff;
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  --border-color: #dee2e6;
  --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  --shadow-md: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
  --transition-base: all 0.3s ease;
  --transition-slow: all 0.5s ease;
}

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

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(--bg-white);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .display-1, .display-2, .display-3, .display-4, .display-5 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary-dark) !important;
}

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

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

.container, .container-fluid {
  padding-left: 15px;
  padding-right: 15px;
}

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

.navbar-dark {
  background-color: var(--primary-color) !important;
}

.navbar-brand {
  color: var(--text-light) !important;
  font-size: 1.5rem;
  letter-spacing: 1px;
  transition: var(--transition-base);
}

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

.navbar-brand.fw-bold {
  font-weight: 800 !important;
}

.navbar-toggler {
  border-color: var(--text-light) !important;
  padding: 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.3) !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 {
  align-items: center;
}

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

.nav-item {
  margin: 0 0.5rem;
}

.nav-link {
  color: var(--text-light) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  border-radius: 4px;
  transition: var(--transition-base);
  position: relative;
}

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

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

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

/* ===== HERO SECTION ===== */
.hero-section {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 50%, var(--secondary-dark) 100%);
  position: relative;
  overflow: hidden;
  padding: 8rem 0 4rem;
}

.hero-bg-pattern {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  opacity: 0.1;
  background-image: 
    repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255, 255, 255, 0.1) 35px, rgba(255, 255, 255, 0.1) 70px);
  animation: patternMove 20s linear infinite;
}

@keyframes patternMove {
  0% { transform: translateX(0) translateY(0); }
  100% { transform: translateX(70px) translateY(70px); }
}

.hero-content {
  z-index: 10;
  position: relative;
}

.hero-content .display-2 {
  color: var(--text-light) !important;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease-out;
}

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

.hero-content .lead {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 1.25rem;
  line-height: 1.8;
  animation: fadeInUp 1s ease-out 0.2s both;
}

.animated-underline {
  position: relative;
  display: inline-block;
}

.animated-underline::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary-color), var(--secondary-light));
  animation: underlineExpand 1.5s ease-out 0.5s both;
}

@keyframes underlineExpand {
  0% { width: 0; }
  100% { width: 100%; }
}

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

.cta-wrapper {
  margin-top: 3rem;
  animation: fadeInUp 1s ease-out 0.4s both;
}

.floating-cta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.btn {
  font-weight: 600 !important;
  border-radius: 8px;
  transition: var(--transition-base);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 2px solid transparent;
}

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

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

.btn-primary {
  background-color: var(--secondary-color) !important;
  border-color: var(--secondary-color) !important;
  color: var(--text-light) !important;
}

.btn-primary:hover {
  background-color: var(--secondary-dark) !important;
  border-color: var(--secondary-dark) !important;
  color: var(--text-light) !important;
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

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

.btn-light:hover {
  background-color: var(--bg-light) !important;
  border-color: var(--bg-light) !important;
  color: var(--primary-dark) !important;
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

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

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

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

.btn-outline-primary:hover {
  background-color: var(--secondary-color) !important;
  border-color: var(--secondary-color) !important;
  color: var(--text-light) !important;
}

/* ===== CARDS ===== */
.card {
  border-radius: 12px;
  transition: var(--transition-base);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

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

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

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

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

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

.card-body {
  padding: 1.5rem;
}

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

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

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

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

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

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

/* ===== SERVICES MASONRY ===== */
.services-masonry {
  background-color: var(--bg-light);
  padding: 5rem 0;
}

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

.masonry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 0;
}

.masonry-item .card-body {
  text-align: center;
}

.masonry-item .bi {
  font-size: 2.5rem;
  color: var(--secondary-color) !important;
  margin-bottom: 1rem;
}

.masonry-item .d-inline-block {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  transition: var(--transition-base);
}

.masonry-item:hover .d-inline-block {
  background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
  transform: rotate(5deg) scale(1.1);
}

.masonry-item .h5 {
  color: var(--primary-color) !important;
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.masonry-item .text-muted {
  color: #6c757d !important;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ===== CTA SECTION ===== */
.cta-section {
  background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--secondary-color) 100%);
  padding: 5rem 0;
  color: var(--text-light) !important;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.3;
}

.cta-section h2,
.cta-section .display-3,
.cta-section .display-4 {
  color: var(--text-light) !important;
}

.cta-section p,
.cta-section .lead {
  color: rgba(255, 255, 255, 0.9) !important;
}

/* ===== FOOTER ===== */
footer {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
  color: var(--text-light) !important;
  padding: 4rem 0 2rem;
}

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

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

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

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

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

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

footer .bi {
  margin-right: 0.5rem;
  color: var(--secondary-color) !important;
}

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

/* ===== HERO CAROUSEL ===== */
.hero-carousel {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.carousel {
  height: 100%;
}

.carousel-inner {
  height: 100%;
}

.carousel-item {
  height: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
}

.carousel-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(26, 35, 126, 0.9), rgba(198, 40, 40, 0.7));
  z-index: 1;
}

.carousel-item .container {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
}

.carousel-indicators {
  z-index: 3;
}

.carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--secondary-color) !important;
  border: 2px solid var(--text-light);
  opacity: 0.6;
}

.carousel-indicators button.active {
  opacity: 1;
  transform: scale(1.3);
}

.carousel-control-prev,
.carousel-control-next {
  width: 5%;
  z-index: 3;
  opacity: 0.8;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 3rem;
  height: 3rem;
  background-color: var(--secondary-color);
  border-radius: 50%;
  padding: 0.75rem;
}

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

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

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

/* ===== PARALLAX SECTION ===== */
.parallax-section {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.parallax-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(26, 35, 126, 0.85), rgba(198, 40, 40, 0.85));
}

.parallax-section .container {
  position: relative;
  z-index: 2;
}

.parallax-section h2,
.parallax-section p {
  color: var(--text-light) !important;
}

/* ===== FILTER BUTTONS ===== */
.filter-btn {
  background-color: transparent !important;
  border: 2px solid var(--primary-color) !important;
  color: var(--primary-color) !important;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  font-weight: 600;
  transition: var(--transition-base);
  cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--primary-color) !important;
  color: var(--text-light) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ===== CASE ITEM ===== */
.case-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
}

.case-item img {
  transition: var(--transition-slow);
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-item:hover img {
  transform: scale(1.1);
}

.case-item .card-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(26, 35, 126, 0.95), transparent);
  color: var(--text-light) !important;
  transform: translateY(100%);
  transition: var(--transition-base);
}

.case-item:hover .card-body {
  transform: translateY(0);
}

.case-item .card-title,
.case-item .card-text {
  color: var(--text-light) !important;
}

/* ===== TEAM CARD ===== */
.team-card {
  text-align: center;
  transition: var(--transition-base);
}

.team-card:hover {
  transform: translateY(-10px);
}

.team-card .card-img-top {
  border-radius: 12px 12px 0 0;
  filter: grayscale(100%);
  transition: var(--transition-base);
}

.team-card:hover .card-img-top {
  filter: grayscale(0%);
}

/* ===== MODAL ===== */
.modal {
  z-index: 1055;
}

.modal-content {
  border-radius: 12px;
  border: none;
  overflow: hidden;
}

.modal-header {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: var(--text-light) !important;
  border-bottom: none;
  padding: 1.5rem;
}

.modal-title {
  color: var(--text-light) !important;
  font-weight: 700;
}

.modal-body {
  padding: 2rem;
}

.modal-dialog-centered {
  display: flex;
  align-items: center;
  min-height: calc(100% - 1rem);
}

.modal-dialog-scrollable .modal-body {
  overflow-y: auto;
}

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

.btn-close,
.btn-close-white {
  opacity: 1 !important;
  background-color: var(--text-light);
  border-radius: 50%;
  padding: 0.5rem;
}

.btn-close-white {
  filter: invert(1);
}

/* ===== FORMS ===== */
.form-label {
  color: var(--primary-color) !important;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.form-control,
.form-select {
  border: 2px solid var(--border-color);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  transition: var(--transition-base);
  color: var(--text-dark) !important;
  background-color: var(--bg-white) !important;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 0.25rem rgba(26, 35, 126, 0.15) !important;
  outline: none;
}

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

.invalid-feedback {
  color: var(--secondary-color) !important;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.form-control.is-invalid,
.form-select.is-invalid {
  border-color: var(--secondary-color) !important;
}

.form-check-input {
  border: 2px solid var(--border-color);
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.15rem;
  cursor: pointer;
}

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

.form-check-input:focus {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 0.25rem rgba(26, 35, 126, 0.15) !important;
}

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

.needs-validation .form-control:valid {
  border-color: #198754 !important;
}

/* ===== CALENDAR WIDGET ===== */
.calendar-widget {
  background-color: var(--bg-white);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.calendar-widget .bi-calendar-check,
.calendar-widget .bi-calendar3 {
  color: var(--primary-color) !important;
  font-size: 1.5rem;
}

/* ===== ACCORDION ===== */
.accordion {
  border: none;
}

.accordion-item {
  border: 1px solid var(--border-color);
  border-radius: 8px !important;
  margin-bottom: 1rem;
  overflow: hidden;
}

.accordion-header {
  margin-bottom: 0;
}

.accordion-button {
  background-color: var(--bg-light) !important;
  color: var(--primary-color) !important;
  font-weight: 600;
  padding: 1.25rem 1.5rem;
  border: none;
  transition: var(--transition-base);
}

.accordion-button:not(.collapsed) {
  background-color: var(--primary-color) !important;
  color: var(--text-light) !important;
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.25rem rgba(26, 35, 126, 0.15) !important;
  border-color: transparent;
}

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

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

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

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

.accordion-collapse {
  border: none;
}

/* ===== NAVIGATION PILLS ===== */
.nav-pills {
  gap: 0.5rem;
}

.nav-pills .nav-link {
  color: var(--primary-color) !important;
  background-color: transparent;
  border-radius: 8px;
  padding: 1rem 1.5rem;
  font-weight: 600;
  transition: var(--transition-base);
  border: 2px solid transparent;
}

.nav-pills .nav-link:hover {
  background-color: var(--bg-light) !important;
  border-color: var(--primary-color);
}

.nav-pills .nav-link.active {
  background-color: var(--primary-color) !important;
  color: var(--text-light) !important;
  border-color: var(--primary-color);
}

/* ===== TAB CONTENT ===== */
.tab-content {
  padding: 2rem 0;
}

.tab-pane {
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ===== STICKY SIDEBAR ===== */
.sticky-top {
  position: sticky;
  top: 100px;
  z-index: 1020;
}

.toc-sidebar {
  background-color: var(--bg-white);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.toc-link {
  color: var(--primary-color) !important;
  text-decoration: none;
  display: block;
  padding: 0.5rem 1rem;
  border-left: 3px solid transparent;
  transition: var(--transition-base);
}

.toc-link:hover,
.toc-link.active {
  background-color: var(--bg-light);
  border-left-color: var(--secondary-color);
  color: var(--secondary-color) !important;
  padding-left: 1.5rem;
}

/* ===== CONTENT WRAPPER ===== */
.content-wrapper {
  max-width: 1400px;
  margin: 0 auto;
}

.privacy-content,
.privacy-section {
  padding: 2rem 0;
}

.privacy-section h2,
.privacy-section h3 {
  color: var(--primary-color) !important;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.privacy-section p,
.privacy-section ul,
.privacy-section ol {
  color: var(--text-dark) !important;
  line-height: 1.8;
  margin-bottom: 1rem;
}

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

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

.alert-heading {
  color: var(--primary-color) !important;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

/* ===== LAST UPDATED BANNER ===== */
.last-updated-banner {
  background-color: var(--bg-light);
  padding: 1rem;
  border-radius: 8px;
  border-left: 4px solid var(--secondary-color);
  margin-bottom: 2rem;
}

/* ===== UTILITY CLASSES ===== */
.position-relative { position: relative !important; }
.position-absolute { position: absolute !important; }
.overflow-hidden { overflow: hidden !important; }
.overflow-auto { overflow: auto !important; }

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

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

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

.flex-column { flex-direction: column !important; }
.flex-wrap { flex-wrap: wrap !important; }
.flex-shrink-0 { flex-shrink: 0 !important; }

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

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

.text-white { color: var(--text-light) !important; }
.text-white-50 { color: rgba(255, 255, 255, 0.5) !important; }
.text-dark { color: var(--text-dark) !important; }
.text-muted { color: #6c757d !important; }

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

.border-0 { border: none !important; }
.border-2 { border-width: 2px !important; }
.border-4 { border-width: 4px !important; }
.border-start { border-left: 1px solid var(--border-color) !important; }
.border-end { border-right: 1px solid var(--border-color) !important; }

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

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

.top-0 { top: 0 !important; }
.bottom-0 { bottom: 0 !important; }
.start-0 { left: 0 !important; }
.end-0 { right: 0 !important; }

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

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

.object-fit-cover { object-fit: cover !important; }

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

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

.fs-3 { font-size: 1.75rem !important; }
.fs-4 { font-size: 1.5rem !important; }
.fs-5 { font-size: 1.25rem !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !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; }
.mb-lg-0 { margin-bottom: 0 !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; }
.my-5 { margin-top: 3rem !important; margin-bottom: 3rem !important; }

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

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

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

.p-0 { padding: 0 !important; }
.p-3 { padding: 1rem !important; }
.p-4 { padding: 1.5rem !important; }
.p-5 { padding: 3rem !important; }

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

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

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

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

.ps-4 { padding-left: 1.5rem !important; }
.pe-md-5 { padding-right: 3rem !important; }
.ps-md-5 { padding-left: 3rem !important; }

.g-0 { gap: 0 !important; }
.g-3 { gap: 1rem !important; }
.g-4 { gap: 1.5rem !important; }

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

@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: rgba(26, 35, 126, 0.98);
    padding: 1.5rem;
    margin-top: 1rem;
    border-radius: 8px;
  }
  
  .nav-item {
    margin: 0.5rem 0;
  }
  
  .hero-section {
    padding: 6rem 0 3rem;
  }
  
  .display-2 { font-size: 3rem; }
  .display-3 { font-size: 2.5rem; }
  .display-4 { font-size: 2rem; }
  .display-5 { font-size: 1.75rem; }
  
  .masonry-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
  }
  
  .col-lg-7, .col-lg-8, .col-lg-10 {
    width: 100%;
  }
  
  .text-lg-end {
    text-align: center !important;
  }
  
  .d-md-block {
    display: block !important;
  }
  
  .sticky-top {
    position: relative;
    top: 0;
  }
}

@media (max-width: 767.98px) {
  .display-2 { font-size: 2.5rem; }
  .display-3 { font-size: 2rem; }
  .display-4 { font-size: 1.75rem; }
  .display-5 { font-size: 1.5rem; }
  
  .hero-section {
    min-height: auto;
    padding: 5rem 0 3rem;
  }
  
  .btn-lg {
    padding: 0.875rem 2rem !important;
  }
  
  .floating-cta {
    flex-direction: column;
    gap: 1rem;
  }
  
  .masonry-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .services-masonry,
  .cta-section {
    padding: 3rem 0;
  }
  
  .card-body {
    padding: 1rem;
  }
  
  .modal-dialog {
    margin: 0.5rem;
  }
  
  .carousel-control-prev,
  .carousel-control-next {
    width: 10%;
  }
  
  .carousel-control-prev-icon,
  .carousel-control-next-icon {
    width: 2rem;
    height: 2rem;
  }
  
  .parallax-section {
    background-attachment: scroll;
    min-height: 400px;
  }
  
  .d-md-block {
    display: none !important;
  }
  
  .text-md-start,
  .text-md-end {
    text-align: center !important;
  }
  
  .pe-md-5,
  .ps-md-5 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}

@media (max-width: 575.98px) {
  .container,
  .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .display-2 { font-size: 2rem; }
  .display-3 { font-size: 1.75rem; }
  .display-4 { font-size: 1.5rem; }
  .display-5 { font-size: 1.25rem; }
  
  .lead { font-size: 1rem; }
  
  .btn {
    font-size: 0.875rem !important;
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem !important;
  }
  
  .navbar-brand {
    font-size: 1.25rem;
  }
  
  .hero-section {
    padding: 4rem 0 2rem;
  }
  
  .services-masonry,
  .cta-section {
    padding: 2rem 0;
  }
  
  footer {
    padding: 2rem 0 1rem;
  }
  
  .card-body.p-5 {
    padding: 1.5rem !important;
  }
  
  .modal-body {
    padding: 1.5rem;
  }
  
  .filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }
  
  .col-sm-6 {
    width: 100%;
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  .navbar,
  .cta-section,
  .btn,
  .modal,
  footer {
    display: none !important;
  }
  
  body {
    color: #000 !important;
    background: #fff !important;
  }
  
  .hero-section {
    background: none !important;
    color: #000 !important;
  }
  
  a {
    color: #000 !important;
    text-decoration: underline !important;
  }
}

/* ===== ACCESSIBILITY ===== */
:focus-visible {
  outline: 3px solid var(--secondary-color);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

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

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

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

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

::-moz-selection {
  background-color: var(--secondary-color);
  color: var(--text-light);
}