/* ===================================
   Architecture Studio - Steel & Copper Theme
   Primary: #2C3E50 (Steel)
   Secondary: #E67E22 (Copper)
   =================================== */

/* ===== CSS VARIABLES ===== */
:root {
  --primary-color: #2C3E50;
  --secondary-color: #E67E22;
  --primary-dark: #1a252f;
  --secondary-dark: #d35400;
  --light-gray: #ecf0f1;
  --dark-gray: #34495e;
  --white: #ffffff;
  --transition: all 0.3s ease;
  --shadow: 0 5px 15px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.15);
}

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

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

html {
  scroll-behavior: smooth;
}

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

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

.text-white,
.text-white h1,
.text-white h2,
.text-white h3,
.text-white h4,
.text-white h5,
.text-white h6,
.text-white .display-1,
.text-white .display-2,
.text-white .display-3,
.text-white .display-4,
.text-white .display-5,
.text-white .display-6 {
  color: #ffffff !important;
}

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

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

/* ===== COPPER ACCENT ELEMENTS ===== */
.copper-line {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary-color), var(--secondary-dark));
  margin: 15px 0;
  position: relative;
  border-radius: 2px;
}

.copper-accent {
  color: var(--secondary-color) !important;
  font-weight: 600;
}

/* ===== BUTTONS ===== */
.btn {
  border-radius: 0 !important;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: var(--transition);
  text-transform: uppercase;
  padding: 12px 30px;
  border: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.1);
  transition: var(--transition);
  z-index: -1;
}

.btn:hover::before {
  left: 100%;
}

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

.btn-primary:hover,
.btn.btn-primary:hover {
  background-color: var(--secondary-dark) !important;
  border-color: var(--secondary-dark) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(230, 126, 34, 0.4) !important;
}

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

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

.btn-light {
  background-color: #ffffff !important;
  color: var(--primary-color) !important;
  border: 2px solid #ffffff !important;
}

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

.btn-outline-light {
  background-color: transparent !important;
  color: #ffffff !important;
  border: 2px solid #ffffff !important;
}

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

.btn-lg {
  padding: 15px 40px !important;
  font-size: 1.1rem !important;
}

.btn-sm {
  padding: 8px 20px !important;
  font-size: 0.875rem !important;
}

/* ===== NAVBAR ===== */
.navbar {
  transition: all 0.4s ease;
  padding: 20px 0;
  background-color: transparent;
}

.navbar.fixed-top,
.navbar.sticky-top {
  background-color: rgba(44, 62, 80, 0.95) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.navbar-brand {
  font-size: 1.5rem !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  letter-spacing: 1px;
  transition: var(--transition);
}

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

.navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
  font-weight: 500;
  padding: 8px 20px !important;
  margin: 0 5px;
  position: relative;
  transition: var(--transition);
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.navbar-nav .nav-link::before {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 20px;
  width: 0;
  height: 2px;
  background-color: var(--secondary-color);
  transition: var(--transition);
}

.navbar-nav .nav-link:hover::before,
.navbar-nav .nav-link.active::before {
  width: calc(100% - 40px);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--secondary-color) !important;
}

.navbar-toggler {
  border: 2px solid rgba(255, 255, 255, 0.5) !important;
  padding: 8px 12px;
}

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

/* ===== CAROUSEL / HERO ===== */
.carousel {
  position: relative;
}

.carousel-item {
  height: 100vh;
  min-height: 600px;
  background-color: var(--primary-color);
}

.carousel-item img {
  object-fit: cover;
  height: 100vh;
  min-height: 600px;
  opacity: 0.4;
}

