/* Nordic Forest Architecture Studio - Custom CSS */

/* ===========================
   ROOT VARIABLES & RESET
   =========================== */
:root {
  --primary-color: #2E3440;
  --secondary-color: #88C999;
  --light-bg: #ECEFF4;
  --dark-text: #2E3440;
  --light-text: #FFFFFF;
  --accent-green: #A3BE8C;
  --forest-dark: #4C566A;
  --mist-gray: #D8DEE9;
  --transition-speed: 0.3s;
  --shadow-soft: 0 10px 40px rgba(46, 52, 64, 0.15);
  --shadow-hover: 0 15px 50px rgba(46, 52, 64, 0.25);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

/* ===========================
   TYPOGRAPHY
   =========================== */
h1, h2, h3, h4, h5, h6,
.display-2, .display-3, .display-4, .display-5 {
  font-weight: 700 !important;
  color: var(--primary-color) !important;
  letter-spacing: -0.02em;
  line-height: 1.2 !important;
}

.display-2 {
  font-size: 4.5rem !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

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

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

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

.h1, .h2, .h3, .h4, .h5 {
  color: var(--primary-color) !important;
}

.lead {
  font-size: 1.25rem !important;
  color: var(--forest-dark) !important;
  font-weight: 400;
}

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

.text-muted {
  color: var(--forest-dark) !important;
  opacity: 0.8;
}

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

/* ===========================
   NAVIGATION
   =========================== */
.navbar {
  background: linear-gradient(180deg, rgba(46, 52, 64, 0.95) 0%, rgba(46, 52, 64, 0.85) 100%) !important;
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: all var(--transition-speed) ease;
  padding: 1.5rem 0 !important;
}

.navbar.scrolled {
  background: rgba(46, 52, 64, 0.98) !important;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
  padding: 0.8rem 0 !important;
}

.navbar-brand {
  color: var(--light-text) !important;
  font-size: 1.8rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em;
  transition: transform var(--transition-speed) ease;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

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

.navbar-nav {
  align-items: center;
}

.nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500 !important;
  font-size: 1rem !important;
  padding: 0.5rem 1rem !important;
  position: relative;
  transition: all var(--transition-speed) ease;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

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

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

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

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

.navbar-toggler:hover {
  background-color: var(--secondary-color) !important;
  border-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%28255, 255, 255, 0.95%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* ===========================
   HERO SLIDESHOW
   =========================== */
.hero-slideshow {
  position: relative;
  height: 100vh;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--forest-dark) 100%);
}

.slideshow-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  background-size: cover;
  background-position: center;
}

.slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(46, 52, 64, 0.5) 0%, rgba(46, 52, 64, 0.7) 100%);
  z-index: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.75);
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 10;
  width: 90%;
  max-width: 1200px;
  animation: fadeInUp 1s ease-out;
}

