/* Steel & Ember Architecture Studio - Custom Styles */

/* ============================================
   ROOT VARIABLES & RESET
   ============================================ */
:root {
  --primary-color: #2C3E50;
  --secondary-color: #E67E22;
  --primary-dark: #1a252f;
  --secondary-dark: #d35400;
  --light-bg: #f8f9fa;
  --white: #ffffff;
  --text-dark: #2C3E50;
  --text-light: #6c757d;
  --transition: all 0.3s ease;
}

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

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

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
  padding: 1rem 0;
  box-shadow: 0 4px 20px rgba(44, 62, 80, 0.15);
  transition: var(--transition);
  z-index: 1000;
}

.navbar.scrolled {
  padding: 0.5rem 0;
  box-shadow: 0 8px 30px rgba(44, 62, 80, 0.3);
}

.navbar-brand {
  color: var(--white) !important;
  font-size: 1.75rem;
  letter-spacing: 1px;
  transition: var(--transition);
}

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

.navbar-dark .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
  padding: 0.5rem 1.2rem !important;
  margin: 0 0.2rem;
  border-radius: 6px;
  transition: var(--transition);
  position: relative;
}

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

.navbar-dark .navbar-nav .nav-link:hover::after,
.navbar-dark .navbar-nav .nav-link.active::after {
  width: 60%;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
  color: var(--secondary-color) !important;
  background: rgba(230, 126, 34, 0.1);
}

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

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem rgba(230, 126, 34, 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='%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(--primary-dark) 50%, var(--primary-color) 100%);
  position: relative;
  padding: 120px 0 80px;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(230, 126, 34, 0.03) 10px,
    rgba(230, 126, 34, 0.03) 20px
  );
  pointer-events: none;
}

.hero-section .position-absolute {
  z-index: 1;
}

.hero-section .text-white {
  color: var(--white) !important;
  z-index: 2;
  position: relative;
}

.hero-section .display-2 {
  font-weight: 800;
  color: var(--white) !important;
  text-shadow: 2px 4px 12px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease;
  line-height: 1.2;
}

.hero-section .lead {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.95) !important;
  font-weight: 400;
  animation: fadeInUp 1.2s ease;
  text-shadow: 1px 2px 8px rgba(0, 0, 0, 0.2);
}

.hero-section .btn {
  animation: fadeInUp 1.4s ease;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  border-radius: 8px;
  font-weight: 600;
  transition: var(--transition);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

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

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

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

.btn:not(.btn-outline-light):not(.btn-outline-dark):not(.btn-light) {
  background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark)) !important;
  color: var(--white) !important;
  border-color: var(--secondary-color) !important;
  box-shadow: 0 4px 15px rgba(230, 126, 34, 0.3);
}

.btn:not(.btn-outline-light):not(.btn-outline-dark):not(.btn-light):hover {
  background: linear-gradient(135deg, var(--secondary-dark), var(--secondary-color)) !important;
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(230, 126, 34, 0.5);
}

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

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

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

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

.btn-light {
  background: var(--white) !important;
  color: var(--primary-color) !important;
  border: 2px solid var(--white) !important;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.btn-light:hover {
  background: var(--secondary-color) !important;
  color: var(--white) !important;
  border-color: var(--secondary-color) !important;
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(230, 126, 34, 0.4);
}

/* ============================================
   CAROUSEL
   ============================================ */
.carousel {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.carousel-inner {
  border-radius: 12px;
}

.carousel-item {
  height: 500px;
  position: relative;
}

.carousel-item img {
  object-fit: cover;
  height: 100%;
  filter: brightness(0.8);
  transition: var(--transition);
}

.carousel-item:hover img {
  filter: brightness(0.9);
  transform: scale(1.05);
}

.carousel-caption {
  background: linear-gradient(to top, rgba(44, 62, 80, 0.9), transparent);
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  text-align: left;
}

.carousel-caption h5 {
  color: var(--white) !important;
  font-size: 1.8rem;
  font-weight: 700;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.carousel-caption p {
  color: rgba(255, 255, 255, 0.95) !important;
  font-size: 1.1rem;
  text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.5);
}

.carousel-indicators [data-bs-target] {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--secondary-color) !important;
  border: 2px solid var(--white);
  opacity: 0.7;
  transition: var(--transition);
}

.carousel-indicators [data-bs-target].active {
  opacity: 1;
  transform: scale(1.3);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 3rem;
  height: 3rem;
  background-color: rgba(230, 126, 34, 0.8);
  border-radius: 50%;
  padding: 0.75rem;
}

.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
  background-color: var(--secondary-color);
  transform: scale(1.1);
}

