/* Slate & Ember Architecture Studio Theme - Custom Styles */

:root {
  --primary-color: #2C3E50;
  --secondary-color: #E67E22;
  --dark-slate: #1a252f;
  --light-slate: #34495e;
  --ember-light: #f39c12;
  --ember-dark: #d35400;
  --text-light: #ecf0f1;
  --text-dark: #2c3e50;
  --transition-speed: 0.3s;
}

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

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

/* Navbar Styles */
.navbar {
  background-color: var(--primary-color) !important;
  padding: 1rem 0;
  box-shadow: 0 2px 15px rgba(0,0,0,0.1);
  transition: all var(--transition-speed) ease;
}

.navbar.scrolled {
  padding: 0.5rem 0;
  background-color: var(--dark-slate) !important;
}

.navbar-brand {
  color: var(--text-light) !important;
  font-size: 1.5rem;
  letter-spacing: 1px;
  transition: color var(--transition-speed) ease;
}

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

.navbar-nav .nav-link {
  color: var(--text-light) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  margin: 0 0.2rem;
  position: relative;
  transition: all var(--transition-speed) ease;
}

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

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

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

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

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

/* Hero Section */
.hero-section {
  height: 100vh;
  min-height: 600px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-slate) 100%);
  position: relative;
  margin-top: 70px;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1;
}

.carousel,
.carousel-inner,
.carousel-item {
  height: 100%;
}

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

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

.hero-section .display-2 {
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  animation: fadeInUp 1s ease;
  color: #ffffff !important;
}

.hero-section .lead {
  font-size: 1.3rem;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
  animation: fadeInUp 1.2s ease;
  color: #ffffff !important;
}

.btn {
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all var(--transition-speed) ease;
  border: 2px solid transparent;
}

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

.btn-primary {
  background-color: var(--secondary-color) !important;
  border-color: var(--secondary-color) !important;
  color: #ffffff !important;
}

.btn-primary:hover {
  background-color: var(--ember-dark) !important;
  border-color: var(--ember-dark) !important;
  transform: translateY(-3px);
  box-shadow: 0 5px 20px rgba(230, 126, 34, 0.4) !important;
}

.btn-outline-light {
  border-color: #ffffff !important;
  color: #ffffff !important;
  background-color: transparent !important;
}

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

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

.btn-outline-dark:hover,
.btn-outline-dark.active {
  background-color: var(--secondary-color) !important;
  border-color: var(--secondary-color) !important;
  color: #ffffff !important;
}

/* Section Styles */
section {
  padding: 5rem 0;
}

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

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

.text-white {
  color: #ffffff !important;
}

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

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

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

.bg-dark .display-2,
.bg-dark .display-3,
.bg-dark .display-4,
.bg-dark .display-5,
.bg-dark .display-6,
.bg-dark h1,
.bg-dark h2,
.bg-dark h3,
.bg-dark h4,
.bg-dark h5,
.bg-dark h6 {
  color: #ffffff !important;
}

/* Card Styles */
.card {
  border: none;
  border-radius: 15px;
  overflow: hidden;
  transition: all var(--transition-speed) ease;
  background-color: #ffffff;
}

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

.card-body {
  padding: 2rem;
}

.card-title {
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.card-img-top {
  height: 250px;
  object-fit: cover;
}

.shadow-sm {
  box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.075) !important;
}

.shadow {
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15) !important;
}

.shadow-lg {
  box-shadow: 0 1rem 3rem rgba(0,0,0,0.175) !important;
}

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

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

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

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(44, 62, 80, 0.95) 0%, rgba(44, 62, 80, 0.3) 50%, transparent 100%);
  opacity: 0;
  transition: all var(--transition-speed) ease;
  padding: 2rem;
  color: #ffffff;
}

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

.portfolio-overlay h3,
.portfolio-overlay p,
.portfolio-overlay .badge {
  transform: translateY(20px);
  transition: all 0.4s ease;
}

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

.badge {
  background-color: var(--secondary-color) !important;
  color: #ffffff !important;
  padding: 0.5rem 1rem;
  font-weight: 600;
  border-radius: 50px;
}

/* Filter Buttons */
.filter-btn {
  border-radius: 50px;
  padding: 0.5rem 1.5rem;
  margin: 0.3rem;
  transition: all var(--transition-speed) ease;
}

/* Icons */
.bi {
  color: var(--secondary-color);
}

.fs-1 {
  font-size: calc(1.375rem + 1.5vw) !important;
}

.fs-2 {
  font-size: calc(1.325rem + 0.9vw) !important;
}

.fs-4 {
  font-size: calc(1.275rem + 0.3vw) !important;
}

.fs-5 {
  font-size: 1.25rem !important;
}

/* Form Styles */
.form-control,
.form-select {
  border: 2px solid #dee2e6;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  transition: all var(--transition-speed) ease;
  background-color: #ffffff;
  color: var(--text-dark);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--secondary-color) !important;
  box-shadow: 0 0 0 0.2rem rgba(230, 126, 34, 0.25) !important;
}

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

