/* Midnight Amber - Architecture Studio CSS */

:root {
  --primary-color: #2C3E50;
  --secondary-color: #E67E22;
  --dark-accent: #1a252f;
  --light-accent: #f39c12;
  --text-light: #ecf0f1;
  --text-dark: #2c3e50;
  --transition-speed: 0.4s;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.15);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.2);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-dark);
  background-color: #f8f9fa;
  line-height: 1.6;
  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;
}

.lead {
  font-size: 1.25rem !important;
  font-weight: 300;
  color: #5a6c7d !important;
}

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

/* Navbar Styles */
.navbar {
  background: rgba(44, 62, 80, 0.98) !important;
  backdrop-filter: blur(10px);
  transition: all var(--transition-speed) ease;
  padding: 1rem 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.navbar.sticky-top {
  position: sticky !important;
  top: 0;
  z-index: 1030;
}

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

.navbar-brand {
  font-size: 1.75rem !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px;
  transition: all var(--transition-speed) ease;
}

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

.nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500 !important;
  padding: 0.5rem 1rem !important;
  transition: all var(--transition-speed) ease;
  position: relative;
  text-decoration: none !important;
}

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

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

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

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

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem 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%28255, 255, 255, 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 {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-accent) 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding-top: 80px;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h100v100H0z" fill="none"/><path d="M0 0l100 100M100 0L0 100" stroke="%23E67E22" stroke-width="0.5" opacity="0.1"/></svg>');
  opacity: 0.03;
  animation: patternMove 60s linear infinite;
}

@keyframes patternMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(100px, 100px); }
}

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

.hero-section .lead {
  color: rgba(255, 255, 255, 0.9) !important;
  animation: fadeInUp 1s ease 0.2s both;
}

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

/* Buttons */
.btn {
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 8px;
  transition: all var(--transition-speed) ease;
  border: none;
  position: relative;
  overflow: hidden;
  text-decoration: none !important;
}

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

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

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

.btn-primary {
  background: var(--secondary-color) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(230, 126, 34, 0.3);
}

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

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

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

.btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.8) !important;
  color: #ffffff !important;
  background: transparent !important;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
  border-color: #ffffff !important;
}

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

.btn-outline-dark:hover {
  background: var(--primary-color) !important;
  color: #ffffff !important;
}

.btn-light {
  background: #ffffff !important;
  color: var(--primary-color) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.btn-filter {
  background: transparent !important;
  color: var(--primary-color) !important;
  border: 2px solid #dee2e6 !important;
  padding: 0.5rem 1.5rem !important;
  margin: 0.25rem;
}

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

.filter-btn {
  background: rgba(44, 62, 80, 0.1) !important;
  color: var(--primary-color) !important;
  border: 2px solid transparent !important;
  padding: 0.75rem 1.5rem !important;
  margin: 0.5rem 0.25rem;
  font-size: 0.9rem;
}

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

/* Cards */
.card {
  border: none !important;
  border-radius: 12px;
  overflow: hidden;
  transition: all var(--transition-speed) ease;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

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

.card-body {
  padding: 2rem;
}

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

.card-img-top {
  transition: all var(--transition-speed) ease;
}

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

/* Portfolio Items */
.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
}

.portfolio-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(44, 62, 80, 0.9) 0%, rgba(230, 126, 34, 0.9) 100%);
  opacity: 0;
  transition: all var(--transition-speed) ease;
  z-index: 1;
}

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

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

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

.project-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-speed) ease;
}

.project-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

/* Badges */
.badge {
  padding: 0.5rem 1rem !important;
  font-weight: 600 !important;
  border-radius: 6px;
  font-size: 0.85rem !important;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/* Timeline */
.timeline-item {
  position: relative;
  padding-left: 3rem;
  padding-bottom: 2rem;
  border-left: 2px solid var(--secondary-color);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--secondary-color);
  border: 3px solid #ffffff;
  box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.2);
}

.timeline-item:last-child {
  border-left: 2px solid transparent;
}

/* Forms */
.form-control, .form-select {
  border: 2px solid #e0e0e0 !important;
  border-radius: 8px !important;
  padding: 0.75rem 1rem !important;
  transition: all var(--transition-speed) ease;
  background: #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.15) !important;
  background: #ffffff !important;
}

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

.form-check-input {
  border: 2px solid #dee2e6 !important;
  width: 1.25rem;
  height: 1.25rem;
}

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

.form-check-label {
  margin-left: 0.5rem;
  color: var(--text-dark) !important;
}

.needs-validation .form-control:invalid {
  border-color: #dc3545 !important;
}

.needs-validation .form-control:valid {
  border-color: #28a745 !important;
}

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

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

/* Modal */
.modal-content {
  border: none !important;
  border-radius: 12px;
  overflow: hidden;
}

