/* Architectural Studio - Midnight Steel & Copper Theme CSS */

/* ===== ROOT VARIABLES ===== */
:root {
  --primary-color: #2C3E50;
  --secondary-color: #E67E22;
  --dark-steel: #1a252f;
  --light-steel: #34495E;
  --copper-light: #F39C12;
  --copper-dark: #D35400;
  --white: #FFFFFF;
  --light-gray: #ECF0F1;
  --dark-gray: #95A5A6;
  --transition-base: all 0.3s ease;
  --transition-slow: all 0.6s ease;
  --shadow-sm: 0 2px 10px rgba(44, 62, 80, 0.1);
  --shadow-md: 0 5px 25px rgba(44, 62, 80, 0.15);
  --shadow-lg: 0 10px 40px rgba(44, 62, 80, 0.2);
}

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

body {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--primary-color) !important;
  background-color: var(--light-gray) !important;
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6, .display-1, .display-2, .display-3, .display-4, .display-5 {
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--primary-color) !important;
}

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

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

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

a {
  text-decoration: none;
  transition: var(--transition-base);
}

/* ===== NAVIGATION ===== */
.navbar {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-steel) 100%) !important;
  box-shadow: var(--shadow-md);
  padding: 1rem 0;
  transition: var(--transition-base);
  z-index: 1030;
}

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

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

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

.navbar-dark .navbar-toggler {
  border-color: var(--secondary-color) !important;
  background-color: rgba(230, 126, 34, 0.1) !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;
}

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

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--secondary-color);
  transition: var(--transition-base);
  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%;
}

/* ===== HERO SECTION ===== */
.hero-section {
  background: linear-gradient(135deg, var(--dark-steel) 0%, var(--primary-color) 100%);
  position: relative;
  min-height: 100vh;
}

.hero-background {
  filter: brightness(0.4);
  object-fit: cover;
  z-index: 0;
}

.blueprint-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.15;
  overflow: hidden;
  pointer-events: none;
}

.blueprint-line {
  position: absolute;
  background: var(--secondary-color);
  animation: blueprintFloat 8s infinite ease-in-out;
}

.blueprint-line:nth-child(1) { width: 2px; height: 200px; top: 10%; left: 20%; animation-delay: 0s; }
.blueprint-line:nth-child(2) { width: 150px; height: 2px; top: 30%; right: 15%; animation-delay: 1s; }
.blueprint-line:nth-child(3) { width: 2px; height: 300px; bottom: 15%; left: 70%; animation-delay: 2s; }
.blueprint-line:nth-child(4) { width: 250px; height: 2px; bottom: 25%; left: 10%; animation-delay: 3s; }

.blueprint-circle {
  position: absolute;
  border: 2px solid var(--secondary-color);
  border-radius: 50%;
  animation: blueprintRotate 12s infinite linear;
}

.blueprint-circle:nth-child(5) { width: 100px; height: 100px; top: 20%; right: 25%; }
.blueprint-circle:nth-child(6) { width: 80px; height: 80px; bottom: 30%; left: 15%; animation-delay: 2s; }

.blueprint-rect {
  position: absolute;
  border: 2px solid var(--secondary-color);
  animation: blueprintPulse 6s infinite ease-in-out;
}

.blueprint-rect:nth-child(7) { width: 120px; height: 90px; top: 50%; left: 5%; }
.blueprint-rect:nth-child(8) { width: 150px; height: 100px; bottom: 10%; right: 10%; animation-delay: 1.5s; }

@keyframes blueprintFloat {
  0%, 100% { transform: translateY(0) translateX(0); }
  25% { transform: translateY(-20px) translateX(10px); }
  75% { transform: translateY(20px) translateX(-10px); }
}

@keyframes blueprintRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes blueprintPulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.1); }
}

.hero-content {
  position: relative;
  z-index: 2;
  animation: fadeInUp 1s ease-out;
}

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

.hero-section .display-1 {
  color: var(--white) !important;
  font-size: clamp(2.5rem, 7vw, 5rem);
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-section .lead {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: clamp(1rem, 2vw, 1.3rem);
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1s ease-out 0.4s both;
}

/* ===== BUTTONS ===== */
.btn {
  font-weight: 600;
  border-radius: 4px;
  transition: var(--transition-base);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-width: 2px !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;
}

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

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

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

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

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

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

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

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

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

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

.latest-project-badge {
  background: linear-gradient(135deg, var(--secondary-color), var(--copper-light)) !important;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
  transition: var(--transition-base);
  animation: fadeInUp 1s ease-out 0.6s both;
}

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

.latest-project-badge .small {
  color: rgba(255, 255, 255, 0.95) !important;
  font-weight: 500;
}

.latest-project-badge .h5 {
  color: var(--white) !important;
  font-weight: 700;
}

.rounded-pill {
  background-color: var(--secondary-color) !important;
  color: var(--white) !important;
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem !important;
}

/* ===== SCROLL INDICATOR ===== */
.bi-chevron-down {
  font-size: 2rem;
  color: var(--white) !important;
  animation: bounceDown 2s infinite;
  position: relative;
  z-index: 2;
}

@keyframes bounceDown {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

/* ===== SECTIONS ===== */
.py-5 {
  padding-top: 5rem !important;
  padding-bottom: 5rem !important;
}

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

section {
  position: relative;
  overflow: hidden;
}

/* ===== SERVICE CARDS ===== */
.service-card {
  background: var(--white);
  border-radius: 12px;
  padding: 2.5rem;
  height: 100%;
  transition: var(--transition-base);
  border: 2px solid transparent;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary-color), var(--copper-light));
  transform: scaleX(0);
  transition: var(--transition-base);
}

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

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card .bi {
  font-size: 3rem;
  color: var(--secondary-color) !important;
  transition: var(--transition-base);
}

