/* Architecture Studio CSS - Deep Navy & Burnt Orange Theme */

/* ===== ROOT VARIABLES ===== */
:root {
  --primary-color: #2C3E50;
  --secondary-color: #E67E22;
  --dark-navy: #1a252f;
  --light-navy: #34495e;
  --burnt-orange: #E67E22;
  --light-orange: #f39c12;
  --white: #ffffff;
  --light-gray: #f8f9fa;
  --medium-gray: #e9ecef;
  --text-dark: #2C3E50;
  --text-light: #ffffff;
  --transition: all 0.3s ease;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* ===== 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) !important;
  background-color: var(--white) !important;
  line-height: 1.6;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--primary-color) !important;
  margin-bottom: 1rem;
}

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

p {
  color: var(--text-dark) !important;
  line-height: 1.8;
}

.lead {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text-dark) !important;
}

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

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

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

/* ===== BUTTONS ===== */
.btn {
  border-radius: 0 !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition) !important;
  border: 2px solid transparent !important;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transition: var(--transition);
  z-index: -1;
}

.btn:hover::before {
  left: 0;
}

.btn-primary,
.btn.btn-lg {
  background-color: var(--secondary-color) !important;
  border-color: var(--secondary-color) !important;
  color: var(--white) !important;
}

.btn-primary:hover,
.btn.btn-lg:hover {
  background-color: var(--light-orange) !important;
  border-color: var(--light-orange) !important;
  color: var(--white) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg) !important;
}

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

.btn-outline-light:hover {
  background-color: var(--white) !important;
  color: var(--primary-color) !important;
  border-color: var(--white) !important;
}

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

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

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

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

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

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

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

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

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

.navbar-dark .navbar-nav .nav-link {
  color: var(--white) !important;
  font-weight: 500 !important;
  padding: 0.5rem 1rem !important;
  margin: 0 0.25rem;
  transition: var(--transition) !important;
  position: relative;
}

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

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

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

.navbar-toggler {
  border-color: var(--white) !important;
  padding: 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(230, 126, 34, 0.5) !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;
}

/* ===== CAROUSEL ===== */
.carousel {
  height: 100vh;
  min-height: 600px;
  margin-top: 76px;
}

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

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6);
}

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

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

.carousel-indicators button {
  width: 12px !important;
  height: 12px !important;
  border-radius: 50% !important;
  margin: 0 5px !important;
  background-color: var(--white) !important;
  opacity: 0.5 !important;
  border: 2px solid var(--white) !important;
}

.carousel-indicators button.active {
  background-color: var(--secondary-color) !important;
  opacity: 1 !important;
  border-color: var(--secondary-color) !important;
}

.carousel .position-absolute {
  z-index: 10;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
  animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate(-50%, -40%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

/* ===== SECTIONS ===== */
section {
  position: relative;
  overflow: hidden;
}

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

.container {
  max-width: 1200px;
}

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

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

.card-body {
  padding: 2rem !important;
}

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

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

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

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

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

/* ===== TEAM CARDS ===== */
.team-card {
  position: relative;
  overflow: hidden;
  border-radius: 0 !important;
  height: 400px;
  cursor: pointer;
}

.team-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.team-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(44, 62, 80, 0.95), transparent);
  color: var(--white) !important;
  padding: 2rem;
  transform: translateY(60%);
  transition: var(--transition);
}

.team-card:hover .team-overlay {
  transform: translateY(0);
}

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

.team-overlay h3,
.team-overlay p {
  color: var(--white) !important;
}

.team-bio {
  opacity: 0;
  transition: var(--transition);
  transition-delay: 0.1s;
}

.team-card:hover .team-bio {
  opacity: 1;
}

/* ===== PORTFOLIO ===== */
.portfolio-item {
  margin-bottom: 2rem;
}

.portfolio-card {
  position: relative;
  overflow: hidden;
  height: 300px;
  cursor: pointer;
}

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

.portfolio-card:hover img {
  transform: scale(1.1);
  filter: brightness(0.7);
}

.card-img-top {
  border-radius: 0 !important;
}

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

/* ===== ICONS ===== */
.bi {
  font-size: 3rem;
  color: var(--secondary-color) !important;
  margin-bottom: 1rem;
}

.bi-arrow-right,
.bi-send,
.bi-download,
.bi-check-circle-fill {
  font-size: inherit !important;
}

/* ===== FORMS ===== */
.form-control,
.form-select {
  border-radius: 0 !important;
  border: 2px solid var(--medium-gray) !important;
  padding: 0.75rem 1rem !important;
  color: var(--text-dark) !important;
  background-color: var(--white) !important;
  transition: var(--transition) !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;
  background-color: var(--white) !important;
  color: var(--text-dark) !important;
}

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

.form-check-input {
  border-radius: 0 !important;
  border: 2px solid var(--medium-gray) !important;
}

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

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

.invalid-feedback {
  color: #dc3545 !important;
  font-weight: 500 !important;
}

.form-control.is-invalid,
.form-select.is-invalid {
  border-color: #dc3545 !important;
}

/* ===== MODAL ===== */
.modal-content {
  border-radius: 0 !important;
  border: none !important;
}

