/* Architectural Studio - Midnight Slate & Copper Theme */

:root {
  --primary-color: #2C3E50;
  --secondary-color: #E67E22;
  --dark-slate: #1a252f;
  --light-slate: #3d5266;
  --copper-light: #f39c12;
  --copper-dark: #d35400;
  --text-light: #ecf0f1;
  --text-dark: #2c3e50;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  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;
}

/* Typography */
.display-2, .display-3, .display-4, .display-5, .display-6 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.lead {
  font-size: 1.25rem;
  font-weight: 300;
}

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

.navbar.scrolled {
  padding: 0.5rem 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

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

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

.navbar-toggler {
  border: 2px solid var(--secondary-color) !important;
  padding: 0.5rem 0.75rem;
  background-color: rgba(230, 126, 34, 0.1) !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='%23E67E22' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

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

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

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

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

/* Hero Section */
.position-relative.overflow-hidden {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--dark-slate) 0%, var(--primary-color) 100%);
  position: relative;
}

.position-absolute.w-100.h-100 {
  z-index: 1;
  opacity: 0.15;
}

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

.container.d-flex.align-items-center {
  min-height: 100vh;
  position: relative;
  z-index: 2;
}

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

.display-3 {
  color: #ffffff !important;
}

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

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

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

.fs-4, .fs-5 {
  color: rgba(255, 255, 255, 0.9) !important;
  animation: fadeInUp 1s ease-out 0.2s both;
}

.lead {
  color: rgba(255, 255, 255, 0.85) !important;
}

/* Buttons */
.btn {
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.75rem 2rem !important;
  border-radius: 4px;
  transition: var(--transition-smooth) !important;
  border: none !important;
  position: relative;
  overflow: hidden;
}

.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: 1.1rem !important;
}

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

.btn-primary:hover {
  background-color: var(--copper-dark) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 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-color: var(--secondary-color) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
}

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

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

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

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

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

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

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

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

.card-body {
  padding: 2rem;
}

.card.border-0 {
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
}

/* Sections */
.py-5 {
  padding: 4rem 0 !important;
}

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

.my-5 {
  margin: 4rem 0 !important;
}

.my-4 {
  margin: 3rem 0 !important;
}

section {
  position: relative;
  overflow: hidden;
}

/* Background Variations */
.bg-light {
  background-color: #f8f9fa !important;
}

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

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

.bg-secondary h1,
.bg-secondary h2,
.bg-secondary h3,
.bg-secondary h4,
.bg-secondary h5,
.bg-secondary h6,
.bg-secondary p,
.bg-secondary .lead {
  color: #ffffff !important;
}

.bg-opacity-10 {
  background-color: rgba(230, 126, 34, 0.1) !important;
}

/* Text Colors */
.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;
}

.text-decoration-none:hover {
  color: var(--secondary-color) !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: 8px;
  cursor: pointer;
  aspect-ratio: 4/3;
  background: var(--primary-color);
}

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

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(44, 62, 80, 0.95) 0%, rgba(230, 126, 34, 0.95) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  opacity: 0;
  transition: var(--transition-smooth);
  padding: 2rem;
  text-align: center;
}

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

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

.portfolio-overlay h3,
.portfolio-overlay p {
  color: #ffffff !important;
  transform: translateY(20px);
  transition: var(--transition-smooth);
}

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

/* Filter Buttons */
.filter-btn {
  background: transparent !important;
  border: 2px solid var(--primary-color) !important;
  color: var(--primary-color) !important;
  padding: 0.5rem 1.5rem !important;
  margin: 0.25rem;
  border-radius: 50px;
  font-weight: 600 !important;
  transition: var(--transition-smooth) !important;
}

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

/* Forms */
.form-control,
.form-select {
  border: 2px solid #e9ecef !important;
  padding: 0.75rem 1rem !important;
  border-radius: 4px;
  transition: var(--transition-smooth) !important;
  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.15) !important;
  background-color: #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.25em;
  height: 1.25em;
}

.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.25rem rgba(230, 126, 34, 0.15) !important;
}

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

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

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

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

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

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

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

/* Icons */
.bi {
  vertical-align: middle;
  transition: var(--transition-smooth);
}

.bi-envelope-heart,
.bi-geo-alt-fill,
.bi-telephone-fill,
.bi-envelope-fill,
.bi-send,
.bi-lightbulb-fill,
.bi-chat-dots-fill,
.bi-pencil-square,
.bi-people-fill,
.bi-award-fill,
.bi-linkedin,
.bi-instagram,
.bi-facebook {
  font-size: 1.5rem;
  color: var(--secondary-color);
}

a:hover .bi {
  transform: scale(1.2);
  color: var(--copper-dark) !important;
}

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

