/* Architectural Studio - Slate & Amber Theme */
/* Primary Color: #2C3E50 (Slate) */
/* Secondary Color: #E67E22 (Amber) */

/* ==================== ROOT VARIABLES ==================== */
:root {
  --primary-color: #2C3E50;
  --secondary-color: #E67E22;
  --primary-dark: #1a252f;
  --secondary-dark: #d35400;
  --light-bg: #f8f9fa;
  --text-dark: #2C3E50;
  --text-light: #ffffff;
  --overlay-dark: rgba(44, 62, 80, 0.9);
  --overlay-light: rgba(230, 126, 34, 0.9);
  --transition-speed: 0.3s;
  --shadow-sm: 0 2px 4px rgba(44, 62, 80, 0.1);
  --shadow-md: 0 4px 8px rgba(44, 62, 80, 0.15);
  --shadow-lg: 0 8px 16px rgba(44, 62, 80, 0.2);
}

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

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

html {
  scroll-behavior: smooth;
}

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

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

/* ==================== NAVBAR STYLES ==================== */
.navbar {
  background-color: var(--primary-color) !important;
  padding: 1rem 0;
  transition: all var(--transition-speed) ease;
  box-shadow: var(--shadow-md);
  z-index: 1050;
}

.navbar.scrolled {
  padding: 0.5rem 0;
  background-color: var(--primary-dark) !important;
}

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

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

.navbar-dark .navbar-toggler {
  border-color: var(--secondary-color) !important;
  background-color: var(--secondary-color) !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(255, 255, 255, 1)' 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: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500 !important;
  padding: 0.5rem 1rem !important;
  border-radius: 4px;
  transition: all var(--transition-speed) ease;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-light) !important;
  background-color: var(--secondary-color) !important;
  transform: translateY(-2px);
}

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

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

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

.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;
}

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

.btn-primary,
.btn.btn-primary {
  background-color: var(--secondary-color) !important;
  color: var(--text-light) !important;
  box-shadow: var(--shadow-sm);
}

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

.btn-secondary,
.btn.btn-secondary {
  background-color: var(--primary-color) !important;
  color: var(--text-light) !important;
  box-shadow: var(--shadow-sm);
}

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

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

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

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

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

/* ==================== HERO SECTION ==================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: var(--text-light);
  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="%23E67E22" stroke-width="0.5" opacity="0.1"/%3E%3C/svg%3E');
  opacity: 0.1;
  animation: patternMove 20s linear infinite;
}

@keyframes patternMove {
  0% { background-position: 0 0; }
  100% { background-position: 100px 100px; }
}

.hero-section .position-absolute {
  z-index: 0;
  opacity: 0.3;
}

.hero-section .container {
  position: relative;
  z-index: 2;
  padding-top: 100px;
}

.hero-section .display-3,
.hero-section .display-4,
.hero-section .display-5 {
  color: var(--text-light) !important;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease;
}

.hero-section .fs-4,
.hero-section .lead {
  color: rgba(255, 255, 255, 0.95) !important;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 1.2s ease;
}

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

/* ==================== CARDS ==================== */
.card {
  border: none !important;
  border-radius: 8px;
  overflow: hidden;
  transition: all var(--transition-speed) ease;
  box-shadow: var(--shadow-sm);
  height: 100%;
}

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

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

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

.card-body {
  padding: 2rem;
}

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

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

/* ==================== PORTFOLIO STYLES ==================== */
.portfolio-masonry {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

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

.portfolio-item.tall {
  grid-row: span 2;
}

.portfolio-item.wide {
  grid-column: span 2;
}

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

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

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--overlay-dark);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: all 0.5s ease;
  padding: 2rem;
  text-align: center;
}

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

.portfolio-overlay h3,
.portfolio-overlay h4,
.portfolio-overlay h5 {
  color: var(--text-light) !important;
  margin-bottom: 0.5rem;
  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;
}

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

/* ==================== BADGES ==================== */
.badge {
  padding: 0.5rem 1rem;
  font-weight: 600 !important;
  font-size: 0.85rem;
  border-radius: 20px;
  background-color: var(--secondary-color) !important;
  color: var(--text-light) !important;
  transition: all var(--transition-speed) ease;
}

.badge:hover {
  background-color: var(--secondary-dark) !important;
  transform: scale(1.05);
}

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

.form-control,
.form-select {
  border: 2px solid #dee2e6 !important;
  border-radius: 4px;
  padding: 0.75rem 1rem;
  transition: all var(--transition-speed) ease;
  color: var(--text-dark) !important;
  background-color: #ffffff !important;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--secondary-color) !important;
  box-shadow: 0 0 0 0.2rem rgba(230, 126, 34, 0.25) !important;
  outline: none;
}

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

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

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

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

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

