/* Steel & Copper Architectural Studio Theme - Custom CSS */

/* ============================================
   ROOT VARIABLES & BASE STYLES
   ============================================ */
:root {
  --primary-color: #2C3E50;
  --secondary-color: #E67E22;
  --dark-steel: #1a252f;
  --light-steel: #465a6d;
  --copper-light: #f39c12;
  --copper-dark: #d35400;
  --text-light: #ecf0f1;
  --text-dark: #2c3e50;
  --transition-speed: 0.3s;
  --shadow-soft: 0 5px 25px rgba(44, 62, 80, 0.15);
  --shadow-strong: 0 10px 40px rgba(44, 62, 80, 0.3);
}

* {
  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: #f8f9fa;
  overflow-x: hidden;
  line-height: 1.7;
}

/* ============================================
   NAVIGATION STYLES
   ============================================ */
.navbar {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-steel) 100%) !important;
  padding: 1rem 0;
  box-shadow: var(--shadow-soft);
  transition: all var(--transition-speed) ease;
  border-bottom: 2px solid var(--secondary-color);
}

.navbar.sticky-top {
  backdrop-filter: blur(10px);
}

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

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

.navbar-dark .navbar-toggler {
  border-color: var(--secondary-color) !important;
  background-color: var(--secondary-color) !important;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem rgba(230, 126, 34, 0.5) !important;
}

.navbar-nav .nav-link {
  color: var(--text-light) !important;
  font-weight: 500 !important;
  padding: 0.5rem 1.2rem !important;
  margin: 0 0.2rem;
  transition: all var(--transition-speed) ease;
  position: relative;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

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

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

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

/* ============================================
   HERO SECTION STYLES
   ============================================ */
.hero-section {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--dark-steel) 0%, var(--primary-color) 50%, var(--light-steel) 100%);
  position: relative;
  padding: 120px 0 60px;
  overflow: hidden;
}

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

.blueprint-overlay {
  background: repeating-linear-gradient(
    0deg,
    rgba(230, 126, 34, 0.03) 0px,
    rgba(230, 126, 34, 0.03) 1px,
    transparent 1px,
    transparent 60px
  ),
  repeating-linear-gradient(
    90deg,
    rgba(230, 126, 34, 0.03) 0px,
    rgba(230, 126, 34, 0.03) 1px,
    transparent 1px,
    transparent 60px
  );
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  animation: fadeInUp 1s ease-out;
}

.hero-content .display-2 {
  font-weight: 800 !important;
  color: var(--text-light) !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  margin-bottom: 1.5rem !important;
  line-height: 1.2;
}

.hero-content .lead {
  color: var(--text-light) !important;
  font-size: 1.3rem !important;
  font-weight: 300;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
  margin-bottom: 2rem !important;
}

/* ============================================
   BUTTON STYLES
   ============================================ */
.btn {
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all var(--transition-speed) ease !important;
  border-radius: 8px !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: 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 {
  background: var(--secondary-color) !important;
  border: 2px solid var(--secondary-color) !important;
  color: white !important;
  box-shadow: var(--shadow-soft);
}

.btn-lg:hover {
  background: var(--copper-dark) !important;
  border-color: var(--copper-dark) !important;
  transform: translateY(-3px);
  box-shadow: var(--shadow-strong);
  color: white !important;
}

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

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

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

.btn-outline-secondary:hover,
.btn-outline-secondary.active {
  background: var(--secondary-color) !important;
  color: white !important;
  transform: translateY(-2px);
}

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

.btn-light:hover {
  background: var(--text-light) !important;
  color: var(--primary-color) !important;
  transform: translateY(-2px);
}

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

/* ============================================
   STAT BOX STYLES
   ============================================ */
.stat-box {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 1.5rem;
  border: 2px solid rgba(230, 126, 34, 0.3);
  transition: all var(--transition-speed) ease;
  text-align: center;
}

.stat-box:hover {
  background: rgba(230, 126, 34, 0.2);
  transform: translateY(-5px);
  border-color: var(--secondary-color);
  box-shadow: 0 10px 30px rgba(230, 126, 34, 0.3);
}

.stat-box .display-6 {
  color: var(--secondary-color) !important;
  font-weight: 800 !important;
  margin-bottom: 0.5rem !important;
  font-size: 2.5rem !important;
}

.stat-box .small {
  color: var(--text-light) !important;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ============================================
   ICON STYLES
   ============================================ */
.bi {
  transition: all var(--transition-speed) ease;
}

.animate-bounce {
  animation: bounce 2s infinite;
}

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

/* ============================================
   SERVICE CARD STYLES
   ============================================ */
.service-card {
  background: white;
  border-radius: 16px;
  transition: all var(--transition-speed) ease;
  border: 2px solid transparent;
  height: 100%;
  box-shadow: var(--shadow-soft);
  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), var(--copper-light));
  transform: scaleX(0);
  transition: transform var(--transition-speed) ease;
}

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

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

