/* Midnight Ember Architecture Studio Theme */

/* ==================== ROOT VARIABLES ==================== */
:root {
  --primary-color: #2C3E50;
  --secondary-color: #E74C3C;
  --accent-ember: #FF6B4A;
  --dark-navy: #1a252f;
  --light-gray: #ECF0F1;
  --text-dark: #2C3E50;
  --text-light: #FFFFFF;
  --transition-speed: 0.4s;
  --shadow-sm: 0 2px 10px rgba(44, 62, 80, 0.1);
  --shadow-md: 0 5px 25px rgba(44, 62, 80, 0.2);
  --shadow-lg: 0 10px 40px rgba(44, 62, 80, 0.3);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #FAFAFA;
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

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

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

.lead {
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.95) !important;
}

.h4, .h6 {
  color: var(--primary-color) !important;
  font-weight: 600;
}

/* ==================== NAVIGATION ==================== */
.navbar {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-navy) 100%) !important;
  padding: 1rem 0;
  transition: all var(--transition-speed) ease;
  box-shadow: var(--shadow-md);
}

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

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700 !important;
  color: #FFFFFF !important;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
}

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

.navbar-dark .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.3) !important;
  padding: 0.5rem;
}

.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, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.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;
  position: relative;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
}

.navbar-nav .nav-link:hover {
  color: #FFFFFF !important;
  transform: translateY(-2px);
}

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

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

.navbar-nav .nav-link.active {
  color: #FFFFFF !important;
  font-weight: 600;
}

/* ==================== BUTTONS ==================== */
.btn {
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: all var(--transition-speed) ease;
  border-radius: 8px;
  text-transform: uppercase;
  font-size: 0.9rem;
  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: left 0.5s ease;
  z-index: -1;
}

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

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

.btn-sm {
  padding: 0.5rem 1.5rem;
  font-size: 0.85rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #c0392b 100%) !important;
  border: none !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #c0392b 0%, var(--secondary-color) 100%) !important;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(231, 76, 60, 0.5);
  color: #FFFFFF !important;
}

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

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

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

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

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

.btn-light:hover {
  background: transparent !important;
  color: #FFFFFF !important;
  border-color: #FFFFFF !important;
}

.rounded-circle.btn {
  width: 45px;
  height: 45px;
  padding: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ==================== HERO SECTION ==================== */
.position-relative.overflow-hidden {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--dark-navy) 0%, var(--primary-color) 50%, #34495e 100%);
  position: relative;
}

.position-relative.overflow-hidden::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 50%, rgba(231, 76, 60, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 107, 74, 0.1) 0%, transparent 50%);
  animation: heroGlow 8s ease-in-out infinite;
}

@keyframes heroGlow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.position-relative.overflow-hidden .position-absolute {
  z-index: 1;
}

/* ==================== BADGES ==================== */
.badge {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-ember) 100%) !important;
  color: #FFFFFF !important;
  font-weight: 600;
  letter-spacing: 0.05em;
  border-radius: 30px;
  font-size: 0.85rem;
  padding: 0.6rem 1.5rem !important;
  box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

/* ==================== IMAGES ==================== */
.img-fluid {
  border-radius: 12px;
  transition: all var(--transition-speed) ease;
}

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

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

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

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

/* ==================== CARDS ==================== */
.card {
  border: none;
  border-radius: 12px;
  overflow: hidden;
  transition: all var(--transition-speed) ease;
  background: #FFFFFF;
  box-shadow: var(--shadow-sm);
}

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

.card-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-navy) 100%) !important;
  color: #FFFFFF !important;
  font-weight: 600;
  border: none;
  padding: 1.25rem 1.5rem;
}

.card-body {
  padding: 2rem;
}

.card-img-top {
  height: 250px;
  object-fit: cover;
  transition: all 0.5s ease;
}

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

/* ==================== PROJECT ITEMS ==================== */
.project-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.4s ease;
}

