/* Architectural Studio Theme - Slate & Copper */

/* ===== ROOT VARIABLES ===== */
:root {
  --primary-color: #2C3E50;
  --secondary-color: #E67E22;
  --dark-slate: #1a252f;
  --light-slate: #3d5a6c;
  --copper-light: #f39c12;
  --copper-dark: #d35400;
  --white: #ffffff;
  --light-gray: #ecf0f1;
  --text-dark: #2c3e50;
  --text-light: #7f8c8d;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 2px 4px rgba(44, 62, 80, 0.1);
  --shadow-md: 0 4px 6px rgba(44, 62, 80, 0.15);
  --shadow-lg: 0 10px 25px rgba(44, 62, 80, 0.2);
  --shadow-xl: 0 20px 40px rgba(44, 62, 80, 0.25);
}

/* ===== GLOBAL STYLES ===== */
* {
  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;
  background-color: #f8f9fa;
}

html {
  scroll-behavior: smooth;
}

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

.fs-4, .fs-5 {
  color: var(--text-dark);
}

.lead {
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--text-light);
}

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

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

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

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

/* ===== HERO SECTION ===== */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, var(--dark-slate) 0%, var(--primary-color) 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect width="100" height="100" fill="none"/><path d="M0 0L50 50L0 100" stroke="rgba(255,255,255,0.03)" stroke-width="0.5"/><path d="M100 0L50 50L100 100" stroke="rgba(255,255,255,0.03)" stroke-width="0.5"/></svg>');
  opacity: 0.3;
  z-index: 1;
}

.hero-section .position-absolute {
  z-index: 0;
}

.hero-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(44, 62, 80, 0.7) 0%, rgba(26, 37, 47, 0.85) 100%);
  z-index: 1;
}

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

.object-fit-cover {
  object-fit: cover;
  filter: brightness(0.6);
}

/* ===== NAVBAR ===== */
.navbar {
  transition: var(--transition-smooth);
  z-index: 1000;
}

.navbar-dark {
  background: transparent !important;
}

.navbar.scrolled {
  background: rgba(44, 62, 80, 0.95) !important;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
}

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

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

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

.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-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--secondary-color) !important;
}

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

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

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(230, 126, 34, 0.5) !important;
}

.sticky-top,
.sticky-lg-top {
  top: 0;
  z-index: 1020;
}

/* ===== BUTTONS ===== */
.btn {
  font-weight: 600 !important;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: 4px;
  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-lg {
  padding: 1rem 2.5rem !important;
  font-size: 1rem !important;
}

.btn-sm {
  padding: 0.5rem 1.25rem !important;
  font-size: 0.875rem !important;
}

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

.btn-primary:hover {
  background: var(--copper-dark) !important;
  color: var(--white) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(230, 126, 34, 0.4);
}

.btn-secondary {
  background: var(--primary-color) !important;
  color: var(--white) !important;
  box-shadow: 0 4px 15px rgba(44, 62, 80, 0.3);
}

.btn-secondary:hover {
  background: var(--dark-slate) !important;
  color: var(--white) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(44, 62, 80, 0.4);
}

.btn-light {
  background: var(--white) !important;
  color: var(--primary-color) !important;
  box-shadow: var(--shadow-md);
}

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

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

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

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

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

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

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

.card-body {
  padding: 2rem;
}

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

.card h4,
.card .h4 {
  color: var(--primary-color) !important;
  font-weight: 600;
}

.card h5,
.card .h5 {
  color: var(--secondary-color) !important;
  font-weight: 600;
}

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

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

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

/* ===== PROJECT CARDS ===== */
.project-item,
.project-card,
.project-hover-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  background: var(--primary-color);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(44, 62, 80, 0.95) 100%);
  opacity: 0;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  z-index: 2;
}

.project-hover-card:hover .project-overlay,
.project-card:hover .project-overlay,
.project-item:hover .project-overlay {
  opacity: 1;
}

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

.project-hover-card:hover img,
.project-card:hover img,
.project-item:hover img {
  transform: scale(1.1);
}

.project-overlay h3,
.project-overlay .display-6 {
  color: var(--white) !important;
  margin-bottom: 0.5rem;
}

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

/* ===== TEAM CARDS ===== */
.team-card {
  text-align: center;
  transition: var(--transition-smooth);
}

.team-card .card-img-top {
  border-radius: 8px 8px 0 0;
  filter: grayscale(30%);
  transition: var(--transition-smooth);
}

.team-card:hover .card-img-top {
  filter: grayscale(0%);
  transform: scale(1.05);
}

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

.team-card .text-muted {
  color: var(--secondary-color) !important;
  font-weight: 500;
}

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

.badge.rounded-pill {
  border-radius: 50px !important;
}

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

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

/* ===== FORMS ===== */
.contact-form,
.form-control,
.form-select {
  border-radius: 4px;
}

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

.form-control,
.form-select {
  border: 2px solid #dee2e6;
  padding: 0.75rem 1rem;
  transition: var(--transition-smooth);
  font-size: 1rem;
  background: var(--white);
  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.25) !important;
  outline: none;
}

.form-control::placeholder {
  color: var(--text-light);
}

.form-check-input {
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid #dee2e6;
  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.25) !important;
}

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

/* ===== ICONS (Bootstrap Icons) ===== */
.bi {
  display: inline-block;
  vertical-align: middle;
  font-size: 1.5rem;
}

