/* Midnight Amber Architecture Studio - Custom Styles */

/* ===== ROOT VARIABLES ===== */
:root {
  --primary-color: #2C3E50;
  --secondary-color: #E67E22;
  --dark-blue: #1a252f;
  --light-amber: #f39c12;
  --accent-amber: #d68910;
  --text-dark: #2c3e50;
  --text-light: #ecf0f1;
  --gradient-primary: linear-gradient(135deg, #2C3E50 0%, #34495e 100%);
  --gradient-secondary: linear-gradient(135deg, #E67E22 0%, #d35400 100%);
  --gradient-overlay: linear-gradient(180deg, rgba(44, 62, 80, 0.8) 0%, rgba(44, 62, 80, 0.95) 100%);
  --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 2px 8px rgba(44, 62, 80, 0.1);
  --shadow-md: 0 4px 16px rgba(44, 62, 80, 0.15);
  --shadow-lg: 0 8px 32px rgba(44, 62, 80, 0.2);
  --shadow-xl: 0 16px 48px rgba(44, 62, 80, 0.25);
}

/* ===== GLOBAL STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

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

/* ===== TYPOGRAPHY ===== */
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-weight: 700 !important;
  letter-spacing: -1px;
  color: var(--primary-color) !important;
}

.text-white.display-1,
.text-white.display-2,
.text-white.display-3,
.text-white.display-4,
.text-white.display-5,
.text-white.display-6 {
  color: #ffffff !important;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
  font-weight: 600;
  color: var(--primary-color) !important;
  margin-bottom: 1rem;
}

.text-white h1,
.text-white h2,
.text-white h3,
.text-white h4,
.text-white h5,
.text-white h6 {
  color: #ffffff !important;
}

.lead {
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.8;
}

.text-muted {
  color: #7f8c8d !important;
}

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

/* ===== NAVIGATION ===== */
.navbar {
  padding: 1rem 0;
  transition: var(--transition-smooth);
  background: var(--gradient-primary) !important;
  box-shadow: var(--shadow-md);
  z-index: 1000;
}

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

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

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

.navbar-dark .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
  padding: 0.5rem 1.2rem !important;
  margin: 0 0.2rem;
  transition: var(--transition-smooth);
  position: relative;
}

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

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

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
  color: #ffffff !important;
  background-color: rgba(230, 126, 34, 0.1);
  border-radius: 4px;
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.3) !important;
  padding: 0.5rem 0.75rem;
}

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

/* ===== BUTTONS ===== */
.btn {
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 8px;
  transition: var(--transition-smooth);
  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-primary {
  background: var(--gradient-secondary) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background: var(--accent-amber) !important;
  color: #ffffff !important;
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg) !important;
}

.btn-secondary {
  background: var(--gradient-primary) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:active {
  background: var(--dark-blue) !important;
  color: #ffffff !important;
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg) !important;
}

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

.btn-outline-dark:hover,
.btn-outline-dark:focus,
.btn-outline-dark:active,
.btn-outline-dark.active {
  background: var(--primary-color) !important;
  color: #ffffff !important;
  border-color: var(--primary-color) !important;
  transform: translateY(-2px);
}

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

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

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

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

/* ===== HERO SECTION ===== */
.position-relative {
  position: relative;
}

.position-absolute {
  position: absolute;
}

.hero-section {
  min-height: 100vh;
  background: var(--gradient-primary);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%23E67E22" fill-opacity="0.05"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
  opacity: 0.3;
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

/* ===== CARDS ===== */
.card {
  border: none !important;
  border-radius: 12px !important;
  overflow: hidden;
  transition: var(--transition-smooth);
  background: #ffffff;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl) !important;
}

.card-body {
  padding: 2rem;
}

.card-img-top {
  height: 250px;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.card:hover .card-img-top {
  transform: scale(1.1);
}

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

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

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

/* ===== PORTFOLIO ===== */
.portfolio-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  height: 100%;
}

.portfolio-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
  min-height: 300px;
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-overlay);
  opacity: 0;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.portfolio-card:hover .portfolio-image {
  transform: scale(1.15);
}

.portfolio-content {
  text-align: center;
  padding: 2rem;
  transform: translateY(20px);
  transition: var(--transition-smooth);
}

