/* Architecture Studio - Deep Slate & Emerald Theme */

:root {
  --primary-color: #2C3E50;
  --secondary-color: #18BC9C;
  --primary-dark: #1a252f;
  --secondary-dark: #128f76;
  --light-bg: #f8f9fa;
  --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;
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6, .display-3, .display-4, .display-5, .display-6 {
  font-weight: 700;
  color: var(--primary-color) !important;
  letter-spacing: -0.5px;
}

.lead {
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--text-light) !important;
}

/* Navbar Styling */
.navbar {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
  padding: 1rem 0;
  box-shadow: 0 2px 15px rgba(0,0,0,0.1);
  transition: var(--transition);
}

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

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

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

.navbar-brand.fw-bold {
  font-weight: 800 !important;
}

.navbar-dark .navbar-toggler {
  border-color: var(--secondary-color) !important;
  color: #ffffff !important;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem rgba(24, 188, 156, 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='%2318BC9C' 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;
  margin: 0 0.5rem;
  padding: 0.5rem 1rem !important;
  position: relative;
  transition: var(--transition);
}

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

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

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

/* Hero/Carousel Section */
.carousel {
  background: var(--primary-color);
}

.carousel-item {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
}

.carousel-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to right, rgba(44, 62, 80, 0.95) 0%, rgba(44, 62, 80, 0.5) 100%);
  z-index: 1;
}

.carousel-item img {
  object-fit: cover;
  height: 100vh;
  filter: brightness(0.7);
}

.carousel-caption {
  z-index: 2;
  top: 50%;
  transform: translateY(-50%);
  left: 10%;
  right: auto;
  bottom: auto;
  text-align: left;
  animation: fadeInUp 1s ease-out;
}

.carousel-caption .display-3 {
  color: #ffffff !important;
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  animation: fadeInUp 1s ease-out 0.2s both;
}

.carousel-caption .lead {
  color: rgba(255, 255, 255, 0.95) !important;
  font-size: 1.3rem;
  max-width: 600px;
  animation: fadeInUp 1s ease-out 0.4s both;
}

.carousel-control-prev,
.carousel-control-next {
  width: 5%;
  opacity: 0.8;
  transition: var(--transition);
}

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

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: var(--secondary-color);
  border-radius: 50%;
  padding: 2rem;
}

/* Buttons */
.btn {
  font-weight: 600;
  border-radius: 50px;
  transition: var(--transition);
  border: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.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;
  z-index: -1;
}

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

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

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

.btn-primary:hover {
  background: var(--secondary-dark) !important;
  border-color: var(--secondary-dark) !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(24, 188, 156, 0.3) !important;
}

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

.btn-light:hover {
  background: transparent !important;
  color: #ffffff !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2) !important;
}

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

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

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

/* Sections */
section {
  position: relative;
  overflow: hidden;
}

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

.py-4 {
  padding: 3rem 0 !important;
}

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

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

/* Cards */
.card {
  border: none !important;
  border-radius: 15px;
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
}

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

.card-body {
  padding: 2rem;
}

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

/* Shadow Utilities */
.shadow {
  box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
}

.shadow-sm {
  box-shadow: 0 5px 15px rgba(0,0,0,0.08) !important;
}

.shadow-lg {
  box-shadow: 0 20px 60px rgba(0,0,0,0.15) !important;
}

/* Images */
.img-fluid {
  max-width: 100%;
  height: auto;
  transition: var(--transition);
}

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

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

img:hover {
  transform: scale(1.05);
}

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

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

/* Service/Feature Cards */
.p-4 {
  padding: 2rem !important;
  background: #ffffff;
  border-radius: 15px;
  transition: var(--transition);
  border: 1px solid rgba(44, 62, 80, 0.1);
}

.p-4:hover {
  background: linear-gradient(135deg, rgba(24, 188, 156, 0.05) 0%, rgba(44, 62, 80, 0.05) 100%);
  border-color: var(--secondary-color);
  transform: translateY(-5px);
}

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

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

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

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

.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) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  opacity: 0;
  transition: var(--transition);
}

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

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

.portfolio-overlay h4,
.portfolio-overlay h5,
.portfolio-overlay h6 {
  color: #ffffff !important;
  margin-bottom: 0.5rem;
}

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

/* Forms */
.form-control,
.form-select {
  border: 2px solid rgba(44, 62, 80, 0.2);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  transition: var(--transition);
  color: var(--text-dark) !important;
  background: #ffffff !important;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--secondary-color) !important;
  box-shadow: 0 0 0 0.25rem rgba(24, 188, 156, 0.15) !important;
  background: #ffffff !important;
}

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

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

.alert-light {
  background: rgba(24, 188, 156, 0.1) !important;
  color: var(--primary-color) !important;
}

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

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

.list-unstyled li {
  padding: 0.5rem 0;
  color: var(--text-dark) !important;
}

/* Links */
a {
  color: var(--secondary-color) !important;
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--secondary-dark) !important;
  text-decoration: underline;
}

.text-decoration-none {
  text-decoration: none !important;
}

.text-decoration-none:hover {
  text-decoration: none !important;
  opacity: 0.8;
}

/* Text Colors */
.text-white {
  color: #ffffff !important;
}

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

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

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

/* Footer */
footer {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
  color: rgba(255, 255, 255, 0.9) !important;
  padding: 4rem 0 0;
}