.project-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(44, 62, 80, 0.9) 0%, rgba(231, 76, 60, 0.8) 100%);
  opacity: 0;
  transition: all 0.4s ease;
  z-index: 2;
}

.project-item:hover::before {
  opacity: 1;
}

.project-item .position-absolute {
  z-index: 3;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

.project-item:hover .position-absolute {
  opacity: 1;
  transform: translateY(0);
}

/* ==================== FILTER BUTTONS ==================== */
.filter-btn {
  background: transparent !important;
  color: var(--primary-color) !important;
  border: 2px solid var(--primary-color) !important;
  padding: 0.6rem 1.8rem;
  margin: 0.3rem;
  transition: all 0.3s ease;
  border-radius: 30px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary-color) !important;
  color: #FFFFFF !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(44, 62, 80, 0.3);
}

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

.form-control,
.form-select {
  border: 2px solid #E0E0E0;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  background: #FFFFFF;
  color: var(--text-dark) !important;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--secondary-color) !important;
  box-shadow: 0 0 0 0.2rem rgba(231, 76, 60, 0.15) !important;
  outline: none;
}

.form-check-input {
  border: 2px solid #CCC;
  width: 1.2rem;
  height: 1.2rem;
}

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

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

/* ==================== BACKGROUND UTILITIES ==================== */
.bg-light {
  background-color: #F8F9FA !important;
}

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

/* ==================== TEXT UTILITIES ==================== */
.text-white {
  color: #FFFFFF !important;
}

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

.text-muted {
  color: #95A5A6 !important;
}

.text-uppercase {
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

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

/* ==================== ICONS ==================== */
.bi {
  display: inline-block;
  vertical-align: middle;
  transition: all 0.3s ease;
}

.fs-1 { font-size: 3rem !important; }
.fs-3 { font-size: 2rem !important; }
.fs-4 { font-size: 1.5rem !important; }
.fs-5 { font-size: 1.25rem !important; }
.fs-6 { font-size: 1rem !important; }

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

.ratio::before {
  display: block;
  content: "";
}

.ratio-16x9::before {
  padding-top: 56.25%;
}

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

.accordion-item {
  border: none;
  margin-bottom: 1rem;
  border-radius: 12px !important;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.accordion-header {
  border-radius: 12px;
}

.accordion-button {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-navy) 100%) !important;
  color: #FFFFFF !important;
  font-weight: 600;
  padding: 1.25rem 1.5rem;
  border: none;
  font-size: 1.05rem;
}

.accordion-button:not(.collapsed) {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-ember) 100%) !important;
  color: #FFFFFF !important;
  box-shadow: none;
}

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

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

.accordion-body {
  padding: 1.5rem;
  background: #FFFFFF;
  color: var(--text-dark) !important;
}

.accordion-collapse {
  border: none;
}

/* ==================== LIST STYLES ==================== */
.list-unstyled {
  padding-left: 0;
  list-style: none;
}

.list-unstyled li {
  padding: 0.5rem 0;
  transition: all 0.3s ease;
}

.list-unstyled li:hover {
  padding-left: 10px;
}

.list-unstyled a {
  color: var(--text-dark) !important;
  text-decoration: none !important;
  transition: all 0.3s ease;
}

.list-unstyled a:hover {
  color: var(--secondary-color) !important;
}

/* ==================== FOOTER ==================== */
footer {
  background: linear-gradient(135deg, var(--dark-navy) 0%, var(--primary-color) 100%);
  color: rgba(255, 255, 255, 0.9) !important;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
}

footer h6,
footer .h6 {
  color: #FFFFFF !important;
  font-weight: 700;
  letter-spacing: 0.1em;
}

footer a {
  color: rgba(255, 255, 255, 0.8) !important;
  transition: all 0.3s ease;
}

footer a:hover {
  color: var(--secondary-color) !important;
  padding-left: 8px;
}

footer .small {
  color: rgba(255, 255, 255, 0.6) !important;
}

/* ==================== SPACING UTILITIES ==================== */
.py-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }
.py-4 { padding-top: 2.5rem !important; padding-bottom: 2.5rem !important; }
.py-3 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
.py-2 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
.py-1 { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }

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

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

