/* Frost Pine Architecture Studio - Custom Styles */

/* ===== ROOT VARIABLES ===== */
:root {
  --primary-color: #2C5F41;
  --secondary-color: #E8F4F8;
  --dark-accent: #1a3a28;
  --light-accent: #f5fafe;
  --text-dark: #1f1f1f;
  --text-light: #ffffff;
  --frost-blue: #d4e9f0;
  --pine-green: #3d7a57;
  --shadow-color: rgba(44, 95, 65, 0.15);
  --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

html {
  scroll-behavior: smooth;
}

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

.display-1 {
  font-size: clamp(2.5rem, 8vw, 5.5rem) !important;
}

.display-3 {
  font-size: clamp(2rem, 6vw, 4rem) !important;
}

.display-4 {
  font-size: clamp(1.8rem, 5vw, 3.5rem) !important;
}

.display-5 {
  font-size: clamp(1.5rem, 4vw, 2.5rem) !important;
}

.display-6 {
  font-size: clamp(1.3rem, 3vw, 2rem) !important;
}

.h2, h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem) !important;
  color: var(--primary-color) !important;
  font-weight: 600 !important;
}

.h3, h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem) !important;
  color: var(--primary-color) !important;
  font-weight: 600 !important;
}

.h4, h4 {
  font-size: clamp(1.1rem, 2vw, 1.5rem) !important;
  color: var(--text-dark) !important;
  font-weight: 600 !important;
}

.h5, h5 {
  font-size: clamp(1rem, 1.5vw, 1.25rem) !important;
  font-weight: 600 !important;
}

.fs-3 {
  font-size: clamp(1.2rem, 2.5vw, 1.75rem) !important;
  color: var(--text-dark) !important;
}

.fs-4 {
  font-size: clamp(1rem, 2vw, 1.5rem) !important;
}

.fs-5 {
  font-size: clamp(0.95rem, 1.5vw, 1.25rem) !important;
  color: var(--text-dark) !important;
}

.lead {
  font-size: clamp(1rem, 2vw, 1.3rem) !important;
  color: var(--text-dark) !important;
  line-height: 1.8 !important;
}

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

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

.text-danger {
  color: #dc3545 !important;
}

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

/* ===== NAVIGATION ===== */
.navbar {
  background-color: var(--primary-color) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px var(--shadow-color);
  transition: var(--transition-smooth);
  padding: 1rem 0 !important;
}

.navbar.fixed-top {
  z-index: 1030 !important;
}

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

.navbar-brand {
  font-size: 1.8rem !important;
  font-weight: 700 !important;
  color: var(--text-light) !important;
  letter-spacing: 0.5px;
  transition: var(--transition-smooth);
}

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

.navbar-toggler {
  border: 2px solid var(--text-light) !important;
  padding: 0.5rem 0.75rem !important;
  background-color: rgba(255, 255, 255, 0.1) !important;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem rgba(232, 244, 248, 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(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 {
  align-items: center;
}

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

.nav-link {
  color: var(--text-light) !important;
  font-weight: 500 !important;
  font-size: 1.05rem !important;
  padding: 0.5rem 1.2rem !important;
  border-radius: 8px;
  transition: var(--transition-smooth);
  position: relative;
}

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

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

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

.navbar-dark .nav-link {
  color: var(--text-light) !important;
}

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

/* ===== BUTTONS ===== */
.btn {
  font-weight: 600 !important;
  border-radius: 10px !important;
  transition: var(--transition-smooth) !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-color: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
  z-index: -1;
}

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

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

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

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

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

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

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

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

/* ===== HERO SECTION ===== */
.position-relative {
  position: relative !important;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

@media (max-width: 991.98px) {
  .text-lg-end {
    text-align: start !important;
  }
}

/* ===== HERO BACKGROUND ===== */
.hero-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--pine-green) 50%, var(--dark-accent) 100%);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(232, 244, 248, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(232, 244, 248, 0.1) 0%, transparent 50%);
  animation: heroFloat 20s ease-in-out infinite;
}

@keyframes heroFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, 20px) scale(1.1); }
}

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

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

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

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

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

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

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

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

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

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

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

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

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