.hero-content h1,
.hero-content .display-2 {
  color: var(--light-text) !important;
  margin-bottom: 1.5rem;
  text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-content p {
  color: rgba(255, 255, 255, 0.95) !important;
  font-size: 1.3rem;
  margin-bottom: 2.5rem;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
  animation: fadeInUp 1s ease-out 0.4s both;
}

.slideshow-indicators {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 1rem;
}

.indicator {
  width: 50px;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  border: none;
  padding: 0;
  border-radius: 2px;
}

.indicator:hover {
  background-color: rgba(255, 255, 255, 0.6);
  transform: scaleX(1.1);
}

.indicator.active {
  background-color: var(--secondary-color) !important;
  transform: scaleX(1.2);
}

/* ===========================
   BUTTONS
   =========================== */
.btn {
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 50px;
  padding: 0.8rem 2rem !important;
  transition: all var(--transition-speed) ease;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

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

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

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

.btn-sm {
  padding: 0.5rem 1.5rem !important;
  font-size: 0.9rem !important;
}

.btn-outline-light {
  color: var(--light-text) !important;
  border-color: rgba(255, 255, 255, 0.9) !important;
  background-color: transparent !important;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.btn-outline-light:hover {
  color: var(--primary-color) !important;
  background-color: var(--light-text) !important;
  border-color: var(--light-text) !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  text-shadow: none;
}

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

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

.btn[style*="background-color: #88C999"],
.btn-primary {
  color: var(--light-text) !important;
  background-color: var(--secondary-color) !important;
  border-color: var(--secondary-color) !important;
  box-shadow: 0 5px 15px rgba(136, 201, 153, 0.3);
}

.btn[style*="background-color: #88C999"]:hover,
.btn-primary:hover {
  background-color: var(--accent-green) !important;
  border-color: var(--accent-green) !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(136, 201, 153, 0.4);
}

.btn[style*="background-color: #2E3440"] {
  color: var(--light-text) !important;
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
}

.btn[style*="background-color: #2E3440"]:hover {
  background-color: var(--forest-dark) !important;
  border-color: var(--forest-dark) !important;
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

/* ===========================
   CARDS & SERVICE CARDS
   =========================== */
.card {
  border: none !important;
  border-radius: 15px !important;
  overflow: hidden;
  transition: all var(--transition-speed) ease;
  background-color: #FFFFFF !important;
}

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

.service-card {
  background-color: #FFFFFF;
  border-radius: 15px;
  padding: 2.5rem;
  transition: all var(--transition-speed) ease;
  border: 2px solid transparent;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary-color) 0%, var(--accent-green) 100%);
  transform: scaleX(0);
  transition: transform var(--transition-speed) ease;
}

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

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card .bi {
  color: var(--secondary-color) !important;
  font-size: 3rem !important;
  margin-bottom: 1.5rem;
  transition: all var(--transition-speed) ease;
}

.service-card:hover .bi {
  transform: scale(1.1) rotate(5deg);
  color: var(--accent-green) !important;
}

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

.service-card p {
  color: var(--forest-dark);
  line-height: 1.8;
}

.card-body {
  padding: 2rem;
}

.card-footer {
  background-color: var(--light-bg) !important;
  border-top: 1px solid var(--mist-gray) !important;
  padding: 1.5rem;
}

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

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

/* ===========================
   PORTFOLIO
   =========================== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  cursor: pointer;
  height: 400px;
  background-color: var(--primary-color);
  transition: all var(--transition-speed) ease;
}

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

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

.portfolio-image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  filter: brightness(0.9);
}

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

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent 0%, rgba(46, 52, 64, 0.95) 100%);
  opacity: 0;
  transition: opacity var(--transition-speed) ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  color: var(--light-text);
}

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

.portfolio-content h4,
.portfolio-content .h4 {
  color: var(--light-text) !important;
  margin-bottom: 0.5rem;
  transform: translateY(20px);
  transition: transform var(--transition-speed) ease 0.1s;
}

.portfolio-content p {
  color: rgba(255, 255, 255, 0.9) !important;
  margin-bottom: 1rem;
  transform: translateY(20px);
  transition: transform var(--transition-speed) ease 0.2s;
}

.portfolio-content .badge {
  transform: translateY(20px);
  transition: transform var(--transition-speed) ease 0.3s;
}

.portfolio-item:hover .portfolio-content h4,
.portfolio-item:hover .portfolio-content p,
.portfolio-item:hover .portfolio-content .badge {
  transform: translateY(0);
}

.badge {
  background-color: var(--secondary-color) !important;
  color: var(--light-text) !important;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.85rem;
  display: inline-block;
  margin-right: 0.5rem;
  margin-top: 0.5rem;
}

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

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--primary-color) !important;
  color: var(--light-text) !important;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(46, 52, 64, 0.3);
}

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

.form-control,
.form-select {
  border: 2px solid var(--mist-gray) !important;
  border-radius: 10px !important;
  padding: 0.8rem 1.2rem !important;
  transition: all var(--transition-speed) ease;
  background-color: #FFFFFF !important;
  color: var(--dark-text) !important;
  font-size: 1rem;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--secondary-color) !important;
  box-shadow: 0 0 0 0.25rem rgba(136, 201, 153, 0.25) !important;
  outline: none;
}

.form-control::placeholder {
  color: var(--forest-dark);
  opacity: 0.6;
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

.form-check-input {
  border: 2px solid var(--mist-gray) !important;
  width: 1.5em;
  height: 1.5em;
  cursor: pointer;
}

.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(136, 201, 153, 0.25) !important;
}

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

/* ===========================
   SECTIONS
   =========================== */
section {
  padding: 6rem 0;
  position: relative;
}

section:nth-child(even) {
  background-color: #FFFFFF;
}

section:nth-child(odd) {
  background-color: var(--light-bg);
}

.section-title {
  position: relative;
  display: inline-block;
  margin-bottom: 3rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary-color) 0%, var(--accent-green) 100%);
  border-radius: 2px;
}

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

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

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

.shadow {
  box-shadow: 0 5px 20px rgba(46, 52, 64, 0.12) !important;
}

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

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

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

.modal-content {
  border-radius: 20px !important;
  border: none !important;
  overflow: hidden;
  background-color: var(--primary-color) !important;
}

.modal-header {
  background-color: var(--primary-color) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  padding: 1.5rem 2rem;
}

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

.modal-body {
  padding: 2rem;
  background-color: #FFFFFF;
  color: var(--dark-text) !important;
}

.btn-close,
.btn-close-white {
  background-color: rgba(255, 255, 255, 0.2) !important;
  border-radius: 50%;
  opacity: 1 !important;
  width: 2rem;
  height: 2rem;
  padding: 0.5rem;
  transition: all var(--transition-speed) ease;
}

