/* Ember Glow Architecture Studio - Custom Styles */

/* === CSS Variables & Root === */
:root {
  --primary-color: #D84315;
  --secondary-color: #FFC107;
  --dark-color: #1a1a1a;
  --light-color: #ffffff;
  --gray-color: #6c757d;
  --transition: all 0.3s ease;
  --shadow: 0 10px 30px rgba(216, 67, 21, 0.15);
  --shadow-hover: 0 15px 40px rgba(216, 67, 21, 0.25);
}

/* === Global Styles === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--dark-color);
  overflow-x: hidden;
}

/* === Typography === */
.display-2, .display-3, .display-4, .display-5, .display-6 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

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

/* === Navigation === */
.navbar {
  padding: 1rem 0;
  transition: var(--transition);
  z-index: 1030;
}

.glass-nav {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar-dark.glass-nav {
  background: rgba(26, 26, 26, 0.95) !important;
}

.navbar-brand {
  font-size: 1.5rem;
  color: var(--primary-color) !important;
  font-weight: 700;
  transition: var(--transition);
}

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

.nav-link {
  color: var(--dark-color) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  position: relative;
  transition: var(--transition);
}

.navbar-dark .nav-link {
  color: var(--light-color) !important;
}

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

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

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

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

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

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(216, 67, 21, 0.25) !important;
}

/* === Hero Section === */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 80px;
}

.hero-bg-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(216, 67, 21, 0.85) 0%, rgba(255, 193, 7, 0.7) 100%);
  z-index: 1;
}

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

.hero-title {
  font-weight: 800;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  color: var(--light-color) !important;
}

.hero-subtitle {
  color: var(--light-color) !important;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
  font-size: 1.3rem;
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce 2s infinite;
  color: var(--light-color) !important;
  font-size: 2rem;
  cursor: pointer;
}

/* === Buttons === */
.btn {
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition);
  border-width: 2px;
  position: relative;
  overflow: hidden;
}

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

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

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

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

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

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

.btn-light:hover {
  background: var(--secondary-color) !important;
  border-color: var(--secondary-color) !important;
  color: var(--dark-color) !important;
  transform: translateY(-3px);
}

.btn-sm {
  padding: 0.5rem 1.5rem !important;
  font-size: 0.875rem;
}

/* === Floating Card === */
.floating-card {
  background: var(--light-color);
  border-radius: 20px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  animation: float 3s ease-in-out infinite;
}

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

/* === Service Cards === */
.service-card {
  background: var(--light-color);
  border-radius: 15px;
  padding: 2rem;
  transition: var(--transition);
  border: 2px solid transparent;
  cursor: pointer;
  height: 100%;
}

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

.service-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--light-color) !important;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  transform: rotate(360deg) scale(1.1);
}

/* === Portfolio Grid === */
.portfolio-grid-home,
.portfolio-masonry {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.portfolio-item-home,
.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  cursor: pointer;
  height: 300px;
  background: var(--dark-color);
}

.portfolio-item-home.large,
.portfolio-item-home.wide {
  grid-column: span 2;
  height: 400px;
}

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

.portfolio-item-home:hover img,
.portfolio-item:hover img {
  transform: scale(1.1);
  opacity: 0.3;
}

.portfolio-overlay-home,
.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(216, 67, 21, 0.9), rgba(255, 193, 7, 0.9));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  opacity: 0;
  transition: var(--transition);
  color: var(--light-color) !important;
}

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

.portfolio-overlay h4,
.portfolio-overlay-home h4,
.portfolio-overlay h3,
.portfolio-overlay-home h3 {
  color: var(--light-color) !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.portfolio-card {
  background: var(--light-color);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
  height: 100%;
}

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

/* === Portfolio Filters === */
.portfolio-filters {
  margin-bottom: 3rem;
}

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

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

/* === Stats Grid === */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  padding: 3rem 0;
}

.stat-item {
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 15px;
  color: var(--light-color) !important;
  transition: var(--transition);
}

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

.stat-item .display-3,
.stat-item .display-4 {
  color: var(--light-color) !important;
  font-weight: 800;
}

.stat-item p {
  color: var(--light-color) !important;
  margin-bottom: 0;
}

/* === Process Steps === */
.process-steps {
  position: relative;
}

.process-step {
  padding: 2rem;
  margin-bottom: 2rem;
  background: var(--light-color);
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
  display: flex;
  align-items: start;
}

.process-step:hover {
  transform: translateX(10px);
  box-shadow: var(--shadow);
}

.step-number {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--light-color) !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* === Timeline === */
.timeline-container {
  position: relative;
  padding-left: 3rem;
}

.timeline-container::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 3px;
  background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
}

.timeline-container .position-relative {
  margin-bottom: 2rem;
}

.timeline-container .rounded-circle {
  width: 20px;
  height: 20px;
  background: var(--primary-color);
  border: 3px solid var(--light-color);
  box-shadow: 0 0 0 3px var(--primary-color);
  left: -43px !important;
}