.mb-0 {
  margin-bottom: 0 !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;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

.pe-md-5 {
  padding-right: 3rem !important;
}

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

@media (max-width: 991.98px) {
  .px-lg-5 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .mb-lg-0 {
    margin-bottom: 1.5rem !important;
  }
  
  .mt-lg-0 {
    margin-top: 1.5rem !important;
  }
}

@media (max-width: 767.98px) {
  .pe-md-5 {
    padding-right: 1rem !important;
  }
  
  .ps-md-5 {
    padding-left: 1rem !important;
  }
  
  .mb-md-0 {
    margin-bottom: 1rem !important;
  }
}

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

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

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

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

.shadow {
  box-shadow: 0 8px 30px var(--shadow-color) !important;
}

.shadow-sm {
  box-shadow: 0 4px 15px var(--shadow-color) !important;
}

.shadow-lg {
  box-shadow: 0 15px 50px var(--shadow-color) !important;
  transition: var(--transition-smooth);
}

.shadow-lg:hover {
  box-shadow: 0 20px 60px rgba(44, 95, 65, 0.25) !important;
  transform: translateY(-5px);
}

/* ===== BACKGROUNDS ===== */
.bg-light {
  background-color: var(--secondary-color) !important;
}

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

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

/* ===== GRID SYSTEM ===== */
.container {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 15px !important;
}

.container-fluid {
  width: 100% !important;
  padding-right: var(--bs-gutter-x, 0.75rem) !important;
  padding-left: var(--bs-gutter-x, 0.75rem) !important;
  margin-right: auto !important;
  margin-left: auto !important;
}

.row {
  display: flex !important;
  flex-wrap: wrap !important;
  margin-left: -12px !important;
  margin-right: -12px !important;
}

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

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

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

[class*='col-'] {
  padding-left: 12px !important;
  padding-right: 12px !important;
}

.col-12 {
  flex: 0 0 100% !important;
  max-width: 100% !important;
}

.col-lg-2,
.col-lg-3,
.col-lg-4,
.col-lg-5,
.col-lg-6,
.col-lg-7,
.col-lg-8,
.col-lg-9,
.col-lg-10,
.col-lg-12 {
  position: relative;
  width: 100%;
  padding-right: 12px;
  padding-left: 12px;
}

@media (min-width: 992px) {
  .col-lg-2 {
    flex: 0 0 16.666667% !important;
    max-width: 16.666667% !important;
  }
  
  .col-lg-3 {
    flex: 0 0 25% !important;
    max-width: 25% !important;
  }
  
  .col-lg-4 {
    flex: 0 0 33.333333% !important;
    max-width: 33.333333% !important;
  }
  
  .col-lg-5 {
    flex: 0 0 41.666667% !important;
    max-width: 41.666667% !important;
  }
  
  .col-lg-6 {
    flex: 0 0 50% !important;
    max-width: 50% !important;
  }
  
  .col-lg-7 {
    flex: 0 0 58.333333% !important;
    max-width: 58.333333% !important;
  }
  
  .col-lg-8 {
    flex: 0 0 66.666667% !important;
    max-width: 66.666667% !important;
  }
  
  .col-lg-9 {
    flex: 0 0 75% !important;
    max-width: 75% !important;
  }
  
  .col-lg-10 {
    flex: 0 0 83.333333% !important;
    max-width: 83.333333% !important;
  }
  
  .col-lg-12 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
  
  .offset-lg-1 {
    margin-left: 8.333333% !important;
  }
  
  .offset-lg-2 {
    margin-left: 16.666667% !important;
  }
  
  .order-lg-1 {
    order: 1 !important;
  }
  
  .order-lg-2 {
    order: 2 !important;
  }
}

.col-md-4,
.col-md-6 {
  position: relative;
  width: 100%;
  padding-right: 12px;
  padding-left: 12px;
}

@media (min-width: 768px) {
  .col-md-4 {
    flex: 0 0 33.333333% !important;
    max-width: 33.333333% !important;
  }
  
  .col-md-6 {
    flex: 0 0 50% !important;
    max-width: 50% !important;
  }
  
  .text-md-start {
    text-align: left !important;
  }
  
  .text-md-end {
    text-align: right !important;
  }
}

/* ===== CARDS ===== */
.card,
.portfolio-card {
  background-color: #ffffff !important;
  border: none !important;
  border-radius: 16px !important;
  overflow: hidden;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 15px var(--shadow-color);
}

.card:hover,
.portfolio-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(44, 95, 65, 0.2) !important;
}

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

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  cursor: pointer;
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(44, 95, 65, 0.95) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 2rem;
  opacity: 0;
  transition: var(--transition-smooth);
}

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

