/* ============================================
   Architectural Studio - Slate & Copper Theme
   Modern, Professional CSS with Bootstrap 5
   ============================================ */

/* ===== ROOT VARIABLES ===== */
:root {
  --primary-color: #2C3E50;
  --secondary-color: #E67E22;
  --primary-dark: #1a252f;
  --secondary-dark: #d35400;
  --light-slate: #34495e;
  --lighter-slate: #475669;
  --copper-light: #f39c12;
  --white: #ffffff;
  --light-gray: #ecf0f1;
  --dark-gray: #7f8c8d;
  --transition-speed: 0.3s;
  --border-radius: 8px;
  --box-shadow: 0 10px 40px rgba(44, 62, 80, 0.15);
  --box-shadow-hover: 0 15px 50px rgba(44, 62, 80, 0.25);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

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

.display-2 { font-size: clamp(2.5rem, 5vw, 4.5rem) !important; }
.display-3 { font-size: clamp(2rem, 4vw, 3.5rem) !important; }
.display-4 { font-size: clamp(1.8rem, 3.5vw, 3rem) !important; }
.display-5 { font-size: clamp(1.5rem, 3vw, 2.5rem) !important; }
.display-6 { font-size: clamp(1.3rem, 2.5vw, 2rem) !important; }

.lead {
  font-size: clamp(1rem, 2vw, 1.25rem) !important;
  color: var(--light-slate) !important;
  font-weight: 400 !important;
}

.small {
  font-size: 0.875rem !important;
  color: var(--dark-gray) !important;
}

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

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

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

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

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

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

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

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

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

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

.navbar-expand-lg .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
  font-weight: 500 !important;
  padding: 0.5rem 1rem !important;
  margin: 0 0.25rem;
  border-radius: var(--border-radius);
  transition: all var(--transition-speed) ease;
  position: relative;
}

.navbar-expand-lg .navbar-nav .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%);
}

.navbar-expand-lg .navbar-nav .nav-link:hover,
.navbar-expand-lg .navbar-nav .nav-link.active {
  color: var(--white) !important;
  background-color: rgba(230, 126, 34, 0.2) !important;
}

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

.navbar-toggler {
  border: 2px solid var(--secondary-color) !important;
  padding: 0.5rem 0.75rem !important;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem rgba(230, 126, 34, 0.25) !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='%23E67E22' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* ===== HERO SECTION ===== */
.hero-section {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--light-slate) 50%, var(--primary-dark) 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-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="%23E67E22" 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;
}

.hero-section .text-center {
  z-index: 2;
  animation: fadeInUp 1s ease-out;
}

.hero-section .display-2 {
  color: var(--white) !important;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease-out 0.2s backwards;
}

.hero-section .lead {
  color: rgba(255, 255, 255, 0.9) !important;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease-out 0.4s backwards;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== BUTTONS ===== */
.btn {
  border-radius: var(--border-radius) !important;
  padding: 0.75rem 2rem !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all var(--transition-speed) ease !important;
  border: 2px solid transparent !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-lg {
  padding: 1rem 2.5rem !important;
  font-size: 1.1rem !important;
}

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

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-color: var(--secondary-dark) !important;
  border-color: var(--secondary-dark) !important;
  color: var(--white) !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(230, 126, 34, 0.3) !important;
}

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

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

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

.btn-outline-dark:hover,
.btn-outline-dark:focus,
.btn-outline-dark:active {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: var(--white) !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(44, 62, 80, 0.3) !important;
}

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

.btn-light:hover,
.btn-light:focus,
.btn-light:active {
  background-color: var(--white) !important;
  border-color: var(--light-gray) !important;
  color: var(--primary-color) !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

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

.filter-btn.active {
  background-color: var(--secondary-color) !important;
  border-color: var(--secondary-color) !important;
  color: var(--white) !important;
}

.rounded-pill {
  border-radius: 50rem !important;
}

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

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

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

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

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

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

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

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

/* ===== PORTFOLIO ===== */
.portfolio-item {
  margin-bottom: 2rem;
  animation: fadeInUp 0.6s ease-out;
}

.portfolio-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  cursor: pointer;
  height: 350px;
}

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

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(44, 62, 80, 0.95) 0%, rgba(44, 62, 80, 0.7) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  opacity: 0;
  transition: all 0.5s ease;
}

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

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

