/* Midnight Amber - Architectural Studio Theme */
/* ============================================ */

:root {
  --primary-color: #2C3E50;
  --secondary-color: #E67E22;
  --dark-accent: #1a252f;
  --light-accent: #f39c12;
  --text-light: #ecf0f1;
  --text-dark: #2c3e50;
  --shadow: rgba(0, 0, 0, 0.2);
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

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

/* ============================================ */
/* NAVIGATION */
/* ============================================ */

.navbar {
  background-color: var(--primary-color) !important;
  box-shadow: 0 2px 20px var(--shadow);
  transition: var(--transition);
  padding: 1rem 0;
}

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

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

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

.navbar-toggler {
  border-color: var(--secondary-color) !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='%23E67E22' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.nav-link {
  color: var(--text-light) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  position: relative;
  transition: var(--transition);
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--secondary-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(--secondary-color) !important;
}

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

/* ============================================ */
/* HERO CAROUSEL */
/* ============================================ */

.carousel {
  height: 100vh;
  position: relative;
  background-color: var(--dark-accent);
}

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

.carousel-item img {
  object-fit: cover;
  filter: brightness(0.6);
  transition: var(--transition);
}

.carousel-item.active img {
  animation: zoomIn 8s ease-out;
}

@keyframes zoomIn {
  from {
    transform: scale(1.2);
  }
  to {
    transform: scale(1);
  }
}

.carousel-fade .carousel-item {
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.carousel-fade .carousel-item.active {
  opacity: 1;
}

.carousel .position-absolute.top-50 {
  z-index: 10;
}

.display-2 {
  font-weight: 700;
  text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.8);
  animation: fadeInDown 1s ease-out;
  color: #ffffff !important;
}

.lead {
  font-size: 1.5rem;
  text-shadow: 1px 1px 10px rgba(0, 0, 0, 0.8);
  animation: fadeInUp 1s ease-out 0.3s both;
  color: var(--text-light) !important;
}

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

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

.bi-chevron-down {
  font-size: 2rem;
  animation: bounce 2s infinite;
  color: var(--secondary-color) !important;
}

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

/* ============================================ */
/* BUTTONS */
/* ============================================ */

.btn {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
  border-radius: 50px;
  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-outline-light {
  color: #ffffff !important;
  border-color: #ffffff !important;
  border-width: 2px !important;
}

.btn-outline-light:hover {
  background-color: var(--secondary-color) !important;
  border-color: var(--secondary-color) !important;
  color: #ffffff !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(230, 126, 34, 0.4);
}

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

.btn-light:hover {
  background-color: var(--secondary-color) !important;
  color: #ffffff !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px var(--shadow);
}

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

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

.btn-sm {
  padding: 0.4rem 1rem;
  font-size: 0.875rem;
}

.filter-btn {
  margin: 0.25rem;
  transition: var(--transition);
}

/* ============================================ */
/* SECTIONS */
/* ============================================ */

section {
  position: relative;
}

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

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

.pt-5 {
  padding-top: 5rem !important;
}

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

.display-3,
.display-4,
.display-5 {
  font-weight: 700;
  color: var(--primary-color) !important;
  margin-bottom: 1rem;
}

.display-2 {
  font-size: 3.5rem;
}

.display-3 {
  font-size: 3rem;
}

.display-4 {
  font-size: 2.5rem;
}

.display-5 {
  font-size: 2rem;
}

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

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

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

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

/* ============================================ */
/* ABOUT SECTION */
/* ============================================ */

.img-fluid {
  border-radius: 10px;
  box-shadow: 0 15px 40px var(--shadow);
  transition: var(--transition);
}

.img-fluid:hover {
  transform: scale(1.05);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

/* ============================================ */
/* SERVICES CARDS */
/* ============================================ */

.service-card,
.portfolio-card,
.card {
  background: #ffffff;
  border-radius: 15px;
  padding: 2rem;
  transition: var(--transition);
  border: 1px solid #e9ecef;
  height: 100%;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.service-card:hover,
.portfolio-card:hover,
.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border-color: var(--secondary-color);
}

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

.bi-house-door,
.bi-building,
.bi-rulers,
.bi-tree,
.bi-clipboard-check,
.bi-badge-3d,
.bi-lightbulb,
.bi-people,
.bi-grid-3x3,
.bi-box {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.service-card:hover .bi,
.portfolio-card:hover .bi,
.card:hover .bi {
  transform: scale(1.2) rotate(5deg);
  color: var(--light-accent) !important;
}

.fs-1 {
  font-size: 3rem !important;
}

.fs-2 {
  font-size: 2.5rem !important;
}

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

/* ============================================ */
/* PORTFOLIO/MASONRY GRID */
/* ============================================ */

.masonry-grid {
  column-count: 3;
  column-gap: 1.5rem;
}

.portfolio-item {
  break-inside: avoid;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.portfolio-item img {
  width: 100%;
  display: block;
  border-radius: 10px;
  transition: var(--transition);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, var(--primary-color) 0%, transparent 100%);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 2rem;
  color: #ffffff !important;
}

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

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

.portfolio-overlay h5,
.portfolio-overlay p,
.portfolio-overlay * {
  color: #ffffff !important;
}

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

.object-fit-cover {
  object-fit: cover;
}

/* ============================================ */
/* SERVICE ROW */
/* ============================================ */

.service-row {
  margin-bottom: 4rem;
}

.service-details {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-accent) 100%);
  color: #ffffff !important;
  border-radius: 15px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-details h3,
.service-details h4,
.service-details p,
.service-details * {
  color: #ffffff !important;
}

.service-details .bi {
  color: var(--secondary-color) !important;
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

.expand-text {
  color: var(--secondary-color) !important;
  cursor: pointer;
  text-decoration: underline;
  font-weight: 600;
}

.expand-text:hover {
  color: var(--light-accent) !important;
}

.collapse-text {
  display: inline;
}

/* ============================================ */
/* FORMS */
/* ============================================ */

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

.form-control,
.form-select {
  border: 2px solid #dee2e6;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  transition: var(--transition);
  background-color: #ffffff !important;
  color: var(--text-dark) !important;
}

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

.form-control::placeholder {
  color: #adb5bd;
}

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

.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) !important;
}

/* ============================================ */
/* FOOTER */
/* ============================================ */

footer {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-accent) 100%);
  color: var(--text-light) !important;
  padding: 4rem 0 2rem;
}

footer h5,
footer h6,
footer p,
footer a,
footer * {
  color: var(--text-light) !important;
}

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

footer .text-decoration-none {
  transition: var(--transition);
  display: inline-block;
}

footer .text-decoration-none:hover {
  color: var(--secondary-color) !important;
  transform: translateX(5px);
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  margin: 0 0.5rem;
  transition: var(--transition);
  color: #ffffff !important;
}

.social-links a:hover {
  background: var(--secondary-color) !important;
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(230, 126, 34, 0.4);
}

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

/* ============================================ */
/* MODAL */
/* ============================================ */

.modal-content {
  border-radius: 15px;
  overflow: hidden;
  border: none;
}

.modal-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-accent) 100%);
  color: #ffffff !important;
  border: none;
  padding: 1.5rem;
}

