/* Fire Ember Palette Architecture Studio - Custom Styles */

:root {
  --primary-color: #D32F2F;
  --secondary-color: #FF8A65;
  --dark-color: #1a1a1a;
  --light-color: #ffffff;
  --gray-color: #6c757d;
  --ember-glow: rgba(211, 47, 47, 0.15);
  --ember-dark: #B71C1C;
  --ember-light: #FFCCBC;
}

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

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

/* Navbar Styles */
.navbar {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--ember-dark) 100%) !important;
  box-shadow: 0 4px 20px rgba(211, 47, 47, 0.3);
  transition: all 0.3s ease;
  padding: 1rem 0;
}

.navbar.scrolled {
  padding: 0.5rem 0;
  box-shadow: 0 2px 15px rgba(211, 47, 47, 0.4);
}

.navbar-brand {
  color: var(--light-color) !important;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

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

.navbar-dark .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
  padding: 0.5rem 1rem;
  margin: 0 0.2rem;
  border-radius: 5px;
  transition: all 0.3s ease;
  position: relative;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
  color: var(--light-color) !important;
  background: rgba(255, 255, 255, 0.1) !important;
  transform: translateY(-2px);
}

.navbar-dark .navbar-nav .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: var(--light-color);
  border-radius: 2px;
}

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

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

/* Hero Section */
.position-relative.overflow-hidden {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--ember-dark) 50%, #8B0000 100%);
  min-height: 100vh;
  position: relative;
}

.position-relative.overflow-hidden::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,138,101,0.1)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,112C1248,107,1344,117,1392,122.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
  background-size: cover;
  background-position: bottom;
  animation: wave 15s ease-in-out infinite;
  opacity: 0.3;
}

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

.position-relative.overflow-hidden::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(255, 138, 101, 0.2) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(211, 47, 47, 0.2) 0%, transparent 50%);
  animation: pulse 10s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.8; }
}

.text-white {
  position: relative;
  z-index: 2;
}

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

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

.lead {
  color: var(--ember-light) !important;
  text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease-out 0.3s both;
}

/* Buttons */
.btn {
  font-weight: 600;
  border-radius: 50px;
  padding: 0.75rem 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
  border: 2px solid transparent;
}

.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.5s, height 0.5s;
  z-index: -1;
}

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

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

.btn-light:hover {
  background: transparent !important;
  color: var(--light-color) !important;
  border: 2px solid var(--light-color) !important;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3) !important;
}

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

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

.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(--light-color) !important;
  border: 2px solid var(--primary-color) !important;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(211, 47, 47, 0.4) !important;
}

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

.btn-outline-danger:hover {
  background: var(--primary-color) !important;
  color: var(--light-color) !important;
  border: 2px solid var(--primary-color) !important;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(211, 47, 47, 0.4) !important;
}

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

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

/* Cards */
.card {
  border: none;
  border-radius: 15px;
  transition: all 0.4s ease;
  overflow: hidden;
  background: var(--light-color);
}

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

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

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

.card-body {
  padding: 2rem;
}

.shadow-lg {
  box-shadow: 0 10px 30px rgba(211, 47, 47, 0.2) !important;
}

.shadow {
  box-shadow: 0 5px 15px rgba(211, 47, 47, 0.15) !important;
}

.shadow-sm {
  box-shadow: 0 2px 8px rgba(211, 47, 47, 0.1) !important;
}

/* Portfolio Items */
.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  cursor: pointer;
  height: 350px;
}

.portfolio-card {
  transition: transform 0.5s ease;
}

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

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(211, 47, 47, 0.95) 0%, rgba(211, 47, 47, 0.7) 50%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

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

.portfolio-overlay h4 {
  color: var(--light-color) !important;
  font-weight: 700;
  transform: translateY(20px);
  transition: transform 0.4s ease 0.1s;
}

.portfolio-item:hover .portfolio-overlay h4 {
  transform: translateY(0);
}

.portfolio-overlay p {
  color: var(--ember-light) !important;
  transform: translateY(20px);
  transition: transform 0.4s ease 0.2s;
}

.portfolio-item:hover .portfolio-overlay p {
  transform: translateY(0);
}

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

/* Carousel */
.carousel {
  border-radius: 15px;
  overflow: hidden;
}

.carousel-item {
  transition: transform 0.6s ease-in-out;
}

.carousel-indicators button {
  background-color: var(--primary-color) !important;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0 5px;
  opacity: 0.5;
  transition: all 0.3s ease;
}

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

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: var(--primary-color);
  border-radius: 50%;
  padding: 1.5rem;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.carousel-control-prev-icon:hover,
.carousel-control-next-icon:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* Forms */
.form-control,
.form-select {
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 0.2rem rgba(211, 47, 47, 0.15) !important;
  outline: none;
}

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

.invalid-feedback {
  color: var(--primary-color) !important;
  font-size: 0.875rem;
  display: none;
}

.was-validated .form-control:invalid,
.was-validated .form-select:invalid {
  border-color: var(--primary-color) !important;
}

.was-validated .form-control:invalid ~ .invalid-feedback {
  display: block;
}

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

.form-check-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(211, 47, 47, 0.15) !important;
}

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