.form-range {
  accent-color: var(--secondary-color);
}

.input-group .btn {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.input-group .form-control {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

/* ==================== ALERTS ==================== */
.alert {
  border: none !important;
  border-radius: 8px;
  padding: 1rem 1.5rem;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
}

.alert-warning {
  background-color: #fff3cd !important;
  color: #856404 !important;
}

.alert-info {
  background-color: #d1ecf1 !important;
  color: #0c5460 !important;
}

.alert-success {
  background-color: #d4edda !important;
  color: #155724 !important;
}

/* ==================== ACCORDION ==================== */
.accordion-item {
  border: 1px solid #dee2e6 !important;
  margin-bottom: 1rem;
  border-radius: 8px !important;
  overflow: hidden;
}

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

.accordion-button {
  background-color: var(--light-bg) !important;
  color: var(--text-dark) !important;
  font-weight: 600 !important;
  padding: 1.25rem 1.5rem;
  transition: all var(--transition-speed) ease;
}

.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.2rem rgba(230, 126, 34, 0.25) !important;
  border-color: var(--secondary-color) !important;
}

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

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

.accordion-body {
  padding: 1.5rem;
  color: var(--text-dark) !important;
  background-color: #ffffff;
}

/* ==================== NAV PILLS/TABS ==================== */
.nav-pills .nav-link {
  color: var(--primary-color) !important;
  background-color: transparent !important;
  border-radius: 4px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  transition: all var(--transition-speed) ease;
  margin: 0.25rem;
}

.nav-pills .nav-link:hover {
  background-color: rgba(230, 126, 34, 0.1) !important;
  color: var(--secondary-color) !important;
}

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

.tab-content {
  padding: 2rem;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  margin-top: 1rem;
}

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

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

/* ==================== TYPOGRAPHY ==================== */
.display-3,
.display-4,
.display-5,
.display-6 {
  font-weight: 700 !important;
  color: var(--primary-color) !important;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.h1, .h2, .h3, .h4, .h5, .h6,
h1, h2, h3, h4, h5, h6 {
  font-weight: 700 !important;
  color: var(--primary-color) !important;
  margin-bottom: 1rem;
}

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

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

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

.lead {
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.8;
}

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

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

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

/* ==================== UTILITY CLASSES ==================== */
.bg-primary {
  background-color: var(--primary-color) !important;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.img-fluid {
  max-width: 100% !important;
  height: auto !important;
}

.z-index-2 {
  z-index: 2 !important;
}

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

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

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

.list-unstyled {
  list-style: none !important;
  padding-left: 0 !important;
}

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

/* ==================== ICONS (Bootstrap Icons) ==================== */
.bi {
  display: inline-block;
  font-size: 1.2rem;
  vertical-align: middle;
  transition: all var(--transition-speed) ease;
}

.bi-send,
.bi-geo-alt-fill,
.bi-telephone-fill,
.bi-envelope-fill,
.bi-geo-alt,
.bi-telephone,
.bi-envelope,
.bi-map,
.bi-search,
.bi-bar-chart-fill,
.bi-exclamation-triangle-fill,
.bi-info-circle-fill,
.bi-lightbulb-fill,
.bi-check-circle-fill,
.bi-file-earmark-pdf,
.bi-arrow-up-circle,
.bi-rulers,
.bi-car-front,
.bi-shop,
.bi-layers-fill,
.bi-graph-up-arrow,
.bi-calendar-check-fill,
.bi-linkedin,
.bi-instagram,
.bi-facebook,
.bi-clock-history,
.bi-people,
.bi-arrow-right,
.bi-building,
.bi-chat-dots,
.bi-twitter {
  color: inherit;
}

.btn .bi {
  margin-right: 0.5rem;
}

.btn .bi:last-child {
  margin-right: 0;
  margin-left: 0.5rem;
}

/* ==================== SOCIAL MEDIA ICONS ==================== */
.bi-linkedin,
.bi-instagram,
.bi-facebook,
.bi-twitter {
  font-size: 1.5rem;
  color: var(--primary-color) !important;
  transition: all var(--transition-speed) ease;
}

.bi-linkedin:hover {
  color: #0077b5 !important;
  transform: translateY(-3px);
}

.bi-instagram:hover {
  color: #E4405F !important;
  transform: translateY(-3px);
}

.bi-facebook:hover {
  color: #1877f2 !important;
  transform: translateY(-3px);
}

.bi-twitter:hover {
  color: #1DA1F2 !important;
  transform: translateY(-3px);
}

/* ==================== FOOTER ==================== */
footer {
  background-color: var(--primary-dark);
  color: rgba(255, 255, 255, 0.9) !important;
  padding: 3rem 0 1rem;
  margin-top: 5rem;
}

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

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

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

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

/* ==================== SCROLL TO TOP BUTTON ==================== */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--secondary-color);
  color: var(--text-light);
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  transition: all var(--transition-speed) ease;
  box-shadow: var(--shadow-lg);
  font-size: 1.5rem;
}

.scroll-to-top:hover {
  background-color: var(--secondary-dark);
  transform: translateY(-5px);
}

.scroll-to-top.show {
  display: flex;
  animation: fadeInUp 0.5s ease;
}

/* ==================== SPACING UTILITIES ==================== */
.py-5 {
  padding-top: 3rem !important;
  padding-bottom: 3rem !important;
}

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

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

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

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

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

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

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

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

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

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

.m-4 {
  margin: 2.5rem !important;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.g-3 {
  gap: 2rem !important;
}

.g-4 {
  gap: 2.5rem !important;
}

.gx-4 {
  column-gap: 2.5rem !important;
}

/* ==================== RESPONSIVE STYLES ==================== */

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .col-lg-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
  .col-lg-3 { flex: 0 0 25%; max-width: 25%; }
  .col-lg-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  .col-lg-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
  .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
  .col-lg-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
  .col-lg-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
  .col-lg-9 { flex: 0 0 75%; max-width: 75%; }
  .col-lg-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
  
  .d-lg-block {
    display: block !important;
  }
  
  .order-lg-1 {
    order: 1 !important;
  }
  
  .order-lg-2 {
    order: 2 !important;
  }
  
  .text-lg-end {
    text-align: right !important;
  }
  
  .mt-lg-0 {
    margin-top: 0 !important;
  }
  
  .mb-lg-0 {
    margin-bottom: 0 !important;
  }
  
  .ps-lg-5 {
    padding-left: 3rem !important;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  .col-md-3 { flex: 0 0 25%; max-width: 25%; }
  .col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  .col-md-6 { flex: 0 0 50%; max-width: 50%; }
  
  .text-md-start {
    text-align: left !important;
  }
  
  .text-md-end {
    text-align: right !important;
  }
  
  .mb-md-0 {
    margin-bottom: 0 !important;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (max-width: 991px) {
  .navbar-collapse {
    background-color: var(--primary-dark);
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 8px;
  }
  
  .nav-link {
    margin: 0.25rem 0;
  }
  
  .portfolio-item.wide,
  .portfolio-item.tall {
    grid-column: span 1;
    grid-row: span 1;
  }
  
  .portfolio-masonry {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
  }
  
  .display-3 {
    font-size: 2.5rem !important;
  }
  
  .display-4 {
    font-size: 2rem !important;
  }
  
  .display-5 {
    font-size: 1.75rem !important;
  }
  
  .btn-lg {
    padding: 0.75rem 2rem !important;
    font-size: 1rem !important;
  }
  
  .d-none {
    display: none !important;
  }
  
  .order-2 {
    order: 2 !important;
  }
  
  .order-1 {
    order: 1 !important;
  }
}

@media (max-width: 768px) {
  .hero-section {
    min-height: auto;
    padding: 80px 0 40px;
  }
  
  .hero-section .container {
    padding-top: 40px;
  }
  
  .card-body {
    padding: 1.5rem;
  }
  
  .px-4 {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }
  
  .py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
  
  .col-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
  
  .text-center {
    text-align: center !important;
  }
}

@media (max-width: 576px) {
  .scroll-to-top {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    bottom: 20px;
    right: 20px;
  }
  
  .portfolio-masonry {
    grid-template-columns: 1fr;
  }
  
  .btn-lg {
    padding: 0.6rem 1.5rem !important;
    font-size: 0.9rem !important;
  }
  
  h1, .h1 { font-size: 2rem !important; }
  h2, .h2 { font-size: 1.75rem !important; }
  h3, .h3 { font-size: 1.5rem !important; }
  h4, .h4 { font-size: 1.25rem !important; }
  h5, .h5 { font-size: 1.1rem !important; }
  h6, .h6 { font-size: 1rem !important; }
}

/* ==================== ANIMATIONS ==================== */
@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);
  }
}

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

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

/* ==================== LOADING SPINNER ==================== */
.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(230, 126, 34, 0.3);
  border-top-color: var(--secondary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* ==================== PRINT STYLES ==================== */
@media print {
  .navbar,
  .scroll-to-top,
  footer {
    display: none !important;
  }
  
  body {
    color: #000 !important;
  }
  
  a {
    text-decoration: underline !important;
  }
}

/* ==================== ACCESSIBILITY ==================== */
.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;
}

*:focus {
  outline: 2px solid var(--secondary-color);
  outline-offset: 2px;
}

button:focus,
.btn:focus {
  box-shadow: 0 0 0 0.2rem rgba(230, 126, 34, 0.5) !important;
}

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

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

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

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

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

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