.service-card:hover .bi {
  transform: scale(1.1) rotate(5deg);
}

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

.service-card p {
  color: var(--dark-gray) !important;
  line-height: 1.7;
}

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

.rounded-circle {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--secondary-color), var(--copper-light)) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rounded-circle .bi {
  font-size: 2rem;
  color: var(--white) !important;
}

/* ===== STAT NUMBERS ===== */
.display-4,
.display-3 {
  color: var(--secondary-color) !important;
  font-weight: 800;
}

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

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

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

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

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

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

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

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

.card-body {
  padding: 1.5rem;
}

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

.card-text {
  color: var(--dark-gray) !important;
  line-height: 1.6;
}

/* ===== PORTFOLIO ===== */
.portfolio-masonry {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
  cursor: pointer;
}

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

.portfolio-card {
  position: relative;
  overflow: hidden;
  height: 100%;
}

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

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

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

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

.portfolio-overlay h4,
.portfolio-overlay .h4 {
  color: var(--white) !important;
  margin-bottom: 0.5rem;
}

.portfolio-overlay p {
  color: rgba(255, 255, 255, 0.9) !important;
  margin-bottom: 1rem;
}

/* ===== FILTER BUTTONS ===== */
.btn-group .filter-btn {
  background-color: var(--white) !important;
  color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  padding: 0.75rem 1.5rem;
  margin: 0.25rem;
  border-radius: 4px !important;
}

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

/* ===== FORMS ===== */
.form-label {
  color: var(--primary-color) !important;
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
}

.form-control,
.form-select {
  border: 2px solid var(--light-gray) !important;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  transition: var(--transition-base);
  background-color: var(--white) !important;
  color: var(--primary-color) !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;
  background-color: var(--white) !important;
  color: var(--primary-color) !important;
}

.form-control::placeholder {
  color: var(--dark-gray) !important;
  opacity: 0.7;
}

.form-check-input {
  border-color: var(--primary-color) !important;
  cursor: pointer;
}

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

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

.invalid-feedback {
  color: #dc3545 !important;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: none;
}

.was-validated .form-control:invalid ~ .invalid-feedback,
.was-validated .form-select:invalid ~ .invalid-feedback {
  display: block;
}

/* ===== RATIO / IMAGE CONTAINERS ===== */
.ratio {
  position: relative;
  width: 100%;
}

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

.ratio-4x3 {
  --bs-aspect-ratio: 75%;
}

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

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

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

/* ===== PROGRESS BARS ===== */
.progress {
  height: 12px;
  border-radius: 10px;
  background-color: var(--light-gray) !important;
  overflow: hidden;
}

.progress-bar {
  background: linear-gradient(90deg, var(--secondary-color), var(--copper-light)) !important;
  border-radius: 10px;
  transition: width 1.5s ease;
}

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

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

.list-unstyled a {
  color: var(--dark-gray) !important;
  transition: var(--transition-base);
}

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

/* ===== FOOTER ===== */
footer {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-steel) 100%);
  color: var(--white) !important;
  margin-top: 5rem;
}

footer h5,
footer .h5 {
  color: var(--white) !important;
  font-weight: 700;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
}

footer h5::after,
footer .h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--secondary-color);
}

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

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

footer .bi {
  color: var(--secondary-color) !important;
  margin-right: 0.5rem;
}

/* ===== SOCIAL ICONS ===== */
.bi-linkedin,
.bi-instagram,
.bi-facebook {
  font-size: 1.5rem;
  color: var(--white) !important;
  transition: var(--transition-base);
}

.bi-linkedin:hover,
.bi-instagram:hover,
.bi-facebook:hover {
  color: var(--secondary-color) !important;
  transform: translateY(-3px);
}

/* ===== UTILITY CLASSES ===== */
.bg-white {
  background-color: var(--white) !important;
}

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

.text-info {
  color: #3498db !important;
}

.text-success {
  color: #27ae60 !important;
}

.text-danger {
  color: #e74c3c !important;
}

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

.opacity-15 {
  opacity: 0.15 !important;
}

.z-1 {
  z-index: 1 !important;
}

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

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

.sticky-lg-top {
  position: sticky !important;
  top: 100px;
  z-index: 1000;
}

.min-vh-100 {
  min-height: 100vh !important;
}

.vh-100 {
  height: 100vh !important;
}

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

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

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

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

/* ===== 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;
  }
  
  .hero-section .display-1 {
    font-size: 3rem;
  }
  
  .service-card {
    margin-bottom: 2rem;
  }
  
  .portfolio-masonry {
    grid-template-columns: 1fr;
  }
  
  .btn-lg {
    padding: 0.875rem 2rem !important;
    font-size: 1rem;
  }
  
  .py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
  
  .sticky-lg-top {
    position: relative !important;
    top: auto;
  }
}

@media (max-width: 767.98px) {
  .hero-section .display-1 {
    font-size: 2.5rem;
  }
  
  .hero-section .lead {
    font-size: 1.1rem;
  }
  
  .display-3 {
    font-size: 2.5rem;
  }
  
  .display-4 {
    font-size: 2rem;
  }
  
  .display-5 {
    font-size: 1.75rem;
  }
  
  .btn-group {
    display: flex;
    flex-direction: column;
    width: 100%;
  }
  
  .btn-group .filter-btn {
    width: 100%;
    margin: 0.25rem 0;
  }
  
  .service-card {
    padding: 1.5rem;
  }
  
  .rounded-circle {
    width: 60px;
    height: 60px;
  }
  
  .rounded-circle .bi {
    font-size: 1.5rem;
  }
}

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

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