.btn-close:hover,
.btn-close-white:hover {
  background-color: var(--secondary-color) !important;
  transform: rotate(90deg);
}

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

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

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

footer a {
  text-decoration: none;
  transition: all var(--transition-speed) ease;
  display: inline-block;
}

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

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

/* ===========================
   UTILITIES
   =========================== */
.opacity-75 {
  opacity: 0.75 !important;
}

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

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

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

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

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

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

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

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

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

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

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

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

/* ===========================
   SPACING UTILITIES
   =========================== */
.gap-2 {
  gap: 0.5rem !important;
}

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

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

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

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

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

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

/* ===========================
   ICONS
   =========================== */
.bi {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.bi-check-circle-fill {
  color: var(--secondary-color) !important;
}

.bi-arrow-right-circle-fill {
  color: var(--secondary-color) !important;
  transition: transform var(--transition-speed) ease;
}

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

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@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);
  }
}

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

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

/* ===========================
   PRIVACY CONTENT
   =========================== */
.privacy-content {
  max-width: 900px;
  margin: 0 auto;
}

.privacy-content h3,
.privacy-content .h3 {
  color: var(--primary-color) !important;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.privacy-content p {
  color: var(--forest-dark);
  line-height: 1.8;
  margin-bottom: 1.2rem;
}

.privacy-content ul {
  margin-left: 2rem;
  margin-bottom: 1.5rem;
}

.privacy-content li {
  color: var(--forest-dark);
  line-height: 1.8;
  margin-bottom: 0.5rem;
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */
@media (max-width: 1199.98px) {
  .display-2 {
    font-size: 3.5rem !important;
  }
  
  .display-3 {
    font-size: 2.8rem !important;
  }
  
  .display-4 {
    font-size: 2.2rem !important;
  }
  
  .portfolio-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
  
  .portfolio-item-wide {
    grid-column: span 1;
  }
}

@media (max-width: 991.98px) {
  .display-2 {
    font-size: 3rem !important;
  }
  
  .display-3 {
    font-size: 2.3rem !important;
  }
  
  .display-4 {
    font-size: 1.9rem !important;
  }
  
  .navbar-collapse {
    background-color: rgba(46, 52, 64, 0.98);
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 1rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  }
  
  .nav-link {
    padding: 0.8rem 1rem !important;
  }
  
  .nav-link::after {
    display: none;
  }
  
  section {
    padding: 4rem 0;
  }
  
  .hero-content {
    width: 95%;
  }
  
  .portfolio-item-tall {
    grid-row: span 1;
    height: 400px;
  }
  
  .position-sticky {
    position: relative !important;
    top: 0;
  }
}

@media (max-width: 767.98px) {
  .display-2 {
    font-size: 2.5rem !important;
  }
  
  .display-3 {
    font-size: 2rem !important;
  }
  
  .display-4 {
    font-size: 1.6rem !important;
  }
  
  .display-5 {
    font-size: 1.4rem !important;
  }
  
  .btn-lg {
    padding: 0.8rem 1.8rem !important;
    font-size: 1rem !important;
  }
  
  .hero-content p {
    font-size: 1.1rem;
  }
  
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .portfolio-item,
  .portfolio-item-tall {
    height: 350px;
  }
  
  .service-card {
    padding: 2rem;
  }
  
  section {
    padding: 3rem 0;
  }
  
  .px-5 {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }
  
  .slideshow-indicators {
    bottom: 2rem;
  }
  
  .indicator {
    width: 40px;
  }
}

@media (max-width: 575.98px) {
  .display-2 {
    font-size: 2rem !important;
  }
  
  .display-3 {
    font-size: 1.7rem !important;
  }
  
  .display-4 {
    font-size: 1.4rem !important;
  }
  
  .hero-content h1 {
    margin-bottom: 1rem;
  }
  
  .hero-content p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .btn-lg {
    padding: 0.7rem 1.5rem !important;
    font-size: 0.95rem !important;
  }
  
  .gap-3 {
    gap: 0.75rem !important;
  }
  
  .flex-wrap {
    flex-wrap: wrap !important;
  }
  
  .portfolio-item,
  .portfolio-item-tall {
    height: 300px;
  }
  
  .card-body {
    padding: 1.5rem;
  }
  
  .service-card {
    padding: 1.5rem;
  }
  
  .modal-body {
    padding: 1.5rem;
  }
}

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

/* ===========================
   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-visible {
  outline: 3px solid var(--secondary-color) !important;
  outline-offset: 2px;
}

/* ===========================
   SMOOTH SCROLLING
   =========================== */
html {
  scroll-behavior: smooth;
}

/* ===========================
   LOADING ANIMATION
   =========================== */
.loading {
  pointer-events: none;
  opacity: 0.6;
  position: relative;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border: 3px solid var(--mist-gray);
  border-top-color: var(--secondary-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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