.form-check-input {
  border: 2px solid #dee2e6;
  cursor: pointer;
}

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

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

/* Footer */
footer {
  background-color: var(--primary-color) !important;
  color: var(--text-light) !important;
  padding: 3rem 0 1rem;
}

footer h5,
footer h6 {
  color: #ffffff !important;
  font-weight: 700;
}

footer a {
  color: var(--text-light) !important;
  text-decoration: none;
  transition: all var(--transition-speed) ease;
}

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

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

/* Alert */
.alert {
  border-radius: 10px;
  border: none;
}

.alert-heading {
  font-weight: 700;
}

/* Utility Classes */
.object-fit-cover {
  object-fit: cover;
}

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

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

.overflow-hidden {
  overflow: hidden;
}

/* 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-on-scroll {
  opacity: 0;
  transition: all 0.8s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  animation: fadeInUp 0.8s ease forwards;
}

/* Sticky Top */
.sticky-top {
  position: sticky;
  top: 90px;
  z-index: 1020;
}

/* Privacy Content */
.privacy-content {
  max-width: 100%;
}

.privacy-content h2,
.privacy-content h3,
.privacy-content h4 {
  color: var(--primary-color);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.privacy-content ul {
  padding-left: 2rem;
}

/* Nav Tabs */
.nav {
  border-bottom: 2px solid var(--secondary-color);
}

.nav-link {
  color: var(--primary-color) !important;
  border: none !important;
  padding: 1rem 1.5rem;
  font-weight: 600;
}

.nav-link.active {
  color: var(--secondary-color) !important;
  background-color: transparent !important;
  border-bottom: 3px solid var(--secondary-color) !important;
}

/* Responsive Styles */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: var(--dark-slate);
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem !important;
  }
  
  .hero-section {
    margin-top: 60px;
    height: 80vh;
    min-height: 500px;
  }
  
  .hero-section .display-2 {
    font-size: 2.5rem;
  }
  
  .hero-section .lead {
    font-size: 1.1rem;
  }
  
  .btn-lg {
    padding: 0.75rem 2rem !important;
  }
  
  section {
    padding: 3rem 0;
  }
  
  .portfolio-item {
    height: 300px;
    margin-bottom: 1rem;
  }
  
  .display-2 {
    font-size: 2.5rem !important;
  }
  
  .display-3 {
    font-size: 2.2rem !important;
  }
  
  .display-4 {
    font-size: 2rem !important;
  }
  
  .display-5 {
    font-size: 1.8rem !important;
  }
}

@media (max-width: 767.98px) {
  .hero-section {
    height: 70vh;
    min-height: 450px;
  }
  
  .hero-section .display-2 {
    font-size: 2rem;
  }
  
  .hero-section .lead {
    font-size: 1rem;
  }
  
  .btn-lg {
    padding: 0.6rem 1.5rem !important;
    font-size: 0.9rem;
  }
  
  .card-body {
    padding: 1.5rem;
  }
  
  .portfolio-item {
    height: 250px;
  }
  
  footer {
    text-align: center;
  }
  
  .text-lg-start,
  .text-lg-end {
    text-align: center !important;
  }
}

@media (max-width: 575.98px) {
  .px-4 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .hero-section .display-2 {
    font-size: 1.75rem;
  }
  
  .hero-section .lead {
    font-size: 0.95rem;
  }
  
  .btn-lg {
    padding: 0.5rem 1.2rem !important;
    font-size: 0.85rem;
    display: block;
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  .me-3 {
    margin-right: 0 !important;
  }
  
  section {
    padding: 2rem 0;
  }
  
  .display-6 {
    font-size: 1.5rem !important;
  }
}

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

/* Smooth Scroll Behavior */
html {
  scroll-behavior: smooth;
}

/* Selection */
::selection {
  background-color: var(--secondary-color);
  color: white;
}

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

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

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

::-webkit-scrollbar-thumb {
  background: var(--secondary-color);
  border-radius: 5px;
}

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

/* Loading Animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

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

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--secondary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-speed) ease;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(230, 126, 34, 0.3);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--ember-dark);
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(230, 126, 34, 0.4);
}

/* Carousel Custom Controls */
.carousel-control-prev,
.carousel-control-next {
  width: 5%;
  opacity: 0.7;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1;
}

/* Border Utilities */
.border-secondary {
  border-color: var(--secondary-color) !important;
}

/* Additional Spacing */
.pt-5 {
  padding-top: 3rem !important;
}

.pb-4 {
  padding-bottom: 1.5rem !important;
}

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

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

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

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

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

.mb-5 {
  margin-bottom: 3rem !important;
}

/* Gap Utilities */
.g-3 {
  gap: 1rem !important;
}

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

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

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

/* Focus Visible */
a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--secondary-color);
  outline-offset: 2px;
}

/* Disabled State */
.btn:disabled,
.btn.disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

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

/* Position Utilities */
.position-relative {
  position: relative !important;
}

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

/* Accessibility */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}