.portfolio-card:hover .portfolio-content {
  transform: translateY(0);
}

.portfolio-content h3,
.portfolio-content h4,
.portfolio-content h5 {
  color: #ffffff !important;
}

.portfolio-content p {
  color: rgba(255, 255, 255, 0.9) !important;
}

/* ===== MASONRY GRID ===== */
.masonry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  grid-auto-rows: 300px;
  grid-auto-flow: dense;
}

.masonry-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}

.masonry-item-tall {
  grid-row: span 2;
}

.masonry-item-wide {
  grid-column: span 2;
}

@media (max-width: 768px) {
  .masonry-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 250px;
  }
  
  .masonry-item-tall,
  .masonry-item-wide {
    grid-row: span 1;
    grid-column: span 1;
  }
}

/* ===== FORMS ===== */
.form-control,
.form-select {
  border: 2px solid #e0e0e0 !important;
  border-radius: 8px !important;
  padding: 0.75rem 1rem !important;
  transition: var(--transition-smooth);
  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.2rem rgba(230, 126, 34, 0.15) !important;
  outline: none;
}

.form-control::placeholder {
  color: #95a5a6 !important;
}

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

.form-check-input {
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid #e0e0e0;
  cursor: pointer;
}

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

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

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

/* ===== BADGES ===== */
.badge {
  padding: 0.5rem 1rem !important;
  border-radius: 6px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

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

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

/* ===== ICONS ===== */
.bi {
  display: inline-block;
  vertical-align: middle;
}

[class^="bi-"]::before,
[class*=" bi-"]::before {
  display: inline-block;
  font-family: 'bootstrap-icons';
  font-style: normal;
  font-weight: normal !important;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  vertical-align: -.125em;
}

.bi-check-circle-fill {
  color: var(--secondary-color) !important;
}

/* ===== CAROUSEL ===== */
.carousel {
  position: relative;
}

.carousel-inner {
  border-radius: 12px;
  overflow: hidden;
}

.carousel-item {
  height: 500px;
  position: relative;
}

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

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

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

.carousel-indicators [data-bs-target] {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--secondary-color);
  border: none;
}

/* ===== SECTIONS ===== */
section {
  padding: 5rem 0;
  position: relative;
}

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

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

