/* Midnight Amber Architecture Studio - Custom Styles */

/* ===========================
   CSS VARIABLES & BASE
   =========================== */
:root {
  --primary-color: #2C3E50;
  --secondary-color: #F39C12;
  --dark-shade: #1a252f;
  --light-shade: #34495e;
  --amber-light: #f5b041;
  --amber-dark: #d68910;
  --text-light: #ecf0f1;
  --text-dark: #2c3e50;
  --transition-speed: 0.3s;
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 5px 20px rgba(0, 0, 0, 0.2);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

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

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

.text-white.display-2,
.text-white.display-3,
.text-white.display-4 {
  color: #ffffff !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.lead {
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.8;
}

/* ===========================
   NAVIGATION
   =========================== */
.navbar {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-shade) 100%) !important;
  backdrop-filter: blur(10px);
  transition: all var(--transition-speed) ease;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
  padding: 1rem 0;
}

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

.navbar-brand {
  color: #ffffff !important;
  font-size: 1.75rem;
  font-weight: 700 !important;
  letter-spacing: 1px;
  transition: all var(--transition-speed) ease;
  text-transform: uppercase;
}

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

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

.navbar-dark .navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: 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::after,
.navbar-dark .navbar-nav .nav-link.active::after {
  width: 80%;
}

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

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

/* ===========================
   HERO SECTION
   =========================== */
.hero-section {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--dark-shade) 0%, var(--primary-color) 50%, var(--light-shade) 100%);
  position: relative;
  overflow: hidden;
  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,%3Csvg width="100" height="100" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M0 0h100v100H0z" fill="none"/%3E%3Cpath d="M0 0l50 50M50 0l50 50M0 50l50 50" stroke="%23F39C12" stroke-width="0.5" opacity="0.1"/%3E%3C/svg%3E');
  opacity: 0.1;
  animation: patternMove 20s linear infinite;
}

@keyframes patternMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(100px, 100px); }
}

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

.hero-section .text-white {
  color: #ffffff !important;
}

.hero-section .display-2 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  animation: fadeInUp 1s ease-out;
  margin-bottom: 1.5rem !important;
}

.hero-section .fs-4 {
  color: var(--text-light) !important;
  animation: fadeInUp 1.2s ease-out;
  max-width: 700px;
  margin: 0 auto 2rem;
}

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

/* ===========================
   BUTTONS
   =========================== */
.btn {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all var(--transition-speed) ease;
  border-radius: 50px;
  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: 0.875rem 2.5rem !important;
  font-size: 1rem;
}

.btn-primary {
  background: var(--secondary-color) !important;
  border: 2px solid var(--secondary-color) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}

.btn-primary:hover {
  background: var(--amber-dark) !important;
  border-color: var(--amber-dark) !important;
  color: #ffffff !important;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(243, 156, 18, 0.4);
}

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

.btn-outline-light:hover {
  background: #ffffff !important;
  color: var(--primary-color) !important;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

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

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

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

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

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

.bg-success {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--light-shade) 100%) !important;
}

.bg-info {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--amber-light) 100%) !important;
}

section {
  position: relative;
  overflow: hidden;
}

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

.shadow-lg {
  box-shadow: var(--shadow-lg) !important;
  border-radius: 15px;
}

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

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

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

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

.hover-lift {
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

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

/* ===========================
   CARDS
   =========================== */
.card {
  border: none !important;
  border-radius: 15px;
  overflow: hidden;
  transition: all var(--transition-speed) ease;
  background: #ffffff;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

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

.card-img-top {
  border-radius: 0 !important;
  transition: transform 0.5s ease;
  height: 250px;
  object-fit: cover;
}

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

.card-body {
  padding: 1.5rem;
}

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

.card-text {
  color: #6c757d;
  line-height: 1.8;
}

.card-img {
  border-radius: 15px;
  height: 100%;
  object-fit: cover;
}

.card-img-overlay {
  background: linear-gradient(to top, rgba(44, 62, 80, 0.9) 0%, rgba(44, 62, 80, 0.3) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
}

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

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  cursor: pointer;
  height: 350px;
}

.portfolio-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-item:hover .portfolio-image {
  transform: scale(1.15);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(44, 62, 80, 0.95) 0%, rgba(44, 62, 80, 0.5) 50%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: 2rem;
  opacity: 0;
  transition: opacity var(--transition-speed) ease;
}

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

.filter-btn {
  background: transparent !important;
  border: 2px solid var(--primary-color) !important;
  color: var(--primary-color) !important;
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  transition: all var(--transition-speed) ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary-color) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(44, 62, 80, 0.3);
}

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

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

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

.timeline-container .shadow {
  background: #ffffff;
  padding: 2rem;
  border-radius: 15px;
  border-left: 4px solid var(--secondary-color);
}

/* ===========================
   FORMS
   =========================== */
.form-control,
.form-select {
  border: 2px solid #e0e0e0 !important;
  border-radius: 10px !important;
  padding: 0.75rem 1rem !important;
  transition: all var(--transition-speed) ease;
  background: #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(243, 156, 18, 0.15) !important;
  background: #ffffff !important;
}

.form-control-lg,
.form-select-lg {
  padding: 1rem 1.25rem !important;
  font-size: 1.1rem !important;
}

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

.form-check-input {
  border: 2px solid #e0e0e0 !important;
  width: 1.5rem;
  height: 1.5rem;
  margin-top: 0.1rem;
}

.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(243, 156, 18, 0.15) !important;
}

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