.icon-wrapper {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--secondary-color), var(--copper-light));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  transition: all var(--transition-speed) ease;
  box-shadow: 0 5px 15px rgba(230, 126, 34, 0.3);
}

.service-card:hover .icon-wrapper {
  transform: rotateY(360deg) scale(1.1);
  box-shadow: 0 10px 25px rgba(230, 126, 34, 0.5);
}

.icon-wrapper .bi {
  font-size: 2rem;
  color: white !important;
}

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

.service-card p {
  color: #6c757d !important;
  line-height: 1.8;
}

/* ============================================
   PROJECT CARD STYLES
   ============================================ */
.project-card {
  border-radius: 16px;
  overflow: hidden;
  transition: all var(--transition-speed) ease;
  background: white;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 2px solid transparent;
}

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

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

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

.project-card .card-body {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.project-card .badge {
  background: var(--secondary-color) !important;
  color: white !important;
  padding: 0.5rem 1rem;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.project-card p {
  color: #6c757d !important;
  flex-grow: 1;
}

.project-card .text-decoration-none {
  color: var(--secondary-color) !important;
  font-weight: 600 !important;
  transition: all var(--transition-speed) ease;
  display: inline-flex;
  align-items: center;
  margin-top: auto;
}

.project-card .text-decoration-none:hover {
  color: var(--copper-dark) !important;
  gap: 0.5rem;
}

.project-card .bi-arrow-right {
  transition: transform var(--transition-speed) ease;
}

.project-card .text-decoration-none:hover .bi-arrow-right {
  transform: translateX(5px);
}

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

.portfolio-item {
  animation: fadeInUp 0.6s ease-out;
  transition: all var(--transition-speed) ease;
}

.portfolio-item.hidden {
  display: none;
}

.portfolio-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  height: 350px;
}

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

.portfolio-overlay {
  background: linear-gradient(to top, rgba(44, 62, 80, 0.95), rgba(44, 62, 80, 0.3));
  opacity: 0;
  transition: all var(--transition-speed) ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  color: white !important;
}

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

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

.portfolio-overlay h5 {
  color: white !important;
  font-weight: 700 !important;
  margin-bottom: 0.5rem !important;
}

.portfolio-overlay p {
  color: var(--text-light) !important;
  margin-bottom: 1rem !important;
}

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

/* ============================================
   TIMELINE STYLES
   ============================================ */
.timeline-container {
  position: relative;
  padding: 2rem 0;
}

.timeline-item {
  position: relative;
  padding-left: 3rem;
  margin-bottom: 3rem;
  animation: fadeInLeft 0.6s ease-out;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  background: var(--secondary-color);
  border-radius: 50%;
  border: 4px solid white;
  box-shadow: 0 0 0 4px var(--secondary-color);
}

.timeline-item::after {
  content: '';
  position: absolute;
  left: 9px;
  top: 20px;
  width: 2px;
  height: calc(100% + 3rem);
  background: linear-gradient(to bottom, var(--secondary-color), transparent);
}

.timeline-item:last-child::after {
  display: none;
}

.timeline-item .card {
  border-left: 4px solid var(--secondary-color) !important;
  transition: all var(--transition-speed) ease;
}

.timeline-item .card:hover {
  transform: translateX(10px);
  box-shadow: var(--shadow-strong) !important;
}

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

.form-control,
.form-select {
  border: 2px solid #e0e0e0 !important;
  border-radius: 8px !important;
  padding: 0.75rem 1rem !important;
  transition: all var(--transition-speed) ease !important;
  background: white !important;
  color: var(--text-dark) !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.25) !important;
  outline: none !important;
}

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

.form-check-input {
  border: 2px solid #dee2e6 !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.25) !important;
}

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

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