/* ===== IMAGES ===== */
.img-fluid {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

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

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

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

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

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

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

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

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

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

.top-0 {
  top: 0 !important;
}

.top-50 {
  top: 50% !important;
}

.start-0 {
  left: 0 !important;
}

.start-50 {
  left: 50% !important;
}

.bottom-0 {
  bottom: 0 !important;
}

.translate-middle {
  transform: translate(-50%, -50%) !important;
}

.w-100 {
  width: 100% !important;
}

.h-100 {
  height: 100% !important;
}

.d-flex {
  display: flex !important;
}

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

.d-block {
  display: block !important;
}

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

.d-none {
  display: none !important;
}

.flex-column {
  flex-direction: column !important;
}

.flex-wrap {
  flex-wrap: wrap !important;
}

.flex-grow-1 {
  flex-grow: 1 !important;
}

.flex-shrink-0 {
  flex-shrink: 0 !important;
}

.align-items-center {
  align-items: center !important;
}

.align-items-start {
  align-items: flex-start !important;
}

.justify-content-center {
  justify-content: center !important;
}

.justify-content-end {
  justify-content: flex-end !important;
}

.gap-2 {
  gap: 0.5rem !important;
}

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

.text-center {
  text-align: center !important;
}

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

.text-uppercase {
  text-transform: uppercase !important;
}

.fst-italic {
  font-style: italic !important;
}

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

.fw-semibold {
  font-weight: 600 !important;
}

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

/* ===== FOOTER ===== */
footer {
  background: var(--gradient-primary);
  color: rgba(255, 255, 255, 0.9) !important;
  padding: 4rem 0 2rem;
  margin-top: 5rem;
}

footer h6,
footer .h6 {
  color: #ffffff !important;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

footer a {
  color: rgba(255, 255, 255, 0.8) !important;
  text-decoration: none;
  transition: var(--transition-smooth);
  display: block;
  padding: 0.3rem 0;
}

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

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

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

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

/* ===== QUOTE SECTION ===== */
.bi-quote {
  font-size: 3rem;
  color: var(--secondary-color) !important;
  opacity: 0.3;
}

/* ===== FILTER BUTTONS ===== */
.filter-buttons .btn-outline-dark {
  margin: 0.25rem;
  border-radius: 25px;
  padding: 0.5rem 1.5rem;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

/* ===== PRIVACY CONTENT ===== */
.privacy-content {
  line-height: 1.8;
}

.privacy-content h2,
.privacy-content h3,
.privacy-content h4 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.privacy-content .border-bottom {
  border-bottom: 2px solid #e0e0e0 !important;
  padding-bottom: 1rem;
}

/* ===== 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(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

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

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

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

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

/* ===== SCROLL ANIMATIONS ===== */
[data-animate] {
  opacity: 0;
  transition: var(--transition-smooth);
}

[data-animate].animated {
  opacity: 1;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(44, 62, 80, 0.98);
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 8px;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem !important;
    margin: 0.25rem 0;
  }
  
  .display-1 {
    font-size: 3rem !important;
  }
  
  .display-3 {
    font-size: 2.5rem !important;
  }
  
  .display-4 {
    font-size: 2rem !important;
  }
  
  .display-5 {
    font-size: 1.75rem !important;
  }
  
  section {
    padding: 3rem 0;
  }
  
  .btn-lg {
    padding: 0.875rem 2rem !important;
    font-size: 0.95rem !important;
  }
  
  .carousel-item {
    height: 350px;
  }
}

@media (max-width: 767.98px) {
  .display-1 {
    font-size: 2.5rem !important;
  }
  
  .display-3 {
    font-size: 2rem !important;
  }
  
  .display-4 {
    font-size: 1.75rem !important;
  }
  
  .lead {
    font-size: 1.1rem;
  }
  
  .py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
  
  .carousel-item {
    height: 250px;
  }
  
  .card-img-top {
    height: 200px;
  }
}

@media (max-width: 575.98px) {
  .px-4 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem !important;
    font-size: 0.9rem !important;
  }
  
  .gap-3 {
    gap: 0.75rem !important;
  }
}

/* ===== HOVER EFFECTS ===== */
.hover-lift {
  transition: var(--transition-smooth);
}

.hover-lift:hover {
  transform: translateY(-5px);
}

.hover-scale {
  transition: var(--transition-smooth);
}

.hover-scale:hover {
  transform: scale(1.05);
}

/* ===== LINK COLORS ===== */
a {
  color: var(--secondary-color) !important;
  text-decoration: none;
  transition: var(--transition-smooth);
}

a:hover {
  color: var(--accent-amber) !important;
  text-decoration: none;
}

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

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

/* ===== NAV COMPONENT ===== */
.nav {
  display: flex;
  flex-wrap: wrap;
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
}

.nav.flex-column {
  flex-direction: column;
}

.nav.flex-column .nav-link {
  padding: 0.75rem 1rem;
  color: var(--primary-color) !important;
  border-left: 3px solid transparent;
  transition: var(--transition-smooth);
}

.nav.flex-column .nav-link:hover,
.nav.flex-column .nav-link.active {
  border-left-color: var(--secondary-color);
  background-color: rgba(230, 126, 34, 0.1);
  color: var(--secondary-color) !important;
}

/* ===== LOADER ===== */
.loader {
  border: 4px solid rgba(230, 126, 34, 0.1);
  border-radius: 50%;
  border-top: 4px solid var(--secondary-color);
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ===== SOCIAL ICONS ===== */
.social-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: var(--transition-smooth);
  color: #ffffff !important;
}

.social-icon:hover {
  background: var(--secondary-color) !important;
  color: #ffffff !important;
  transform: translateY(-3px);
}

/* ===== CUSTOM SCROLLBAR ===== */
::-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(--accent-amber);
}

/* ===== ACCESSIBILITY ===== */
.btn:focus,
.form-control:focus,
.form-select:focus,
.form-check-input:focus {
  outline: none;
}

.btn:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible {
  outline: 2px solid var(--secondary-color);
  outline-offset: 2px;
}

/* ===== PRINT STYLES ===== */
@media print {
  .navbar,
  .btn,
  footer {
    display: none !important;
  }
  
  body {
    color: #000 !important;
    background: #fff !important;
  }
}