footer h3,
footer h4,
footer h5,
footer h6 {
  color: #ffffff !important;
  margin-bottom: 1.5rem;
}

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

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

footer .border-top {
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Filter Buttons */
.filter-btn {
  margin: 0.5rem;
  padding: 0.75rem 2rem;
  transition: var(--transition);
}

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

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

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

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

/* Utility Classes */
.position-relative { position: relative !important; }
.position-absolute { position: absolute !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; }

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

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

.justify-content-center { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }
.align-items-center { align-items: center !important; }
.align-items-start { align-items: flex-start !important; }
.align-items-stretch { align-items: stretch !important; }

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

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

.m-0 { margin: 0 !important; }
.m-3 { margin: 1rem !important; }
.m-4 { margin: 1.5rem !important; }
.m-5 { margin: 3rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }
.ms-auto { margin-left: auto !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; }
.me-4 { margin-right: 1.5rem !important; }
.my-4 { margin-top: 1.5rem !important; margin-bottom: 1.5rem !important; }
.my-5 { margin-top: 3rem !important; margin-bottom: 3rem !important; }

.p-0 { padding: 0 !important; }
.p-3 { padding: 1rem !important; }
.px-3 { padding-left: 1rem !important; padding-right: 1rem !important; }
.px-4 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
.px-5 { padding-left: 3rem !important; padding-right: 3rem !important; }
.py-0 { padding-top: 0 !important; padding-bottom: 0 !important; }
.py-3 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
.pt-4 { padding-top: 1.5rem !important; }
.ps-3 { padding-left: 1rem !important; }
.ps-lg-5 { padding-left: 3rem !important; }
.pe-lg-5 { padding-right: 3rem !important; }

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

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

.small { font-size: 0.875rem !important; }

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

/* Responsive Design */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(26, 37, 47, 0.98);
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem !important;
  }
  
  .carousel-caption {
    left: 5%;
    right: 5%;
  }
  
  .carousel-caption .display-3 {
    font-size: 2rem;
  }
  
  .carousel-caption .lead {
    font-size: 1rem;
  }
  
  .display-4 {
    font-size: 2rem !important;
  }
  
  .display-5 {
    font-size: 1.75rem !important;
  }
  
  .py-5 {
    padding: 3rem 0 !important;
  }
  
  .portfolio-item {
    height: 250px;
  }
  
  .d-lg-block {
    display: none !important;
  }
  
  .col-lg-7,
  .col-lg-6,
  .col-lg-5,
  .col-lg-4,
  .col-lg-3,
  .col-lg-8,
  .col-lg-10 {
    width: 100%;
  }
  
  .ps-lg-5,
  .pe-lg-5 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .mb-lg-0 {
    margin-bottom: 1.5rem !important;
  }
  
  .mt-lg-0 {
    margin-top: 0 !important;
  }
  
  .text-lg-end {
    text-align: left !important;
  }
  
  .flex-lg-row-reverse {
    flex-direction: column !important;
  }
  
  .order-lg-1 {
    order: 1;
  }
  
  .order-lg-2 {
    order: 2;
  }
}

@media (max-width: 767.98px) {
  .col-md-6,
  .col-md-4,
  .col-md-5,
  .col-md-7,
  .col-md-8,
  .col-md-3 {
    width: 100%;
    margin-bottom: 1rem;
  }
  
  .text-md-start,
  .text-md-end {
    text-align: center !important;
  }
  
  .mb-md-0 {
    margin-bottom: 1rem !important;
  }
  
  .p-md-5 {
    padding: 2rem !important;
  }
  
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .col-sm-6 {
    width: 100%;
  }
  
  .flex-sm-row {
    flex-direction: column !important;
  }
  
  .btn-lg {
    padding: 0.75rem 2rem !important;
    font-size: 1rem;
  }
  
  .col-6 {
    width: 100%;
  }
}

/* Scroll Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

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

::-webkit-scrollbar-track {
  background: var(--light-bg);
}

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

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

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

/* Grid System */
.g-0 { gap: 0 !important; }
.g-2 { gap: 0.5rem !important; }
.g-3 { gap: 1rem !important; }
.g-4 { gap: 1.5rem !important; }

.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}

.col-12 { width: 100%; padding: 0 15px; }
.col-6 { width: 50%; padding: 0 15px; }

@media (min-width: 768px) {
  .col-md-3 { width: 25%; padding: 0 15px; }
  .col-md-4 { width: 33.333%; padding: 0 15px; }
  .col-md-5 { width: 41.666%; padding: 0 15px; }
  .col-md-6 { width: 50%; padding: 0 15px; }
  .col-md-7 { width: 58.333%; padding: 0 15px; }
  .col-md-8 { width: 66.666%; padding: 0 15px; }
}

@media (min-width: 992px) {
  .col-lg-3 { width: 25%; padding: 0 15px; }
  .col-lg-4 { width: 33.333%; padding: 0 15px; }
  .col-lg-5 { width: 41.666%; padding: 0 15px; }
  .col-lg-6 { width: 50%; padding: 0 15px; }
  .col-lg-7 { width: 58.333%; padding: 0 15px; }
  .col-lg-8 { width: 66.666%; padding: 0 15px; }
  .col-lg-10 { width: 83.333%; padding: 0 15px; }
  .offset-lg-1 { margin-left: 8.333%; }
  .d-lg-block { display: block !important; }
}