/* === Badge === */
.badge {
  background: var(--secondary-color) !important;
  color: var(--dark-color) !important;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.875rem;
}

/* === Cards === */
.card {
  border: none;
  border-radius: 15px;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

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

.card-body {
  padding: 2rem;
}

.card-title {
  color: var(--dark-color);
  font-weight: 700;
}

/* === Accordion === */
.accordion-item {
  border: none;
  margin-bottom: 1rem;
  border-radius: 10px !important;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.accordion-button {
  background: var(--light-color) !important;
  color: var(--dark-color) !important;
  font-weight: 600;
  padding: 1.25rem;
  border: none;
}

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

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

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

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

.accordion-body {
  padding: 1.5rem;
  background: var(--light-color);
}

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

.form-control,
.form-select {
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 0.2rem rgba(216, 67, 21, 0.15) !important;
}

.form-control-lg,
.form-select-lg {
  padding: 1rem 1.25rem;
}

.form-check-input {
  border-color: var(--primary-color);
}

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

.invalid-feedback {
  color: #dc3545 !important;
  font-size: 0.875rem;
}

/* === Progress Bars === */
.progress {
  height: 30px;
  border-radius: 50px;
  background: #e0e0e0;
}

.progress-bar {
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color)) !important;
  border-radius: 50px;
  font-weight: 600;
}

/* === Modal === */
.modal-content {
  border-radius: 20px;
  border: none;
  overflow: hidden;
}

.modal-header {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--light-color) !important;
  padding: 1.5rem;
}

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

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

.modal-body {
  padding: 2rem;
}

/* === Carousel === */
.carousel-control-prev,
.carousel-control-next {
  width: 50px;
  height: 50px;
  background: rgba(216, 67, 21, 0.8);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 1;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background: var(--primary-color);
}

/* === Social Links === */
.social-links a {
  width: 45px;
  height: 45px;
  background: transparent;
  border: 2px solid var(--light-color);
  color: var(--light-color) !important;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0.5rem;
  transition: var(--transition);
  font-size: 1.2rem;
}

.social-links a:hover {
  background: var(--secondary-color);
  border-color: var(--secondary-color);
  color: var(--dark-color) !important;
  transform: translateY(-5px);
}

/* === Footer === */
.bg-dark {
  background: #1a1a1a !important;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

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

/* === Responsive Design === */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: var(--light-color);
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  }
  
  .navbar-dark .navbar-collapse {
    background: var(--dark-color);
  }
  
  .hero-title {
    font-size: 2.5rem !important;
  }
  
  .display-2 {
    font-size: 2.5rem !important;
  }
  
  .display-3 {
    font-size: 2rem !important;
  }
  
  .display-4 {
    font-size: 1.75rem !important;
  }
  
  .portfolio-item-home.large,
  .portfolio-item-home.wide {
    grid-column: span 1;
    height: 300px;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .process-step {
    flex-direction: column;
    text-align: center;
  }
  
  .step-number {
    margin-bottom: 1rem;
  }
}

@media (max-width: 767.98px) {
  .hero-section {
    min-height: auto;
    padding: 100px 0 50px;
  }
  
  .btn-lg {
    padding: 0.75rem 2rem !important;
    font-size: 0.9rem;
  }
  
  .floating-card {
    margin-bottom: 2rem;
  }
  
  .portfolio-grid-home,
  .portfolio-masonry {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .timeline-container {
    padding-left: 2rem;
  }
}

@media (max-width: 575.98px) {
  .display-2 {
    font-size: 2rem !important;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .service-card {
    padding: 1.5rem;
  }
  
  .social-links a {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

/* === Print Styles === */
@media print {
  .navbar,
  .scroll-indicator,
  .btn,
  footer {
    display: none !important;
  }
}

/* === Accessibility === */
.btn:focus,
.nav-link:focus,
.form-control:focus,
.form-select:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* === Loading State === */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* === Sticky Top === */
.sticky-top,
.sticky-lg-top {
  top: 80px;
  z-index: 1020;
}

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

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

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

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

/* === Additional Icon Styles === */
.bi {
  vertical-align: middle;
}

/* === Hover Effects === */
.text-decoration-none:hover {
  text-decoration: underline !important;
}

img {
  max-width: 100%;
  height: auto;
}

/* === Background Utilities === */
.bg-white {
  background: var(--light-color) !important;
}

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

/* === Border Utilities === */
.border-0 {
  border: none !important;
}

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

/* === Additional Spacing === */
.my-3 {
  margin-top: 1rem !important;
  margin-bottom: 1rem !important;
}

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

.mt-5 {
  margin-top: 3rem !important;
}

/* === Grid Utilities === */
.g-0 {
  --bs-gutter-x: 0;
  --bs-gutter-y: 0;
}

.g-2 {
  --bs-gutter-x: 0.5rem;
  --bs-gutter-y: 0.5rem;
}

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

/* === Text Alignment === */
@media (min-width: 992px) {
  .text-lg-end {
    text-align: right !important;
  }
}