.form-control.is-valid {
  border-color: #28a745 !important;
}

/* ============================================
   IMAGE SLIDER STYLES
   ============================================ */
.image-slider-container {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: var(--shadow-strong);
  height: 500px;
}

.before-image,
.after-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.after-image {
  clip-path: inset(0 50% 0 0);
}

.slider-control {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 100%;
  background: var(--secondary-color);
  cursor: ew-resize;
  transform: translateX(-50%);
  z-index: 10;
}

.slider-control::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  background: var(--secondary-color);
  border: 4px solid white;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* ============================================
   PROGRESS BAR STYLES
   ============================================ */
.progress {
  height: 12px !important;
  border-radius: 10px !important;
  background-color: #e9ecef !important;
  overflow: visible !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-bar {
  background: linear-gradient(90deg, var(--secondary-color), var(--copper-light)) !important;
  border-radius: 10px !important;
  position: relative;
  transition: width 1.5s ease-out !important;
  box-shadow: 0 2px 8px rgba(230, 126, 34, 0.4);
}

.progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ============================================
   ACCORDION STYLES
   ============================================ */
.accordion-item {
  border: 2px solid #e9ecef !important;
  border-radius: 12px !important;
  margin-bottom: 1rem;
  overflow: hidden;
  background: white;
}

.accordion-header {
  border-radius: 10px !important;
}

.accordion-button {
  background: linear-gradient(135deg, var(--primary-color), var(--light-steel)) !important;
  color: white !important;
  font-weight: 600 !important;
  padding: 1.25rem 1.5rem !important;
  border: none !important;
  font-size: 1.1rem;
  transition: all var(--transition-speed) ease !important;
}

.accordion-button:not(.collapsed) {
  background: linear-gradient(135deg, var(--secondary-color), var(--copper-light)) !important;
  color: white !important;
  box-shadow: none !important;
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.25rem rgba(230, 126, 34, 0.25) !important;
  border: none !important;
}

.accordion-button::after {
  filter: brightness(0) invert(1);
  transition: transform var(--transition-speed) ease;
}

.accordion-button:not(.collapsed)::after {
  transform: rotate(180deg);
}

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

.accordion-collapse {
  border-top: 2px solid var(--secondary-color);
}

/* ============================================
   ALERT STYLES
   ============================================ */
.alert {
  border-radius: 12px !important;
  border: 2px solid !important;
  padding: 1rem 1.5rem !important;
  font-weight: 500;
  box-shadow: var(--shadow-soft);
}

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

.alert-danger {
  background: #f8d7da !important;
  border-color: #dc3545 !important;
  color: #721c24 !important;
}

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

/* ============================================
   SPECS PANEL STYLES
   ============================================ */
.specs-panel {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  border: 2px solid #e9ecef;
  transition: all var(--transition-speed) ease;
}

.specs-panel:hover {
  box-shadow: var(--shadow-strong);
  border-color: var(--secondary-color);
}

.specs-panel .bi {
  color: var(--secondary-color) !important;
  font-size: 1.5rem;
  margin-right: 0.75rem;
}

.specs-panel h6 {
  color: var(--primary-color) !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.85rem;
}

.specs-panel p {
  color: var(--text-dark) !important;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0;
}

/* ============================================
   FOOTER STYLES
   ============================================ */
footer {
  background: linear-gradient(135deg, var(--dark-steel) 0%, var(--primary-color) 100%);
  color: var(--text-light) !important;
  padding: 3rem 0 0;
  margin-top: 4rem;
  border-top: 4px solid var(--secondary-color);
}

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

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

footer a {
  color: var(--text-light) !important;
  text-decoration: none !important;
  transition: all var(--transition-speed) ease;
  display: inline-flex;
  align-items: center;
}

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

footer .bi {
  font-size: 1.5rem;
  color: var(--text-light) !important;
  transition: all var(--transition-speed) ease;
}

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

footer hr {
  border-color: rgba(255, 255, 255, 0.2) !important;
  margin: 2rem 0 1rem !important;
}

footer .text-center {
  color: var(--text-light) !important;
  font-size: 0.9rem;
}

/* ============================================
   CARD STYLES
   ============================================ */
.card {
  border-radius: 16px !important;
  border: 2px solid #e9ecef !important;
  transition: all var(--transition-speed) ease;
  background: white;
}

.card:hover {
  box-shadow: var(--shadow-strong) !important;
  border-color: var(--secondary-color) !important;
}

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

.card-text {
  color: #6c757d !important;
  line-height: 1.8;
}

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

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-white {
  color: white !important;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.flex-grow-1 {
  flex-grow: 1 !important;
}

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

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

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

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

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

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

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

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

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

/* ============================================
   TYPOGRAPHY
   ============================================ */
.display-2 {
  font-size: 3.5rem !important;
  font-weight: 800 !important;
  line-height: 1.2;
}

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

.display-4 {
  font-size: 2.5rem !important;
  font-weight: 700 !important;
}

.display-5 {
  font-size: 2rem !important;
  font-weight: 700 !important;
}

.display-6 {
  font-size: 1.75rem !important;
  font-weight: 700 !important;
}

.h3 {
  font-size: 1.75rem !important;
  font-weight: 700 !important;
  color: var(--primary-color) !important;
}

.h4 {
  font-size: 1.5rem !important;
  font-weight: 700 !important;
}

.h5 {
  font-size: 1.25rem !important;
  font-weight: 600 !important;
}

.lead {
  font-size: 1.25rem !important;
  font-weight: 300;
}

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

.fw-light {
  font-weight: 300 !important;
}

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

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

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

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

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(44, 62, 80, 0.98);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    box-shadow: var(--shadow-soft);
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }
  
  .hero-section {
    padding: 100px 0 40px;
    min-height: auto;
  }
  
  .hero-content .display-2 {
    font-size: 2.5rem !important;
  }
  
  .display-3 {
    font-size: 2.25rem !important;
  }
  
  .display-4 {
    font-size: 2rem !important;
  }
  
  .display-5 {
    font-size: 1.75rem !important;
  }
  
  .stat-box {
    margin-bottom: 1rem;
  }
  
  .image-slider-container {
    height: 350px;
  }
  
  .portfolio-masonry {
    grid-template-columns: 1fr;
  }
  
  .position-sticky {
    position: relative !important;
    top: 0 !important;
  }
}