.list-unstyled li {
  padding: 0.5rem 0;
  transition: var(--transition-smooth);
}

.list-unstyled li:hover {
  padding-left: 10px;
  color: var(--secondary-color) !important;
}

/* Accordion */
.accordion-item {
  border: 1px solid #e9ecef !important;
  margin-bottom: 1rem;
  border-radius: 8px !important;
  overflow: hidden;
}

.accordion-button {
  background-color: #f8f9fa !important;
  color: var(--primary-color) !important;
  font-weight: 600 !important;
  padding: 1.25rem !important;
  transition: var(--transition-smooth) !important;
}

.accordion-button:not(.collapsed) {
  background-color: var(--primary-color) !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.25rem rgba(230, 126, 34, 0.15) !important;
  border-color: var(--secondary-color) !important;
}

.accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%232C3E50'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
}

.accordion-button:not(.collapsed)::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
}

.accordion-body {
  padding: 1.5rem !important;
  background-color: #ffffff !important;
  color: var(--text-dark) !important;
}

/* Table */
.table {
  color: var(--text-dark) !important;
}

.table-hover tbody tr {
  transition: var(--transition-smooth);
}

.table-hover tbody tr:hover {
  background-color: rgba(230, 126, 34, 0.05) !important;
}

.table thead th {
  background-color: var(--primary-color) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  border: none !important;
  padding: 1rem !important;
}

.table tbody td {
  padding: 1rem !important;
  vertical-align: middle;
}

/* Project Reveal */
.project-reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: var(--transition-smooth);
}

.project-reveal.show {
  opacity: 1;
  transform: translateY(0);
}

/* Specs Panel */
.specs-panel {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-slate) 100%);
  color: #ffffff !important;
  padding: 2rem;
  border-radius: 8px;
  position: sticky;
  top: 100px;
}

.specs-panel h3,
.specs-panel h4,
.specs-panel h5,
.specs-panel p,
.specs-panel li {
  color: #ffffff !important;
}

/* Projects Hero */
.projects-hero {
  background: linear-gradient(135deg, rgba(44, 62, 80, 0.9) 0%, rgba(26, 37, 47, 0.9) 100%),
              url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%232C3E50" width="1200" height="600"/></svg>');
  background-size: cover;
  background-position: center;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff !important;
}

/* Opacity Utilities */
.opacity-75 {
  opacity: 0.75 !important;
}

.opacity-25 {
  opacity: 0.25 !important;
}

/* Border Utilities */
.border-end {
  border-right: 1px solid #dee2e6 !important;
}

/* Rounded */
.rounded {
  border-radius: 8px !important;
}

/* Image Utilities */
.img-fluid {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Footer */
footer {
  background: linear-gradient(135deg, var(--dark-slate) 0%, var(--primary-color) 100%);
  color: #ffffff !important;
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}

footer h3,
footer h4,
footer h5,
footer h6,
footer p,
footer a,
footer li {
  color: rgba(255, 255, 255, 0.85) !important;
}

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

footer .list-unstyled li {
  padding: 0.25rem 0;
}

/* Privacy Content */
.privacy-content {
  background: #ffffff;
  padding: 3rem;
  border-radius: 8px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
}

.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;
  line-height: 1.8;
}

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

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

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

/* Responsive Design */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: var(--dark-slate);
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 8px;
  }
  
  .nav-link {
    padding: 0.75rem 1rem !important;
  }
  
  .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;
  }
  
  .py-5 {
    padding: 3rem 0 !important;
  }
  
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .specs-panel {
    position: static;
    margin-bottom: 2rem;
  }
  
  .border-end {
    border-right: none !important;
    border-bottom: 1px solid #dee2e6 !important;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
  }
}

@media (max-width: 767.98px) {
  .display-2 {
    font-size: 2rem !important;
  }
  
  .display-3 {
    font-size: 1.8rem !important;
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem !important;
    font-size: 1rem !important;
  }
  
  .card-body {
    padding: 1.5rem;
  }
  
  .py-5 {
    padding: 2rem 0 !important;
  }
  
  .px-4 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .privacy-content {
    padding: 1.5rem;
  }
}

@media (max-width: 575.98px) {
  .display-2 {
    font-size: 1.75rem !important;
  }
  
  .fs-4 {
    font-size: 1rem !important;
  }
  
  .btn {
    padding: 0.5rem 1.5rem !important;
    font-size: 0.9rem !important;
  }
  
  .portfolio-grid {
    gap: 1rem;
  }
}

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

/* Accessibility */
.btn:focus,
.form-control:focus,
.form-select:focus,
.nav-link:focus {
  outline: 2px solid var(--secondary-color);
  outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .btn,
  .card,
  .form-control {
    border: 2px solid currentColor !important;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !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(--copper-dark);
}

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

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