.portfolio-overlay h5,
.portfolio-overlay .h5 {
  color: var(--text-light) !important;
  margin-bottom: 0.5rem;
}

.portfolio-overlay p {
  color: var(--secondary-color) !important;
}

/* ===== FILTER BUTTONS ===== */
.filter-btn {
  background-color: transparent !important;
  border: 2px solid var(--primary-color) !important;
  color: var(--primary-color) !important;
  margin: 0.5rem;
  padding: 0.5rem 1.5rem !important;
  border-radius: 25px !important;
  transition: var(--transition-smooth);
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--primary-color) !important;
  color: var(--text-light) !important;
}

/* ===== FORMS ===== */
.form-control,
.form-select {
  border: 2px solid #e0e0e0 !important;
  border-radius: 10px !important;
  padding: 0.75rem 1rem !important;
  font-size: 1rem !important;
  transition: var(--transition-smooth) !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(44, 95, 65, 0.15) !important;
  outline: none !important;
}

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

.form-check {
  padding-left: 1.8rem !important;
  margin-bottom: 0.5rem;
}

.form-check-input {
  width: 1.2rem !important;
  height: 1.2rem !important;
  margin-top: 0.15rem !important;
  border: 2px solid #e0e0e0 !important;
  border-radius: 4px !important;
  cursor: pointer;
}

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

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

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

.form-control.is-invalid ~ .invalid-feedback {
  display: block;
}

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

.needs-validation .form-control:valid {
  border-color: var(--primary-color) !important;
}

/* ===== ALERTS ===== */
.alert {
  border-radius: 12px !important;
  border: none !important;
  padding: 1rem 1.5rem !important;
  font-size: 1rem !important;
}

.alert-info {
  background-color: #d4e9f0 !important;
  color: var(--primary-color) !important;
}

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

.accordion-item {
  border: none !important;
  margin-bottom: 1rem;
  border-radius: 12px !important;
  overflow: hidden;
  background-color: #ffffff;
  box-shadow: 0 2px 10px var(--shadow-color);
}

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

.accordion-button {
  background-color: var(--secondary-color) !important;
  color: var(--primary-color) !important;
  font-weight: 600 !important;
  font-size: 1.1rem !important;
  padding: 1.25rem 1.5rem !important;
  border: none !important;
  transition: var(--transition-smooth) !important;
}

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

.accordion-button:focus {
  box-shadow: 0 0 0 0.25rem rgba(44, 95, 65, 0.15) !important;
  border: none !important;
}

.accordion-button::after {
  filter: brightness(0) saturate(100%) invert(30%) sepia(20%) saturate(1000%) hue-rotate(100deg);
}

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

.accordion-collapse {
  border: none !important;
}

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

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

.modal.fade .modal-dialog {
  transition: transform 0.3s ease-out;
  transform: scale(0.8);
}

.modal.show .modal-dialog {
  transform: scale(1);
}

.modal-content {
  border: none !important;
  border-radius: 16px !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
  overflow: hidden;
}

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

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

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

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

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

.modal-dialog-scrollable {
  max-height: calc(100% - 3.5rem);
}

.modal-dialog-scrollable .modal-content {
  max-height: 100%;
  overflow: hidden;
}

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

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

.list-unstyled li {
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
  position: relative;
}

.list-unstyled li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

/* ===== BORDERS ===== */
.border-top {
  border-top: 1px solid #e0e0e0 !important;
}

.border-start {
  border-left: 4px solid var(--primary-color) !important;
}

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

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

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

