/* Midnight Gold Architecture Studio - Custom Styles */

/* ============================================
   ROOT VARIABLES & RESETS
   ============================================ */
:root {
  --primary-color: #2C3E50;
  --secondary-color: #E8B049;
  --dark-bg: #1a252f;
  --light-bg: #f8f9fa;
  --text-dark: #2C3E50;
  --text-light: #ffffff;
  --gold-light: #f4d183;
  --gold-dark: #d49a2e;
  --transition-speed: 0.4s;
  --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);
}

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

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

html {
  scroll-behavior: smooth;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
  background-color: var(--primary-color) !important;
  padding: 1rem 0;
  transition: all var(--transition-speed) ease;
  box-shadow: var(--shadow-md);
}

.navbar.scrolled {
  padding: 0.5rem 0;
  background-color: rgba(44, 62, 80, 0.98) !important;
}

.navbar-brand {
  color: var(--secondary-color) !important;
  font-size: 1.8rem;
  letter-spacing: 1px;
  transition: all var(--transition-speed) ease;
}

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

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

.navbar-dark .navbar-nav .nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--secondary-color);
  transition: all var(--transition-speed) ease;
  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::before,
.navbar-dark .navbar-nav .nav-link.active::before {
  width: 80%;
}

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

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(232, 176, 73, 0.3) !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='%23E8B049' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* ============================================
   HERO SECTION
   ============================================ */
.carousel {
  background-color: var(--dark-bg);
}

.carousel-item {
  height: 100vh;
  min-height: 600px;
  background-color: var(--dark-bg);
  position: relative;
}

.carousel-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(44, 62, 80, 0.8) 0%, rgba(44, 62, 80, 0.6) 100%);
  z-index: 1;
}

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

.carousel-item .position-absolute {
  z-index: 2;
}

.display-1 {
  font-weight: 700;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
  color: var(--text-light) !important;
  animation: fadeInUp 1s ease;
}

.display-6 {
  color: var(--secondary-color) !important;
  font-weight: 600;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1.2s ease;
}

.lead {
  color: rgba(255, 255, 255, 0.95) !important;
  font-size: 1.2rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1.4s ease;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all var(--transition-speed) ease;
  border-width: 2px !important;
}

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

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

.btn-primary:hover {
  background-color: var(--gold-dark) !important;
  border-color: var(--gold-dark) !important;
  color: var(--text-light) !important;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(232, 176, 73, 0.4) !important;
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.9) !important;
  color: rgba(255, 255, 255, 0.9) !important;
  background-color: transparent !important;
}

.btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.95) !important;
  border-color: rgba(255, 255, 255, 0.95) !important;
  color: var(--primary-color) !important;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3) !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;
  border-color: var(--primary-color) !important;
  color: var(--text-light) !important;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(44, 62, 80, 0.3) !important;
}

/* ============================================
   SECTIONS
   ============================================ */
.intro-section,
.py-5 {
  background-color: var(--light-bg);
}

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

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

section {
  padding: 5rem 0;
  position: relative;
}

.display-3,
.display-4,
.display-5 {
  color: var(--primary-color) !important;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

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

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

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

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(44, 62, 80, 0.2) !important;
}

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

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

.card-body {
  padding: 1.5rem;
  background-color: #ffffff !important;
}

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

.card-text {
  color: #6c757d !important;
  line-height: 1.7;
}

/* ============================================
   PROJECT CARDS & PORTFOLIO
   ============================================ */
.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  height: 400px;
  background-color: var(--dark-bg);
}

.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.6s ease;
}

.project-card:hover .project-image {
  transform: scale(1.15);
  opacity: 0.3;
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(44, 62, 80, 0.95) 0%, rgba(232, 176, 73, 0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  opacity: 0;
  transition: all 0.6s ease;
}

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

.project-title {
  color: var(--text-light) !important;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  transform: translateY(20px);
  transition: all 0.6s ease 0.1s;
}

.project-card:hover .project-title {
  transform: translateY(0);
}

.project-type {
  color: var(--secondary-color) !important;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
  transform: translateY(20px);
  transition: all 0.6s ease 0.2s;
}

.project-card:hover .project-type {
  transform: translateY(0);
}

.project-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  transform: translateY(20px);
  transition: all 0.6s ease 0.3s;
}

.project-card:hover .project-features {
  transform: translateY(0);
}

.feature-tag {
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--text-light) !important;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ============================================
   FILTER SECTION
   ============================================ */
.filter-section {
  margin-bottom: 3rem;
}

.filter-btn {
  background-color: transparent !important;
  border: 2px solid var(--primary-color) !important;
  color: var(--primary-color) !important;
  padding: 0.6rem 1.8rem;
  margin: 0.3rem;
  border-radius: 30px;
  font-weight: 600;
  transition: all var(--transition-speed) ease;
  cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--primary-color) !important;
  color: var(--text-light) !important;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(44, 62, 80, 0.3);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

/* ============================================
   TIMELINE
   ============================================ */
.timeline-container {
  position: relative;
  padding: 2rem 0;
}

.timeline-item {
  margin-bottom: 3rem;
  position: relative;
}

.timeline-content {
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-speed) ease;
}

.timeline-content:hover {
  box-shadow: var(--shadow-lg);
  transform: translateX(10px);
}