/* ============================================
   CARDS
   ============================================ */
.card {
  border-radius: 12px;
  transition: var(--transition);
  overflow: hidden;
  height: 100%;
}

.card.border-0 {
  background: var(--white);
}

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

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(44, 62, 80, 0.2) !important;
}

.card-body {
  padding: 2rem;
}

.card img {
  transition: var(--transition);
}

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

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

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(44, 62, 80, 0.15);
  cursor: pointer;
  height: 350px;
}

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

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

.portfolio-item .position-absolute {
  background: linear-gradient(to top, rgba(44, 62, 80, 0.95), transparent);
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  transform: translateY(100%);
  transition: var(--transition);
}

.portfolio-item:hover .position-absolute {
  transform: translateY(0);
}

.filter-btn {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color) !important;
  padding: 0.5rem 1.5rem;
  margin: 0.5rem;
  border-radius: 25px;
  font-weight: 600;
  transition: var(--transition);
}

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

/* ============================================
   BADGE
   ============================================ */
.badge {
  background: var(--secondary-color) !important;
  color: var(--white) !important;
  padding: 0.5rem 1rem;
  font-weight: 600;
  border-radius: 20px;
  font-size: 0.85rem;
}

/* ============================================
   SECTIONS
   ============================================ */
section {
  padding: 80px 0;
  position: relative;
}

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

.display-2,
.display-3,
.display-4,
.display-5,
.display-6 {
  font-weight: 700;
  color: var(--primary-color) !important;
  line-height: 1.2;
}

.text-white .display-2,
.text-white .display-3,
.text-white .display-4,
.text-white .display-5,
.text-white .display-6 {
  color: var(--white) !important;
}

.text-center {
  margin-bottom: 3rem;
}

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

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

/* ============================================
   ICONS
   ============================================ */
.bi {
  color: var(--secondary-color);
  transition: var(--transition);
}

.card:hover .bi,
.accordion-button:not(.collapsed) .bi {
  transform: scale(1.2);
  color: var(--secondary-dark);
}

.bi-envelope-open,
.bi-geo-alt-fill,
.bi-telephone-fill,
.bi-envelope-fill,
.bi-clock-fill,
.bi-info-circle,
.bi-house-door,
.bi-check-circle-fill,
.bi-building,
.bi-tree,
.bi-sun,
.bi-droplet,
.bi-recycle,
.bi-award,
.bi-box,
.bi-camera,
.bi-house-heart,
.bi-sun-fill,
.bi-play-circle,
.bi-rulers,
.bi-arrow-right,
.bi-file-earmark-text,
.bi-chat-dots,
.bi-droplet-half,
.bi-wind,
.bi-award-fill {
  font-size: 1.5rem;
}

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

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

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

.form-control,
.form-select {
  border: 2px solid #dee2e6;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  transition: var(--transition);
  background: var(--white);
  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.15) !important;
  background: var(--white);
}

.form-check-input {
  width: 1.5rem;
  height: 1.5rem;
  border: 2px solid var(--primary-color);
  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(--text-dark) !important;
  cursor: pointer;
  margin-left: 0.5rem;
}

/* ============================================
   ACCORDION
   ============================================ */