.m-5 { margin: 3rem !important; }
.m-4 { margin: 2.5rem !important; }
.m-3 { margin: 1.5rem !important; }
.m-2 { margin: 1rem !important; }

.mt-5 { margin-top: 3rem !important; }
.mt-4 { margin-top: 2.5rem !important; }
.mt-3 { margin-top: 1.5rem !important; }
.mt-2 { margin-top: 1rem !important; }
.mt-0 { margin-top: 0 !important; }

.mb-5 { margin-bottom: 3rem !important; }
.mb-4 { margin-bottom: 2.5rem !important; }
.mb-3 { margin-bottom: 1.5rem !important; }
.mb-2 { margin-bottom: 1rem !important; }
.mb-1 { margin-bottom: 0.5rem !important; }
.mb-0 { margin-bottom: 0 !important; }

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

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

.my-4 { margin-top: 2.5rem !important; margin-bottom: 2.5rem !important; }
.my-5 { margin-top: 3rem !important; margin-bottom: 3rem !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 0.8s ease-out;
}

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

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

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

/* ==================== HOVER EFFECTS ==================== */
.hover-lift {
  transition: all 0.3s ease;
}

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

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(26, 37, 47, 0.98);
    padding: 1.5rem;
    margin-top: 1rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
  }
  
  .navbar-nav .nav-link {
    padding: 0.8rem 1rem !important;
    margin: 0.2rem 0;
  }
  
  .display-1 {
    font-size: 3rem !important;
  }
  
  .display-3 {
    font-size: 2.5rem !important;
  }
  
  .display-4 {
    font-size: 2rem !important;
  }
  
  .display-5 {
    font-size: 1.75rem !important;
  }
  
  .btn-lg {
    padding: 0.875rem 2rem !important;
    font-size: 0.95rem;
  }
  
  .position-relative.overflow-hidden {
    min-height: 80vh;
  }
  
  .px-lg-5 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}

@media (max-width: 767.98px) {
  .display-1 {
    font-size: 2.5rem !important;
  }
  
  .display-3 {
    font-size: 2rem !important;
  }
  
  .display-4 {
    font-size: 1.75rem !important;
  }
  
  .display-5 {
    font-size: 1.5rem !important;
  }
  
  .lead {
    font-size: 1.1rem;
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem !important;
    font-size: 0.9rem;
  }
  
  .py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
  
  .card-body {
    padding: 1.5rem;
  }
  
  .filter-btn {
    padding: 0.5rem 1.2rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 575.98px) {
  .display-1 {
    font-size: 2rem !important;
  }
  
  .display-3 {
    font-size: 1.75rem !important;
  }
  
  .gap-3 {
    gap: 0.5rem !important;
  }
  
  .position-relative.overflow-hidden {
    min-height: 70vh;
  }
}

/* ==================== UTILITY CLASSES ==================== */
.opacity-25 { opacity: 0.25 !important; }
.opacity-50 { opacity: 0.5 !important; }
.opacity-75 { opacity: 0.75 !important; }

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

.flex-wrap { flex-wrap: wrap !important; }
.flex-row-reverse { flex-direction: row-reverse !important; }
.flex-grow-1 { flex-grow: 1 !important; }
.flex-shrink-0 { flex-shrink: 0 !important; }

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

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

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

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

.top-0 { top: 0 !important; }
.top-50 { top: 50% !important; }
.bottom-0 { bottom: 0 !important; }
.start-0 { left: 0 !important; }
.start-50 { left: 50% !important; }
.end-0 { right: 0 !important; }

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

.overflow-hidden { overflow: hidden !important; }
.border-0 { border: 0 !important; }
.rounded { border-radius: 0.375rem !important; }

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

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

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

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

/* ==================== LOADING SPINNER ==================== */
.spinner {
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid var(--secondary-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

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

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

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--secondary-color) 0%, var(--primary-color) 100%);
}