.carousel-fade .carousel-item {
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.carousel-fade .carousel-item.active {
  opacity: 1;
}

.carousel-caption,
.carousel-item .position-absolute {
  z-index: 10;
}

.carousel .display-1 {
  font-size: clamp(2.5rem, 8vw, 5rem) !important;
  text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
  animation: fadeInUp 1s ease-out;
}

.carousel .lead {
  font-size: clamp(1rem, 3vw, 1.5rem);
  color: rgba(255, 255, 255, 0.9) !important;
  text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
  animation: fadeInUp 1s ease-out 0.3s backwards;
}

.carousel .btn {
  animation: fadeInUp 1s ease-out 0.6s backwards;
}

.carousel-control-prev,
.carousel-control-next {
  width: 5%;
  opacity: 0.7;
  transition: var(--transition);
}

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

.carousel-indicators [data-bs-target] {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0 5px;
  background-color: var(--secondary-color);
  opacity: 0.5;
  transition: var(--transition);
}

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

/* ===== SECTIONS ===== */
section {
  position: relative;
  overflow: hidden;
}

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

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

.bg-light {
  background-color: #f8f9fa !important;
}

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

/* ===== IMAGES ===== */
.img-fluid {
  transition: var(--transition);
}

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

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

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

.shadow-sm {
  box-shadow: 0 2px 5px rgba(0,0,0,0.08) !important;
}

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

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

/* ===== CARDS ===== */
.card {
  border: none !important;
  border-radius: 0 !important;
  transition: var(--transition);
  height: 100%;
  background-color: #ffffff;
}

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

.card-body {
  padding: 2rem;
}

.card-img-top {
  border-radius: 0 !important;
  height: 250px;
  object-fit: cover;
}

.philosophy-card {
  background-color: #ffffff;
  padding: 2.5rem;
  height: 100%;
  transition: var(--transition);
  border-left: 4px solid transparent;
}

.philosophy-card:hover {
  border-left-color: var(--secondary-color);
  background-color: #f8f9fa;
  transform: translateX(10px);
}

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

.bi-building,
.bi-recycle,
.bi-hammer,
.bi-award,
.bi-map,
.bi-file-earmark-text,
.bi-geo-alt-fill,
.bi-telephone-fill,
.bi-envelope-fill,
.bi-calendar-check,
.bi-clock,
.bi-info-circle-fill,
.bi-linkedin,
.bi-instagram,
.bi-facebook,
.bi-people-fill,
.bi-cloud-upload,
.bi-shield-lock-fill,
.bi-key-fill,
.bi-clock-history,
.bi-eye,
.bi-pencil,
.bi-trash,
.bi-envelope-slash,
.bi-images,
.bi-geo-alt,
.bi-telephone,
.bi-envelope,
.bi-lightning-charge-fill,
.bi-droplet-fill,
.bi-tree-fill,
.bi-award-fill,
.bi-star-fill,
.bi-search,
.bi-pencil-square,
.bi-star,
.bi-tools,
.bi-arrows-angle-contract,
.bi-file-earmark-check,
.bi-shield-check,
.bi-people,
.bi-send,
.bi-arrow-right-short,
.bi-1-circle-fill,
.bi-2-circle-fill,
.bi-3-circle-fill,
.bi-4-circle-fill {
  font-size: 3rem;
  color: var(--secondary-color);
  transition: var(--transition);
}

.card:hover .bi,
.philosophy-card:hover .bi,
.stat-item:hover .bi {
  transform: scale(1.1) rotate(5deg);
  color: var(--secondary-dark);
}

/* ===== STATS SECTION ===== */
.stats-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  padding: 4rem 0;
  position: relative;
}

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

.stat-item {
  text-align: center;
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  z-index: 1;
}

.stat-item:hover {
  transform: translateY(-5px);
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--secondary-color) !important;
  line-height: 1;
  margin-bottom: 0.5rem;
  display: block;
}

.stat-label {
  font-size: 1.1rem;
  color: #ffffff !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

/* ===== TIMELINE SECTION ===== */
.timeline-section {
  position: relative;
  padding: 5rem 0;
}

.timeline-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.timeline-vertical-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--secondary-color), var(--secondary-dark));
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
}

.timeline-item:nth-child(odd) {
  flex-direction: row;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-year {
  flex: 0 0 100px;
  font-size: 2rem;
  font-weight: 700;
  color: var(--secondary-color) !important;
  text-align: center;
}

.timeline-dot {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  background-color: var(--secondary-color);
  border-radius: 50%;
  border: 4px solid #ffffff;
  box-shadow: 0 0 0 4px var(--light-gray);
  position: relative;
  z-index: 2;
  margin: 0 3rem;
}

.timeline-content {
  flex: 1;
  background-color: #ffffff;
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

@media (max-width: 768px) {
  .timeline-vertical-line {
    left: 30px;
  }
  
  .timeline-item,
  .timeline-item:nth-child(even) {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 60px;
  }
  
  .timeline-dot {
    position: absolute;
    left: 21px;
    margin: 0;
  }
  
  .timeline-year {
    margin-bottom: 1rem;
  }
}

/* ===== TEAM SECTION ===== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.team-member {
  text-align: center;
  transition: var(--transition);
  background-color: #ffffff;
  padding: 2rem;
  box-shadow: var(--shadow);
}

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

.team-img {
  width: 200px;
  height: 200px;
  border-radius: 0;
  margin: 0 auto 1.5rem;
  overflow: hidden;
  border: 4px solid var(--secondary-color);
  position: relative;
}

.team-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
  filter: grayscale(30%);
}

.team-member:hover .team-img img {
  transform: scale(1.1);
  filter: grayscale(0%);
}

.team-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color) !important;
  margin-bottom: 0.5rem;
}

.team-title {
  color: var(--secondary-color) !important;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.team-bio {
  color: var(--dark-gray) !important;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ===== PORTFOLIO SECTION ===== */
.portfolio-item {
  margin-bottom: 2rem;
}

.portfolio-card {
  position: relative;
  overflow: hidden;
  height: 400px;
  cursor: pointer;
}

.portfolio-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(44, 62, 80, 0.95), transparent);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 2rem;
  color: #ffffff;
}

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

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