.portfolio-overlay h4 {
  color: var(--white) !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-card:hover .portfolio-overlay h4,
.portfolio-card:hover .portfolio-overlay p {
  transform: translateY(0);
}

.rounded-3 {
  border-radius: var(--border-radius) !important;
}

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

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

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

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

/* ===== FORMS ===== */
.form-control,
.form-select {
  border: 2px solid var(--light-gray) !important;
  border-radius: var(--border-radius) !important;
  padding: 0.75rem 1rem !important;
  font-size: 1rem !important;
  color: var(--primary-color) !important;
  transition: all var(--transition-speed) ease !important;
  background-color: var(--white) !important;
}

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

.form-control::placeholder {
  color: var(--dark-gray) !important;
  opacity: 0.7;
}

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

.form-check-input {
  border: 2px solid var(--light-gray) !important;
  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(230, 126, 34, 0.15) !important;
}

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

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

.rounded {
  border-radius: var(--border-radius) !important;
}

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

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

.shadow-sm {
  box-shadow: 0 5px 20px rgba(44, 62, 80, 0.08) !important;
}

.shadow-lg {
  box-shadow: 0 20px 60px rgba(44, 62, 80, 0.2) !important;
}

/* ===== SECTIONS ===== */
.py-5 {
  padding-top: 4rem !important;
  padding-bottom: 4rem !important;
}

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

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

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

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

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

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

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

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

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

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

.px-0 {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

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

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

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

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

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

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

.m-4 {
  margin: 2rem !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;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

/* ===== BACKGROUND COLORS ===== */
.bg-light {
  background-color: var(--light-gray) !important;
}

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

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

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

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

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

/* ===== LINKS ===== */
a {
  color: var(--secondary-color) !important;
  text-decoration: none !important;
  transition: all var(--transition-speed) ease;
}

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

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

/* ===== ICONS ===== */
.bi,
.fas,
.fab {
  display: inline-block;
  font-style: normal;
  line-height: 1;
}

.fs-2 {
  font-size: 2rem !important;
}

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

.fs-4 {
  font-size: 1.5rem !important;
}

.fs-5 {
  font-size: 1.25rem !important;
}

.fa-lg {
  font-size: 1.33em !important;
}

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

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

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

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

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

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

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

.end-0 {
  right: 0 !important;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/* ===== TEXT ALIGNMENT ===== */
.text-center {
  text-align: center !important;
}

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

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

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

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

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

/* ===== WIDTH & HEIGHT ===== */
.w-100 {
  width: 100% !important;
}

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

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

/* ===== OPACITY ===== */
.opacity-25 {
  opacity: 0.25 !important;
}

/* ===== BORDERS ===== */
.border-0 {
  border: 0 !important;
}

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

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

.border-opacity-25 {
  border-color: rgba(255, 255, 255, 0.25) !important;
}

.table-bordered {
  border: 1px solid var(--light-gray) !important;
}

/* ===== TABLES ===== */
.table {
  width: 100%;
  margin-bottom: 1rem;
  color: var(--primary-color) !important;
  vertical-align: top;
}

.table th,
.table td {
  padding: 1rem;
  border: 1px solid var(--light-gray);
}

.table th {
  background-color: var(--primary-color);
  color: var(--white) !important;
  font-weight: 600;
}

.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ===== ALERTS ===== */
.alert {
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius);
  margin-bottom: 1rem;
  border: 2px solid transparent;
}

.alert-success {
  background-color: rgba(46, 204, 113, 0.1);
  border-color: #2ecc71;
  color: #27ae60 !important;
}

.alert-danger {
  background-color: rgba(231, 76, 60, 0.1);
  border-color: #e74c3c;
  color: #c0392b !important;
}

.alert-warning {
  background-color: rgba(230, 126, 34, 0.1);
  border-color: var(--secondary-color);
  color: var(--secondary-dark) !important;
}

/* ===== BLOCKQUOTE ===== */
blockquote {
  border-left: 4px solid var(--secondary-color);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--light-slate) !important;
}

.blockquote-footer {
  color: var(--dark-gray) !important;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.blockquote-footer::before {
  content: '— ';
}

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

.g-0 {
  --bs-gutter-x: 0 !important;
  --bs-gutter-y: 0 !important;
}

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

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

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

/* ===== CONTAINER ===== */
.container,
.container-fluid {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

.container {
  max-width: 1200px;
}

/* ===== GRID SYSTEM ===== */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}

[class*="col-"] {
  position: relative;
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
}

.col-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
.col-12 { flex: 0 0 100%; max-width: 100%; }

/* ===== 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% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

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

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

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

/* ===== HOVER EFFECTS ===== */
.hover-lift {
  transition: all var(--transition-speed) ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-hover);
}

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

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

/* ===== RESPONSIVE BREAKPOINTS ===== */
@media (max-width: 575.98px) {
  .container { max-width: 100%; padding: 0 15px; }
  .display-2 { font-size: 2.5rem !important; }
  .display-3 { font-size: 2rem !important; }
  .py-5 { padding-top: 2rem !important; padding-bottom: 2rem !important; }
  .btn { padding: 0.6rem 1.5rem !important; font-size: 0.9rem !important; }
  .navbar-brand { font-size: 1.2rem !important; }
  .hero-section { min-height: 70vh; }
  
  .col-sm-6 { flex: 0 0 50%; max-width: 50%; }
}

@media (min-width: 576px) {
  .container { max-width: 540px; }
}

@media (min-width: 768px) {
  .container { max-width: 720px; }
  
  .col-md-3 { flex: 0 0 25%; max-width: 25%; }
  .col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  .col-md-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
  .col-md-6 { flex: 0 0 50%; max-width: 50%; }
  .col-md-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
  
  .flex-md-row { flex-direction: row !important; }
  .text-md-start { text-align: left !important; }
  .text-md-end { text-align: right !important; }
}

@media (min-width: 992px) {
  .container { max-width: 960px; }
  
  .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%; }
  .col-lg-12 { flex: 0 0 100%; max-width: 100%; }
  
  .offset-lg-1 { margin-left: 8.333333%; }
  .offset-lg-2 { margin-left: 16.666667%; }
  
  .mb-lg-0 { margin-bottom: 0 !important; }
  .mt-lg-0 { margin-top: 0 !important; }
  .px-lg-5 { padding-left: 3rem !important; padding-right: 3rem !important; }
  .ms-lg-5 { margin-left: 3rem !important; }
  
  .text-lg-start { text-align: left !important; }
  .text-lg-end { text-align: right !important; }
  
  .d-lg-block { display: block !important; }
  
  .order-lg-1 { order: 1; }
  .order-lg-2 { order: 2; }
}

@media (min-width: 1200px) {
  .container { max-width: 1140px; }
}

@media (min-width: 1400px) {
  .container { max-width: 1200px; }
}

/* ===== UTILITY CLASSES ===== */
.text-uppercase { text-transform: uppercase !important; }
.text-lowercase { text-transform: lowercase !important; }
.text-capitalize { text-transform: capitalize !important; }

.cursor-pointer { cursor: pointer; }

.user-select-none {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

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

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--secondary-color);
  color: var(--white) !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-speed) ease;
  z-index: 999;
  cursor: pointer;
  box-shadow: 0 5px 20px rgba(230, 126, 34, 0.3);
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--secondary-dark);
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(230, 126, 34, 0.4);
}

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

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

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

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

/* ===== PRINT STYLES ===== */
@media print {
  .navbar,
  .btn,
  .back-to-top,
  .navbar-toggler {
    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,
a:focus {
  outline: 2px solid var(--secondary-color);
  outline-offset: 2px;
}

/* ===== PERFORMANCE OPTIMIZATION ===== */
.will-change-transform {
  will-change: transform;
}

.will-change-opacity {
  will-change: opacity;
}

/* ===== FINAL OVERRIDES ===== */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

button,
input,
select,
textarea {
  font-family: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

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