.modal-title {
  color: #ffffff !important;
  font-weight: 700;
}

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

.modal-body {
  padding: 0;
}

.ratio-16x9 {
  aspect-ratio: 16/9;
}

/* ============================================ */
/* UTILITIES */
/* ============================================ */

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

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

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

.rounded-circle {
  border-radius: 50% !important;
  width: 60px;
  height: 60px;
  object-fit: cover;
}

.sticky-lg-top {
  position: sticky;
  top: 100px;
  z-index: 100;
}

.position-sticky {
  position: sticky;
  top: 80px;
}

.alert {
  border-radius: 10px;
  padding: 1rem 1.5rem;
  border: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.lh-lg {
  line-height: 2 !important;
}

/* ============================================ */
/* ICONS SPECIFIC STYLING */
/* ============================================ */

.bi-linkedin,
.bi-instagram,
.bi-facebook,
.bi-twitter,
.bi-pinterest {
  font-size: 1.5rem;
}

.bi-geo-alt,
.bi-geo-alt-fill,
.bi-telephone,
.bi-telephone-fill,
.bi-envelope,
.bi-envelope-fill,
.bi-calendar3,
.bi-clock-history,
.bi-cup-hot,
.bi-shield-check,
.bi-send,
.bi-play-fill {
  font-size: 1.25rem;
  margin-right: 0.5rem;
}

.bi-person-fill,
.bi-house-fill,
.bi-globe,
.bi-chat-dots-fill,
.bi-bank,
.bi-cloud-arrow-up,
.bi-gear-fill,
.bi-bar-chart-fill,
.bi-sliders,
.bi-megaphone-fill,
.bi-eye-fill,
.bi-pencil-fill,
.bi-trash-fill,
.bi-x-circle-fill,
.bi-envelope-x-fill,
.bi-question-circle-fill,
.bi-lock-fill,
.bi-server,
.bi-person-badge {
  color: var(--secondary-color) !important;
}

/* ============================================ */
/* RESPONSIVE DESIGN */
/* ============================================ */

@media (max-width: 1199px) {
  .masonry-grid {
    column-count: 2;
  }
  
  .display-2 {
    font-size: 2.5rem;
  }
  
  .display-3 {
    font-size: 2.25rem;
  }
  
  .display-4 {
    font-size: 2rem;
  }
}

@media (max-width: 991px) {
  .navbar-collapse {
    background: var(--dark-accent);
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 10px;
  }
  
  .navbar-nav {
    gap: 0.5rem !important;
  }
  
  .nav-link {
    padding: 0.75rem 1rem !important;
  }
  
  .carousel {
    height: 70vh;
  }
  
  .display-2 {
    font-size: 2rem;
  }
  
  .lead {
    font-size: 1.2rem;
  }
  
  .sticky-lg-top {
    position: static;
  }
}

@media (max-width: 767px) {
  .masonry-grid {
    column-count: 1;
  }
  
  .carousel {
    height: 60vh;
  }
  
  .display-2 {
    font-size: 1.75rem;
  }
  
  .display-3 {
    font-size: 1.5rem;
  }
  
  .display-4 {
    font-size: 1.5rem;
  }
  
  .display-5 {
    font-size: 1.35rem;
  }
  
  .lead {
    font-size: 1rem;
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem !important;
    font-size: 1rem;
  }
  
  .py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
  
  .service-details {
    margin-top: 1.5rem;
  }
  
  .rounded-circle {
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 575px) {
  .navbar-brand {
    font-size: 1.5rem;
  }
  
  .px-4 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .gap-3 {
    gap: 0.5rem !important;
  }
  
  .gap-4 {
    gap: 1rem !important;
  }
  
  .service-card,
  .portfolio-card,
  .card {
    padding: 1.5rem;
  }
  
  .bi-house-door,
  .bi-building,
  .bi-rulers,
  .bi-tree,
  .bi-clipboard-check,
  .bi-badge-3d,
  .bi-lightbulb,
  .bi-people,
  .bi-grid-3x3,
  .bi-box {
    font-size: 2.5rem;
  }
}

/* ============================================ */
/* ANIMATIONS */
/* ============================================ */

@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);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.animate-on-scroll {
  opacity: 0;
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* ============================================ */
/* ADDITIONAL CARD STYLES */
/* ============================================ */

.card-body {
  padding: 1.5rem;
}

.border-0 {
  border: none !important;
}

/* ============================================ */
/* PRIVACY/CONTENT SECTIONS */
/* ============================================ */

.privacy-content {
  background: #ffffff;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

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

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

/* ============================================ */
/* NAV SIDEBAR */
/* ============================================ */

.nav {
  background: #ffffff;
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.nav .nav-link {
  color: var(--primary-color) !important;
  padding: 0.75rem 1rem !important;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

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

/* ============================================ */
/* LOADER/PRELOADER */
/* ============================================ */

.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease-out;
}

.loader.hidden {
  opacity: 0;
  pointer-events: none;
}

/* ============================================ */
/* SCROLLBAR STYLING */
/* ============================================ */

::-webkit-scrollbar {
  width: 10px;
}

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

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

::-webkit-scrollbar-thumb:hover {
  background: var(--light-accent);
}

/* ============================================ */
/* PRINT STYLES */
/* ============================================ */

@media print {
  .navbar,
  .btn,
  footer {
    display: none !important;
  }
}