.modal-header {
  background: var(--primary-color) !important;
  color: #ffffff !important;
  border-bottom: none !important;
  padding: 1.5rem;
}

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

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

.btn-close:hover, .btn-close-white:hover {
  opacity: 1;
}

.modal-body {
  padding: 2rem;
}

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

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

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

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

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

.opacity-75 {
  opacity: 0.75 !important;
}

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

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

.position-sticky {
  position: sticky !important;
  top: 0;
  z-index: 1020;
}

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

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

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

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

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

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

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

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

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

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

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

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

.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 1rem !important; }
.gap-4 { gap: 1.5rem !important; }

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

.mx-auto {
  margin-left: auto !important;
  margin-right: auto !important;
}

.ms-auto {
  margin-left: auto !important;
}

.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-auto { margin-top: auto !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !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; }

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

.me-2 { margin-right: 0.5rem !important; }
.me-3 { margin-right: 1rem !important; }

.p-0 { padding: 0 !important; }
.p-2 { padding: 0.5rem !important; }
.p-3 { padding: 1rem !important; }
.p-4 { padding: 1.5rem !important; }
.p-5 { padding: 3rem !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-2 {
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
}

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

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

.ps-4 {
  padding-left: 1.5rem !important;
}

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

.pe-lg-4 {
  padding-right: 1.5rem !important;
}

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

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

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

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

.fw-semibold {
  font-weight: 600 !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; }

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

/* Scroll Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Grid */
.row {
  margin-left: -0.75rem;
  margin-right: -0.75rem;
}

.row > * {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.g-0 {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.g-0 > * {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

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

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

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

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

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

/* Media Queries */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(44, 62, 80, 0.98);
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 8px;
  }
  
  .nav-link {
    padding: 0.75rem 1rem !important;
  }
  
  .hero-section {
    min-height: 100vh;
    padding-top: 100px;
  }
  
  .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;
  }
  
  .display-6 {
    font-size: 1.5rem !important;
  }
  
  section {
    padding: 3rem 0;
  }
  
  .mb-lg-0 {
    margin-bottom: 1.5rem !important;
  }
  
  .order-lg-1 {
    order: 2;
  }
  
  .order-lg-2 {
    order: 1;
  }
  
  .text-lg-end {
    text-align: left !important;
  }
  
  .mt-lg-0 {
    margin-top: 1rem !important;
  }
}

@media (max-width: 767.98px) {
  .display-2 {
    font-size: 2rem !important;
  }
  
  .hero-section {
    padding-top: 80px;
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem !important;
    font-size: 0.9rem !important;
  }
  
  .col-md-6, .col-md-4, .col-md-3, .col-md-12 {
    margin-bottom: 1rem;
  }
  
  .text-md-start, .text-md-end {
    text-align: center !important;
  }
  
  .flex-md-row-reverse {
    flex-direction: column !important;
  }
  
  .mb-md-0 {
    margin-bottom: 1rem !important;
  }
}

@media (max-width: 575.98px) {
  .display-2 {
    font-size: 1.75rem !important;
  }
  
  .container, .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .px-4, .px-5 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .px-lg-5 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .col-sm-6 {
    margin-bottom: 1rem;
  }
  
  .btn-filter, .filter-btn {
    font-size: 0.85rem;
    padding: 0.5rem 1rem !important;
  }
}

@media (min-width: 992px) {
  .col-lg-2 { width: 16.666667%; }
  .col-lg-3 { width: 25%; }
  .col-lg-4 { width: 33.333333%; }
  .col-lg-5 { width: 41.666667%; }
  .col-lg-6 { width: 50%; }
  .col-lg-7 { width: 58.333333%; }
  .col-lg-8 { width: 66.666667%; }
  .col-lg-9 { width: 75%; }
  .col-lg-10 { width: 83.333333%; }
  
  .offset-lg-1 { margin-left: 8.333333%; }
  .offset-lg-2 { margin-left: 16.666667%; }
  
  .gap-lg-3 { gap: 1rem !important; }
  
  .pe-lg-4 { padding-right: 1.5rem !important; }
  .ps-lg-5 { padding-left: 3rem !important; }
  .px-lg-5 { padding-left: 3rem !important; padding-right: 3rem !important; }
  
  .order-lg-1 { order: 1; }
  .order-lg-2 { order: 2; }
  
  .mb-lg-0 { margin-bottom: 0 !important; }
  .mt-lg-0 { margin-top: 0 !important; }
  
  .text-lg-end { text-align: right !important; }
}

/* Print Styles */
@media print {
  .navbar, .btn, .modal {
    display: none !important;
  }
  
  body {
    background: white;
    color: black;
  }
  
  a {
    text-decoration: underline;
  }
}