/* Alert */
.alert {
  border-radius: 10px;
  border: none;
  padding: 1rem 1.5rem;
  animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Icons */
.bi {
  transition: all 0.3s ease;
}

.bi-fire {
  color: var(--primary-color) !important;
  animation: flicker 2s ease-in-out infinite;
}

@keyframes flicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

.bi-lightbulb,
.bi-people,
.bi-tree,
.bi-geo-alt,
.bi-telephone,
.bi-envelope,
.bi-calendar-check,
.bi-calendar3,
.bi-check-circle-fill,
.bi-people-fill,
.bi-building,
.bi-gear-fill,
.bi-briefcase-fill,
.bi-eye-fill,
.bi-pencil-fill,
.bi-trash-fill,
.bi-x-circle-fill,
.bi-shield-fill-check,
.bi-lock-fill,
.bi-person-badge-fill,
.bi-arrow-clockwise,
.bi-trash3-fill,
.bi-currency-dollar,
.bi-heart-pulse,
.bi-graph-up-arrow,
.bi-globe,
.bi-brightness-high,
.bi-droplet-half,
.bi-recycle,
.bi-lightning-charge,
.bi-award,
.bi-tree-fill,
.bi-piggy-bank,
.bi-box-seam,
.bi-gear,
.bi-book {
  color: var(--primary-color) !important;
}

.bi-facebook,
.bi-instagram,
.bi-linkedin,
.bi-twitter {
  color: var(--light-color) !important;
  transition: all 0.3s ease;
}

.bi-facebook:hover,
.bi-instagram:hover,
.bi-linkedin:hover,
.bi-twitter:hover {
  color: var(--secondary-color) !important;
  transform: translateY(-3px);
}

/* Social Links */
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: var(--light-color) !important;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--light-color);
  border-color: var(--light-color);
  color: var(--primary-color) !important;
  transform: translateY(-5px) rotate(10deg);
  box-shadow: 0 8px 15px rgba(255, 255, 255, 0.3);
}

/* Background Colors */
.bg-light {
  background-color: #f8f9fa !important;
}

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

.bg-dark {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%) !important;
  color: var(--light-color) !important;
}

.bg-secondary {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%) !important;
  color: var(--light-color) !important;
}

/* Text Colors */
.text-white {
  color: var(--light-color) !important;
}

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

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

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

/* Display Headings */
.display-1,
.display-2,
.display-3,
.display-4,
.display-5 {
  font-weight: 800;
  line-height: 1.2;
}

.h1, h1,
.h2, h2,
.h3, h3,
.h4, h4,
.h5, h5 {
  font-weight: 700;
  color: var(--dark-color);
}

/* Borders */
.border {
  border: 1px solid #dee2e6 !important;
}

.border-start {
  border-left: 4px solid var(--primary-color) !important;
}

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

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

.border-white {
  border-color: rgba(255, 255, 255, 0.2) !important;
}

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

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

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

/* Sticky Elements */
.sticky-top {
  position: sticky;
  top: 0;
  z-index: 1020;
}

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

/* Navigation Pills */
.nav {
  border-radius: 10px;
}

.nav-link {
  color: var(--dark-color) !important;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
  color: var(--light-color) !important;
  background: var(--primary-color) !important;
}

/* List Styles */
.list-unstyled {
  padding-left: 0;
  list-style: none;
}

.list-unstyled li {
  padding: 0.5rem 0;
}

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

.list-unstyled a:hover {
  color: var(--primary-color) !important;
  padding-left: 10px;
}

/* Text Decoration */
.text-decoration-none {
  text-decoration: none !important;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--secondary-color);
}

/* Image Styles */
.img-fluid {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
}

.object-fit-cover {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

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

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

/* Button Group */
.btn-group .btn {
  border-radius: 8px;
  margin: 0 0.25rem;
}

/* Spacing Utilities Enhancement */
.gap-2 {
  gap: 0.5rem !important;
}

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

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

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

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

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

/* Hover Effects for Cards */
.bg-white.shadow:hover,
.card:hover {
  box-shadow: 0 15px 40px rgba(211, 47, 47, 0.25) !important;
}

/* Footer Styles */
footer {
  background: linear-gradient(135deg, var(--dark-color) 0%, #2d2d2d 100%);
  color: var(--light-color) !important;
}

footer a {
  color: rgba(255, 255, 255, 0.7) !important;
}

footer a:hover {
  color: var(--secondary-color) !important;
}

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

/* Section Dividers */
section {
  position: relative;
  padding: 5rem 0;
}

section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
}

/* Animations */
@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;
}

/* Scroll Animations */
.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

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

/* Loading Spinner */
.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(211, 47, 47, 0.2);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(211, 47, 47, 0.95);
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
  }
  
  .display-2 {
    font-size: 2.5rem;
  }
  
  .display-3 {
    font-size: 2rem;
  }
  
  .display-4 {
    font-size: 1.75rem;
  }
  
  .position-sticky {
    position: relative !important;
    top: auto;
  }
  
  section {
    padding: 3rem 0;
  }
}

@media (max-width: 767.98px) {
  .display-2 {
    font-size: 2rem;
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
  
  .portfolio-item {
    height: 250px;
  }
  
  .card-body {
    padding: 1.5rem;
  }
}

@media (max-width: 575.98px) {
  .navbar-brand {
    font-size: 1.5rem;
  }
  
  .display-2 {
    font-size: 1.75rem;
  }
  
  .btn {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
  }
  
  section {
    padding: 2rem 0;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .btn,
  footer {
    display: none;
  }
  
  body {
    background: white;
    color: black;
  }
}

/* Accessibility */
:focus {
  outline: 3px solid var(--secondary-color);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 12px;
}

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

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
  border-radius: 6px;
}

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

/* Selection */
::selection {
  background: var(--primary-color);
  color: var(--light-color);
}

::-moz-selection {
  background: var(--primary-color);
  color: var(--light-color);
}