.bi-snow2::before,
.bi-thermometer-snow::before,
.bi-telephone-fill::before,
.bi-envelope-fill::before,
.bi-geo-alt-fill::before,
.bi-check-circle-fill::before,
.bi-send::before,
.bi-map::before,
.bi-info-circle-fill::before,
.bi-database::before,
.bi-gear::before,
.bi-share::before,
.bi-cookie::before,
.bi-shield-check::before,
.bi-lock::before,
.bi-arrow-repeat::before,
.bi-envelope::before,
.bi-telephone::before,
.bi-geo-alt::before,
.bi-facebook::before,
.bi-instagram::before,
.bi-linkedin::before,
.bi-battery-charging::before,
.bi-award-fill::before,
.bi-house-check-fill::before,
.bi-tree-fill::before {
  color: var(--primary-color);
}

.text-white .bi::before {
  color: var(--text-light) !important;
}

.fs-1 .bi {
  font-size: 3rem !important;
}

/* ===== LINKS ===== */
a {
  text-decoration: none !important;
  color: var(--primary-color) !important;
  transition: var(--transition-smooth);
}

a:hover {
  color: var(--dark-accent) !important;
  text-decoration: underline !important;
}

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

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

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

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

/* ===== UTILITY CLASSES ===== */
.gap-3 {
  gap: 1rem !important;
}

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

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

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

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

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

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

.small {
  font-size: 0.875rem !important;
  color: #6c757d !important;
}

.navbar-expand-lg {
  flex-wrap: nowrap;
  justify-content: flex-start;
}

@media (min-width: 992px) {
  .navbar-expand-lg {
    flex-flow: row nowrap;
    justify-content: flex-start;
  }
  
  .navbar-expand-lg .navbar-nav {
    flex-direction: row;
  }
  
  .navbar-expand-lg .navbar-collapse {
    display: flex !important;
    flex-basis: auto;
  }
  
  .navbar-expand-lg .navbar-toggler {
    display: none;
  }
}

.collapse:not(.show) {
  display: none;
}

.navbar-collapse {
  flex-basis: 100%;
  flex-grow: 1;
  align-items: center;
}

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

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

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.animate-fade-in {
  animation: fadeIn 0.8s ease-in-out;
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-in-out;
}

.animate-slide-in-left {
  animation: slideInLeft 0.8s ease-in-out;
}

.animate-slide-in-right {
  animation: slideInRight 0.8s ease-in-out;
}

/* ===== SCROLL ANIMATIONS ===== */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ===== LOADING ANIMATIONS ===== */
.loading-spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 4px solid var(--secondary-color);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 991.98px) {
  .navbar-nav {
    padding: 1rem 0;
    background-color: rgba(44, 95, 65, 0.95);
    border-radius: 12px;
    margin-top: 1rem;
  }
  
  .nav-link {
    padding: 0.75rem 1.5rem !important;
  }
  
  .display-1 {
    font-size: 2.5rem !important;
  }
  
  .display-3 {
    font-size: 2rem !important;
  }
  
  .display-4 {
    font-size: 1.8rem !important;
  }
  
  .py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
  
  .portfolio-masonry {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .btn-lg {
    padding: 0.75rem 1.5rem !important;
    font-size: 1rem !important;
  }
  
  .display-1 {
    font-size: 2rem !important;
  }
  
  .h-100 {
    min-height: auto;
    padding: 80px 0 40px 0;
  }
  
  .modal-body {
    padding: 1.5rem !important;
  }
  
  .g-5 {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 1.5rem;
  }
}

@media (max-width: 575.98px) {
  .display-1 {
    font-size: 1.75rem !important;
  }
  
  .navbar-brand {
    font-size: 1.4rem !important;
  }
  
  .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  .px-4 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  .navbar,
  .btn,
  .modal,
  .filter-btn {
    display: none !important;
  }
  
  body {
    background-color: white !important;
    color: black !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(--primary-color) !important;
  outline-offset: 2px !important;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: var(--dark-accent);
}

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

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

/* ===== FROST PINE THEME SPECIFIC ===== */
.frost-effect {
  background: linear-gradient(135deg, rgba(232, 244, 248, 0.9) 0%, rgba(212, 233, 240, 0.9) 100%);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.pine-gradient {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--pine-green) 50%, var(--dark-accent) 100%);
}

.feature-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--frost-blue) 100%);
  color: var(--primary-color);
  font-size: 2rem;
  margin: 0 auto 1rem;
  transition: var(--transition-smooth);
}

.feature-icon:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 10px 30px rgba(44, 95, 65, 0.3);
}

/* ===== END OF STYLES ===== */