.badge {
  background-color: var(--secondary-color) !important;
  color: #ffffff !important;
  padding: 0.5rem 1rem;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  border-radius: 0 !important;
}

/* ===== FORMS ===== */
.form-label {
  font-weight: 600;
  color: var(--primary-color) !important;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.form-control,
.form-select {
  border: 2px solid #e0e0e0 !important;
  border-radius: 0 !important;
  padding: 12px 15px;
  font-size: 1rem;
  transition: var(--transition);
  background-color: #ffffff;
  color: var(--primary-color) !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: #999999;
}

.form-check-input {
  border: 2px solid #e0e0e0;
  border-radius: 0 !important;
  width: 1.25rem;
  height: 1.25rem;
}

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

.form-check-label {
  color: var(--primary-color) !important;
  margin-left: 0.5rem;
}

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

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

.needs-validation .was-validated .form-control:valid {
  border-color: #28a745 !important;
}

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

.accordion-item {
  border: none !important;
  margin-bottom: 1rem;
  background-color: #ffffff;
  box-shadow: var(--shadow);
}

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

.accordion-button {
  background-color: #ffffff !important;
  color: var(--primary-color) !important;
  font-weight: 600;
  padding: 1.5rem;
  border: none;
  border-radius: 0 !important;
  font-size: 1.1rem;
  transition: var(--transition);
}

.accordion-button:not(.collapsed) {
  background-color: var(--secondary-color) !important;
  color: #ffffff !important;
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: none !important;
  border: none;
}

.accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%232C3E50'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-button:not(.collapsed)::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-body {
  padding: 2rem;
  color: var(--dark-gray) !important;
  line-height: 1.8;
  background-color: #f8f9fa;
}

.accordion-collapse {
  border-radius: 0 !important;
}

/* ===== MODAL ===== */
.modal-content {
  border: none !important;
  border-radius: 0 !important;
  background-color: #ffffff;
}

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

.modal-title {
  font-weight: 700;
  color: #ffffff !important;
}

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

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

.btn-close:hover,
.btn-close-white:hover {
  opacity: 0.7;
}

/* ===== PROGRESS BARS ===== */
.progress {
  height: 8px;
  border-radius: 0 !important;
  background-color: #e0e0e0;
  overflow: visible;
}

.progress-bar {
  background-color: var(--secondary-color) !important;
  position: relative;
  border-radius: 0 !important;
}

.progress-bar::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background-color: var(--secondary-dark);
  border-radius: 50%;
}

/* ===== BORDERS ===== */
.border {
  border-color: #e0e0e0 !important;
}

.border-start {
  border-left: 1px solid #e0e0e0 !important;
}

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

.border-bottom {
  border-bottom: 1px solid #e0e0e0 !important;
}

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

.border-opacity-25 {
  opacity: 0.25;
}

/* ===== SPACING UTILITIES ===== */
.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-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }

.ms-auto { margin-left: auto !important; }
.me-2 { margin-right: 0.5rem !important; }
.me-3 { margin-right: 1rem !important; }

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

.p-3 { padding: 1rem !important; }
.p-4 { padding: 1.5rem !important; }
.p-5 { padding: 3rem !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; }

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

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

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

/* ===== LAYOUT UTILITIES ===== */
.d-block { display: block !important; }
.d-flex { display: flex !important; }
.d-grid { display: grid !important; }
.d-none { display: none !important; }
.d-inline-flex { display: inline-flex !important; }

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

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

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

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

.position-relative { position: relative !important; }
.position-absolute { position: absolute !important; }
.position-fixed { position: fixed !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;
}

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

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

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

.bg-opacity-10 {
  background-color: rgba(230, 126, 34, 0.1) !important;
}

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

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

/* ===== GAPS ===== */
.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 1rem !important; }
.g-0 { gap: 0 !important; }
.g-3 { gap: 1rem !important; }
.g-4 { gap: 1.5rem !important; }
.g-5 { gap: 3rem !important; }

/* ===== RATIO ===== */
.ratio {
  position: relative;
  width: 100%;
}

.ratio::before {
  display: block;
  padding-top: var(--bs-aspect-ratio);
  content: "";
}