@media (max-width: 767.98px) {
  .hero-content .display-2 {
    font-size: 2rem !important;
  }
  
  .hero-content .lead {
    font-size: 1.1rem !important;
  }
  
  .btn-lg {
    padding: 0.75rem 2rem !important;
    font-size: 0.95rem !important;
  }
  
  .service-card {
    margin-bottom: 1.5rem;
  }
  
  .icon-wrapper {
    width: 60px;
    height: 60px;
  }
  
  .icon-wrapper .bi {
    font-size: 1.5rem;
  }
  
  .project-card img {
    height: 220px;
  }
  
  .image-slider-container {
    height: 280px;
  }
  
  .timeline-item {
    padding-left: 2rem;
  }
  
  footer {
    text-align: center;
  }
  
  footer .text-lg-end,
  footer .text-md-end {
    text-align: center !important;
    margin-top: 1rem;
  }
}

@media (max-width: 575.98px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .hero-section {
    padding: 80px 0 30px;
  }
  
  .hero-content .display-2 {
    font-size: 1.75rem !important;
  }
  
  .stat-box .display-6 {
    font-size: 1.75rem !important;
  }
  
  .btn-lg {
    padding: 0.65rem 1.5rem !important;
    font-size: 0.9rem !important;
  }
  
  .d-flex.gap-3 {
    flex-direction: column;
    width: 100%;
  }
  
  .d-flex.gap-3 .btn {
    width: 100%;
  }
  
  .specs-panel {
    padding: 1.25rem;
  }
  
  .image-slider-container {
    height: 220px;
  }
}

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

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

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

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

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

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

/* ============================================
   LOADING ANIMATION
   ============================================ */
.loading {
  opacity: 0;
  animation: fadeIn 0.5s ease-out forwards;
}

/* ============================================
   RATIO STYLES
   ============================================ */
.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%;
}

/* ============================================
   BADGE STYLES
   ============================================ */
.badge {
  padding: 0.5rem 1rem !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
  letter-spacing: 0.5px;
}

/* ============================================
   MODAL OVERLAY FIX
   ============================================ */
.modal-backdrop {
  background-color: rgba(44, 62, 80, 0.8) !important;
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  .navbar,
  .btn,
  footer,
  .animate-bounce {
    display: none !important;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .hero-section {
    background: white;
    color: black;
  }
}