.timeline-content h5 {
  color: var(--primary-color) !important;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.timeline-content .badge {
  background-color: var(--secondary-color) !important;
  color: var(--primary-color) !important;
  font-weight: 600;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

/* ============================================
   METRICS & STATS
   ============================================ */
.metrics {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-bg) 100%);
  padding: 4rem 0;
  color: var(--text-light) !important;
}

.stat-item {
  text-align: center;
  padding: 2rem;
  transition: all var(--transition-speed) ease;
}

.stat-item:hover {
  transform: translateY(-10px);
}

.stat-item .display-4 {
  color: var(--secondary-color) !important;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.stat-item p {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 1.1rem;
  margin-bottom: 0;
}

.stat-item .bi {
  font-size: 3rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
  display: inline-block;
}

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

.bi-sun,
.bi-recycle,
.bi-droplet,
.bi-lightning-charge,
.bi-award,
.bi-house-heart,
.bi-tree,
.bi-arrow-right,
.bi-geo-alt,
.bi-telephone,
.bi-envelope,
.bi-geo-alt-fill,
.bi-telephone-fill,
.bi-envelope-fill,
.bi-award-fill {
  color: var(--secondary-color);
  transition: all var(--transition-speed) ease;
}

.bi:hover {
  transform: scale(1.1);
}

/* ============================================
   FORMS
   ============================================ */
.contact-form {
  background-color: #ffffff;
  padding: 3rem;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}

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

.form-control,
.form-select {
  border: 2px solid #e0e0e0 !important;
  border-radius: 8px;
  padding: 0.8rem 1rem;
  transition: all var(--transition-speed) ease;
  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.2rem rgba(232, 176, 73, 0.25) !important;
  background-color: #ffffff !important;
}

.form-control::placeholder {
  color: #adb5bd !important;
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

/* ============================================
   BADGES
   ============================================ */
.badge {
  font-weight: 600;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

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

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

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

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

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

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

.shadow,
.shadow-sm,
.shadow-lg {
  transition: all var(--transition-speed) ease;
}

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

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

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

/* ============================================
   UTILITIES
   ============================================ */
.opacity-25 {
  opacity: 0.25 !important;
}

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

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

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

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

.fw-semibold {
  font-weight: 600 !important;
}

.fst-italic {
  font-style: italic !important;
}

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

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

.ratio-16x9 {
  padding-top: 56.25%;
}

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

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

footer a {
  color: rgba(255, 255, 255, 0.8) !important;
  text-decoration: none;
  transition: all var(--transition-speed) ease;
}

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

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

footer .border-secondary {
  border-color: rgba(232, 176, 73, 0.3) !important;
}

footer h5,
footer h6,
footer .h5,
footer .h6 {
  color: var(--secondary-color) !important;
  font-weight: 700;
}

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

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

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

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: rgba(44, 62, 80, 0.98);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
  }
  
  .navbar-nav {
    text-align: center;
  }
  
  .navbar-dark .navbar-nav .nav-link {
    padding: 0.8rem 1rem !important;
  }
  
  .display-1 {
    font-size: 2.5rem;
  }
  
  .display-3 {
    font-size: 2.2rem;
  }
  
  .display-4 {
    font-size: 2rem;
  }
  
  .display-5 {
    font-size: 1.8rem;
  }
  
  .carousel-item {
    min-height: 500px;
  }
  
  section {
    padding: 3rem 0;
  }
  
  .contact-form {
    padding: 2rem 1.5rem;
  }
  
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .project-card {
    height: 350px;
  }
  
  .btn-lg {
    padding: 0.8rem 2rem !important;
    font-size: 0.95rem;
  }
}

@media (max-width: 767.98px) {
  .display-1 {
    font-size: 2rem;
  }
  
  .display-6 {
    font-size: 1.2rem;
  }
  
  .lead {
    font-size: 1rem;
  }
  
  .carousel-item {
    min-height: 450px;
  }
  
  section {
    padding: 2.5rem 0;
  }
  
  .px-4 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .py-5 {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
  }
  
  .stat-item {
    padding: 1.5rem 0.5rem;
  }
  
  .timeline-content:hover {
    transform: translateX(0) translateY(-5px);
  }
}

@media (max-width: 575.98px) {
  .btn-lg {
    padding: 0.7rem 1.5rem !important;
    font-size: 0.9rem;
  }
  
  .display-1 {
    font-size: 1.8rem;
  }
  
  .carousel-item {
    min-height: 400px;
  }
  
  .project-card {
    height: 300px;
  }
  
  .project-title {
    font-size: 1.4rem;
  }
  
  .contact-form {
    padding: 1.5rem 1rem;
  }
  
  .card-img-top {
    height: 200px;
  }
}

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

/* ============================================
   ACCESSIBILITY
   ============================================ */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

:focus-visible {
  outline: 3px solid var(--secondary-color) !important;
  outline-offset: 2px;
}

a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--secondary-color);
  outline-offset: 2px;
}

/* ============================================
   SCROLLBAR STYLING
   ============================================ */
::-webkit-scrollbar {
  width: 12px;
}

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

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

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color);
}

/* ============================================
   LOADING ANIMATION
   ============================================ */
.loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--primary-color);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading.hidden {
  opacity: 0;
  visibility: hidden;
}

.loading-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(232, 176, 73, 0.3);
  border-top-color: var(--secondary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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