.ratio > * {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.ratio-16x9 {
  --bs-aspect-ratio: 56.25%;
}

/* ===== PRIVACY/CONTENT PAGES ===== */
.privacy-content {
  color: var(--dark-gray) !important;
  line-height: 1.8;
}

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

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

.privacy-content li {
  margin-bottom: 0.5rem;
}

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

footer h5 {
  color: #ffffff !important;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

footer a {
  color: rgba(255, 255, 255, 0.7) !important;
  text-decoration: none;
  transition: var(--transition);
  display: inline-block;
}

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

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

footer .bi {
  font-size: 1.5rem;
  margin: 0 0.5rem;
  color: rgba(255, 255, 255, 0.7);
}

footer .bi:hover {
  color: var(--secondary-color) !important;
  transform: scale(1.2) !important;
}

/* ===== 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-fade-in {
  animation: fadeIn 1s ease-out;
}

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

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

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: rgba(44, 62, 80, 0.98);
    padding: 1rem;
    margin-top: 1rem;
  }
  
  .navbar-nav .nav-link {
    padding: 10px 15px !important;
    margin: 5px 0;
  }
  
  .display-1 {
    font-size: 3rem !important;
  }
  
  .display-3 {
    font-size: 2.5rem !important;
  }
  
  .display-4 {
    font-size: 2rem !important;
  }
  
  .carousel-item {
    height: 70vh;
    min-height: 500px;
  }
  
  .carousel-item img {
    height: 70vh;
    min-height: 500px;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
  
  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  
  .portfolio-card {
    height: 300px;
  }
  
  .py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
  
  .ps-lg-5,
  .pe-lg-5 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}

@media (max-width: 767.98px) {
  .display-1 {
    font-size: 2.5rem !important;
  }
  
  .lead {
    font-size: 1rem;
  }
  
  .btn-lg {
    padding: 12px 30px !important;
    font-size: 1rem !important;
  }
  
  .carousel-item {
    height: 60vh;
    min-height: 400px;
  }
  
  .carousel-item img {
    height: 60vh;
    min-height: 400px;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .stat-label {
    font-size: 0.9rem;
  }
  
  .bi-building,
  .bi-recycle,
  .bi-hammer,
  .bi-award,
  .bi-map,
  .bi-file-earmark-text,
  .bi-geo-alt-fill,
  .bi-telephone-fill,
  .bi-envelope-fill {
    font-size: 2rem;
  }
  
  .team-img {
    width: 150px;
    height: 150px;
  }
  
  .portfolio-card {
    height: 250px;
  }
  
  .card-body {
    padding: 1.5rem;
  }
  
  .philosophy-card {
    padding: 1.5rem;
  }
  
  .py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
  
  .px-4 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .text-md-start,
  .text-md-end {
    text-align: center !important;
  }
}

@media (max-width: 575.98px) {
  .display-1 {
    font-size: 2rem !important;
  }
  
  .display-3 {
    font-size: 1.75rem !important;
  }
  
  .display-4 {
    font-size: 1.5rem !important;
  }
  
  .stat-number {
    font-size: 1.75rem;
  }
  
  .team-grid {
    grid-template-columns: 1fr;
  }
  
  .portfolio-card {
    height: 200px;
  }
  
  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  
  .navbar-brand {
    font-size: 1.25rem !important;
  }
}

/* ===== LARGE SCREENS ===== */
@media (min-width: 1400px) {
  .container,
  .container-fluid {
    max-width: 1320px;
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  .navbar,
  .carousel,
  .btn,
  footer {
    display: none !important;
  }
  
  body {
    color: #000000 !important;
    background-color: #ffffff !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(--secondary-color) !important;
  outline-offset: 2px !important;
}

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

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

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

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

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

::-moz-selection {
  background-color: var(--secondary-color);
  color: #ffffff;
}

/* ===== LOADING SPINNER ===== */
.spinner-border {
  border-color: var(--secondary-color);
  border-right-color: transparent;
}

/* ===== OFFSET GRID ===== */
.offset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.offset-grid .item {
  transition: var(--transition);
}

.offset-grid .item:hover {
  transform: translateY(-10px);
}

/* ===== HERO ABOUT ===== */
.hero-about {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  padding: 6rem 0 4rem;
  position: relative;
}

.hero-about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('data:image/svg+xml,%3Csvg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z" fill="%23ffffff" fill-opacity="0.05" fill-rule="evenodd"/%3E%3C/svg%3E');
  opacity: 0.5;
}

/* ===== UTILITIES ===== */
.sticky-top {
  position: sticky !important;
  top: 0 !important;
  z-index: 1020;
}

.sticky-lg-top {
  position: sticky !important;
  top: 20px !important;
  z-index: 10;
}

.col-auto {
  flex: 0 0 auto;
  width: auto;
}

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

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

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

.small {
  font-size: 0.875rem;
}

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