.modal-header {
  background-color: var(--primary-color) !important;
  color: var(--white) !important;
  border-bottom: none !important;
}

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

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

.modal-body {
  padding: 2rem !important;
}

/* ===== ACCORDION ===== */
.accordion-item {
  border: 1px solid var(--medium-gray) !important;
  border-radius: 0 !important;
  margin-bottom: 1rem !important;
}

.accordion-button {
  background-color: var(--light-gray) !important;
  color: var(--primary-color) !important;
  font-weight: 600 !important;
  border-radius: 0 !important;
  padding: 1.25rem !important;
}

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

.accordion-button:focus {
  box-shadow: none !important;
  border-color: var(--secondary-color) !important;
}

.accordion-button::after {
  filter: brightness(0) saturate(100%) invert(23%) sepia(14%) saturate(1028%) hue-rotate(169deg) brightness(95%) contrast(89%);
}

.accordion-button:not(.collapsed)::after {
  filter: brightness(0) invert(1);
}

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

.accordion-flush .accordion-item {
  border-left: none !important;
  border-right: none !important;
}

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

.timeline-container::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background-color: var(--secondary-color);
}

.timeline-container .col-12 {
  position: relative;
  padding-left: 3rem !important;
}

.timeline-container .col-12::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 0;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background-color: var(--secondary-color);
  border: 3px solid var(--white);
  box-shadow: var(--shadow);
}

/* ===== ALERT ===== */
.alert {
  border-radius: 0 !important;
  border: none !important;
  padding: 1.25rem !important;
}

/* ===== IMAGES ===== */
.img-fluid {
  max-width: 100%;
  height: auto;
  transition: var(--transition);
}

.img-fluid:hover {
  transform: scale(1.02);
}

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

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

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

/* ===== UTILITIES ===== */
.position-sticky,
.sticky-top {
  position: sticky !important;
  top: 76px !important;
  z-index: 100;
}

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

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

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

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

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

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

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

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

.list-unstyled a {
  color: var(--text-dark) !important;
  text-decoration: none !important;
  transition: var(--transition) !important;
}

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

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

footer h3,
footer h4,
footer h5 {
  color: var(--white) !important;
}

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

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

footer .bi {
  color: var(--white) !important;
  font-size: 1.5rem !important;
  transition: var(--transition) !important;
}

footer .bi:hover {
  color: var(--secondary-color) !important;
  transform: scale(1.2);
}

/* ===== SPACING ===== */
.gap-3 {
  gap: 1rem !important;
}

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

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

/* ===== GRID ===== */
.g-3 {
  --bs-gutter-x: 1rem !important;
  --bs-gutter-y: 1rem !important;
}

.g-4 {
  --bs-gutter-x: 1.5rem !important;
  --bs-gutter-y: 1.5rem !important;
}

.g-5 {
  --bs-gutter-x: 3rem !important;
  --bs-gutter-y: 3rem !important;
}

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

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

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 991.98px) {
  .navbar-nav {
    padding: 1rem 0;
    background-color: rgba(44, 62, 80, 0.98);
    margin-top: 1rem;
    border-radius: 0;
  }
  
  .navbar-nav .gap-3 {
    gap: 0 !important;
  }
  
  .carousel {
    height: 70vh;
    min-height: 500px;
    margin-top: 66px;
  }
  
  .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;
  }
  
  .py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
  
  .team-card {
    height: 350px;
  }
  
  .portfolio-card {
    height: 250px;
  }
  
  .sticky-top {
    position: relative !important;
    top: 0 !important;
  }
}

@media (max-width: 767.98px) {
  .carousel {
    height: 60vh;
    min-height: 400px;
  }
  
  .display-2 {
    font-size: 2rem !important;
  }
  
  .display-3 {
    font-size: 1.75rem !important;
  }
  
  .lead {
    font-size: 1.1rem !important;
  }
  
  .btn-lg {
    padding: 0.75rem 2rem !important;
  }
  
  .card-body {
    padding: 1.5rem !important;
  }
  
  .team-card {
    height: 300px;
  }
  
  .bi {
    font-size: 2.5rem !important;
  }
}

@media (max-width: 575.98px) {
  .carousel {
    height: 50vh;
    min-height: 350px;
  }
  
  .display-2 {
    font-size: 1.75rem !important;
  }
  
  .display-3 {
    font-size: 1.5rem !important;
  }
  
  .px-5 {
    padding-left: 2rem !important;
    padding-right: 2rem !important;
  }
  
  .py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
  
  .team-card {
    height: 280px;
  }
  
  .portfolio-card {
    height: 200px;
  }
  
  .modal-body {
    padding: 1rem !important;
  }
}

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

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

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

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

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--light-gray);
}

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

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

/* ===== SELECTION ===== */
::selection {
  background-color: var(--secondary-color);
  color: var(--white);
}

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

/* ===== LOADING ANIMATION ===== */
.loading {
  position: relative;
  pointer-events: none;
  opacity: 0.6;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid var(--secondary-color);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  .navbar,
  .btn,
  footer,
  .modal,
  .carousel-indicators {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
}