.bi-telephone-fill,
.bi-envelope-fill,
.bi-geo-alt-fill,
.bi-people-fill,
.bi-globe,
.bi-arrow-repeat,
.bi-shield-check,
.bi-chat-dots,
.bi-gear,
.bi-graph-up,
.bi-file-text,
.bi-eye,
.bi-pencil,
.bi-trash,
.bi-x-circle,
.bi-envelope,
.bi-telephone,
.bi-geo-alt,
.bi-linkedin,
.bi-instagram,
.bi-facebook,
.bi-check-circle-fill,
.bi-lightning-charge-fill,
.bi-droplet-fill,
.bi-recycle,
.bi-bar-chart-fill,
.bi-x-circle-fill,
.bi-lightbulb-fill,
.bi-sun-fill,
.bi-snow,
.bi-wind {
  color: var(--secondary-color);
}

.text-white .bi,
.bg-dark .bi {
  color: var(--white) !important;
}

.fs-3 .bi {
  font-size: 2rem;
}

/* ===== TIMELINE ===== */
.timeline-line {
  position: relative;
}

.timeline-line::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--secondary-color);
  transform: translateX(-50%);
}

.timeline-line .row {
  position: relative;
}

.timeline-line .row::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 2rem;
  width: 20px;
  height: 20px;
  background: var(--secondary-color);
  border: 4px solid var(--white);
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: 2;
  box-shadow: var(--shadow-md);
}

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

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

.py-lg-0 {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

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

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

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

/* ===== FOOTER ===== */
footer {
  background: var(--primary-color);
  color: var(--white);
  padding: 3rem 0 1rem;
}

footer h5,
footer .h5 {
  color: var(--secondary-color) !important;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

footer a {
  text-decoration: none !important;
  transition: var(--transition-smooth);
}

footer a:hover {
  color: var(--secondary-color) !important;
  transform: translateX(5px);
}

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

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

/* ===== MODALS ===== */
.modal-content {
  border-radius: 8px;
  border: none;
  overflow: hidden;
}

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

.modal-title {
  color: var(--white) !important;
  font-weight: 700;
}

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

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

.modal-body {
  padding: 2rem;
}

.modal-xl {
  max-width: 1140px;
}

/* ===== ALERTS ===== */
.alert {
  border-radius: 8px;
  border: none;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.alert-success {
  background: rgba(39, 174, 96, 0.1);
  color: #27ae60;
  border-left: 4px solid #27ae60;
}

.alert-danger {
  background: rgba(231, 76, 60, 0.1);
  color: #e74c3c;
  border-left: 4px solid #e74c3c;
}

.alert-warning {
  background: rgba(230, 126, 34, 0.1);
  color: var(--secondary-color);
  border-left: 4px solid var(--secondary-color);
}

.alert-info {
  background: rgba(52, 152, 219, 0.1);
  color: #3498db;
  border-left: 4px solid #3498db;
}

/* ===== SPINNER ===== */
.spinner-border {
  border-color: var(--secondary-color);
  border-right-color: transparent;
}

.spinner-border-sm {
  width: 1rem;
  height: 1rem;
  border-width: 0.15rem;
}

/* ===== MAP CONTAINER ===== */
.map-container {
  height: 400px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.ratio {
  position: relative;
  width: 100%;
}

.ratio::before {
  display: block;
  padding-top: var(--bs-aspect-ratio);
  content: "";
}

.ratio > * {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.ratio-16x9 {
  --bs-aspect-ratio: 56.25%;
}

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

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

.img-fluid {
  max-width: 100%;
  height: auto;
}

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

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

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

.flex-row-reverse {
  flex-direction: row-reverse !important;
}

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

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

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

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

.justify-content-between {
  justify-content: space-between !important;
}

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

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

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

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

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

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

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

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

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

.ms-3 {
  margin-left: 1rem !important;
}

.me-2 {
  margin-left: 0.5rem !important;
}

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

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

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

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

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@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 scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

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

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

.scale-in {
  animation: scaleIn 0.6s ease-out forwards;
}

/* ===== SCROLL ANIMATIONS ===== */
.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(44, 62, 80, 0.98);
    padding: 1.5rem;
    margin-top: 1rem;
    border-radius: 8px;
  }
  
  .navbar-nav {
    gap: 0.5rem !important;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem !important;
  }
  
  .display-2 {
    font-size: 2.5rem !important;
  }
  
  .display-3 {
    font-size: 2rem !important;
  }
  
  .display-4 {
    font-size: 1.75rem !important;
  }
  
  .display-5 {
    font-size: 1.5rem !important;
  }
  
  section {
    padding: 3rem 0;
  }
  
  .py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
  
  .px-5 {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }
  
  .timeline-line::before {
    left: 1rem;
  }
  
  .timeline-line .row::after {
    left: 1rem;
  }
}

@media (max-width: 767.98px) {
  .display-2 {
    font-size: 2rem !important;
  }
  
  .hero-section {
    min-height: 100vh;
    padding: 6rem 1rem 3rem;
  }
  
  .btn-lg {
    padding: 0.875rem 1.75rem !important;
    font-size: 0.95rem !important;
  }
  
  .card-body {
    padding: 1.5rem;
  }
  
  .modal-body {
    padding: 1.5rem;
  }
}

@media (max-width: 575.98px) {
  .display-2 {
    font-size: 1.75rem !important;
  }
  
  .display-3 {
    font-size: 1.5rem !important;
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem !important;
    font-size: 0.9rem !important;
  }
  
  .gap-4 {
    gap: 0.75rem !important;
  }
  
  .px-5 {
    padding-left: 1rem !important;
    padding-right: 1rem !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);
}

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

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

/* ===== ACCESSIBILITY ===== */
:focus-visible {
  outline: 2px solid var(--secondary-color);
  outline-offset: 2px;
}

a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: none;
}

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