/* ===========================
   BADGES
   =========================== */
.badge {
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.875rem;
  background: var(--secondary-color) !important;
  color: #ffffff !important;
}

/* ===========================
   ICONS (Bootstrap Icons)
   =========================== */
.bi {
  vertical-align: middle;
}

.bi-envelope-heart,
.bi-telephone-fill,
.bi-envelope-fill,
.bi-geo-alt-fill,
.bi-send-fill,
.bi-calendar-check,
.bi-telephone,
.bi-envelope,
.bi-geo-alt,
.bi-house-door,
.bi-building,
.bi-tree,
.bi-palette,
.bi-clipboard-check,
.bi-cube,
.bi-check-circle-fill,
.bi-facebook,
.bi-instagram,
.bi-linkedin,
.bi-twitter {
  font-size: 1.25rem;
  color: var(--secondary-color);
}

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

.modal-header {
  background: var(--primary-color);
  color: #ffffff !important;
  border: none;
  padding: 1.5rem;
}

.modal-body {
  padding: 2rem;
}

.btn-close {
  background-color: #ffffff;
  opacity: 1;
  border-radius: 50%;
  padding: 0.5rem;
}

.btn-close:hover {
  opacity: 0.8;
}

/* ===========================
   CAROUSEL
   =========================== */
.carousel {
  border-radius: 15px;
  overflow: hidden;
}

.carousel-item {
  height: 500px;
}

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

.carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--secondary-color) !important;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: var(--primary-color);
  border-radius: 50%;
  padding: 1.5rem;
}

/* ===========================
   TABLE
   =========================== */
.table {
  background: #ffffff;
  border-radius: 15px;
  overflow: hidden;
}

.table-bordered {
  border: 2px solid #e0e0e0 !important;
}

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

.table tbody tr {
  transition: background var(--transition-speed) ease;
}

.table tbody tr:hover {
  background: rgba(243, 156, 18, 0.1);
}

.table-responsive {
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

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

footer .text-white {
  color: #ffffff !important;
}

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

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

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

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

/* ===========================
   UTILITIES
   =========================== */
.text-muted {
  color: #6c757d !important;
}

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

.opacity-90 {
  opacity: 0.9 !important;
}

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

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

.position-sticky {
  position: sticky !important;
  top: 80px;
}

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

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

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

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

.text-decoration-none {
  text-decoration: none !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);
  }
}

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

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

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

/* ===========================
   RESPONSIVE DESIGN
   =========================== */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(44, 62, 80, 0.98);
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
  }
  
  .navbar-nav {
    gap: 0.5rem !important;
  }
  
  .hero-section {
    min-height: 100vh;
    padding: 2rem 1rem;
  }
  
  .hero-section .display-2 {
    font-size: 2.5rem;
  }
  
  .display-3 {
    font-size: 2.5rem !important;
  }
  
  .display-4 {
    font-size: 2rem !important;
  }
  
  .display-5 {
    font-size: 1.75rem !important;
  }
  
  .timeline-container::before {
    left: 15px;
  }
  
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .carousel-item {
    height: 300px;
  }
  
  .btn-lg {
    padding: 0.75rem 2rem !important;
    font-size: 0.95rem;
  }
  
  .py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
}

@media (max-width: 767.98px) {
  .hero-section .display-2 {
    font-size: 2rem;
  }
  
  .btn-lg {
    width: 100%;
    margin-bottom: 1rem;
  }
  
  .display-6 {
    font-size: 1.5rem !important;
  }
  
  .card-img-top {
    height: 200px;
  }
  
  .portfolio-item {
    height: 250px;
  }
}

@media (max-width: 575.98px) {
  .container-fluid {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .hero-section .fs-4 {
    font-size: 1rem !important;
  }
  
  .navbar-brand {
    font-size: 1.25rem;
  }
  
  .filter-btn {
    font-size: 0.875rem;
    padding: 0.4rem 1rem;
  }
}

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

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

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

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

::-webkit-scrollbar-track {
  background: var(--primary-color);
}

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

::-webkit-scrollbar-thumb:hover {
  background: var(--amber-dark);
}

/* ===========================
   LOADING ANIMATION
   =========================== */
.loading {
  display: inline-block;
  width: 50px;
  height: 50px;
  border: 5px solid rgba(243, 156, 18, 0.3);
  border-radius: 50%;
  border-top-color: var(--secondary-color);
  animation: spin 1s linear infinite;
}

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

/* ===========================
   SOCIAL MEDIA ICONS
   =========================== */
.bi-facebook:hover { color: #1877f2 !important; }
.bi-instagram:hover { color: #e4405f !important; }
.bi-linkedin:hover { color: #0077b5 !important; }
.bi-twitter:hover { color: #1da1f2 !important; }