.accordion-item {
  border: none;
  margin-bottom: 1rem;
  border-radius: 8px !important;
  overflow: hidden;
  box-shadow: 0 3px 15px rgba(44, 62, 80, 0.1);
}

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

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

.accordion-button:not(.collapsed) .bi {
  color: var(--secondary-color);
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.25rem rgba(230, 126, 34, 0.15) !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='%23E67E22'%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");
  transition: var(--transition);
}

.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 {
  background: var(--light-bg);
  padding: 1.5rem;
  color: var(--text-dark) !important;
}

/* ============================================
   STATS / COUNTERS
   ============================================ */
.display-6 {
  color: var(--secondary-color) !important;
  font-weight: 800;
}

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

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

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

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

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: var(--white) !important;
  padding: 3rem 0 1.5rem;
}

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

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

footer .list-unstyled a {
  color: rgba(255, 255, 255, 0.8) !important;
  transition: var(--transition);
}

footer .list-unstyled a:hover {
  color: var(--secondary-color) !important;
  padding-left: 5px;
}

footer .text-decoration-none {
  color: rgba(255, 255, 255, 0.8) !important;
}

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

/* ============================================
   UTILITY CLASSES
   ============================================ */
.shadow {
  box-shadow: 0 8px 30px rgba(44, 62, 80, 0.15) !important;
}

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

.shadow-lg {
  box-shadow: 0 15px 50px rgba(44, 62, 80, 0.25) !important;
}

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

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

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

.img-fluid {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

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

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

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

.position-sticky,
.sticky-top {
  position: sticky !important;
  top: 80px;
  z-index: 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);
  }
}

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

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

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

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(44, 62, 80, 0.98);
    padding: 1.5rem;
    margin-top: 1rem;
    border-radius: 8px;
  }
  
  .hero-section {
    min-height: auto;
    padding: 100px 0 60px;
  }
  
  .hero-section .display-2 {
    font-size: 2.5rem;
  }
  
  .carousel-item {
    height: 350px;
  }
  
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  
  .display-2 {
    font-size: 2.5rem !important;
  }
  
  .display-3 {
    font-size: 2rem !important;
  }
  
  .display-4 {
    font-size: 1.75rem !important;
  }
  
  section {
    padding: 60px 0;
  }
  
  .btn-lg {
    padding: 0.875rem 2rem !important;
    font-size: 1rem;
  }
}

@media (max-width: 767.98px) {
  .hero-section .display-2 {
    font-size: 2rem;
  }
  
  .carousel-item {
    height: 280px;
  }
  
  .portfolio-item {
    height: 250px;
  }
  
  .card-body {
    padding: 1.5rem;
  }
  
  section {
    padding: 40px 0;
  }
  
  .py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
}

@media (max-width: 575.98px) {
  .hero-section .display-2 {
    font-size: 1.75rem;
  }
  
  .lead {
    font-size: 1rem;
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem !important;
    font-size: 0.95rem;
  }
  
  .carousel-item {
    height: 220px;
  }
  
  .display-6 {
    font-size: 1.5rem !important;
  }
}

/* ============================================
   SCROLL BEHAVIOR
   ============================================ */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

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

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

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

/* ============================================
   TEXT COLORS
   ============================================ */
.text-primary {
  color: var(--primary-color) !important;
}

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

/* ============================================
   RATIO (RESPONSIVE EMBEDS)
   ============================================ */
.ratio {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(44, 62, 80, 0.15);
}

.ratio iframe {
  border-radius: 12px;
}

/* ============================================
   CONTACT SECTION SPECIFICS
   ============================================ */
.p-3,
.p-4,
.p-5 {
  background: var(--white);
}

/* ============================================
   STEEL & EMBER THEME ACCENTS
   ============================================ */
.steel-accent {
  position: relative;
}

.steel-accent::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
}

.ember-glow {
  box-shadow: 0 0 30px rgba(230, 126, 34, 0.3);
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
:focus-visible {
  outline: 3px solid var(--secondary-color);
  outline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--secondary-color);
  outline-offset: 2px;
}