/* Midnight Copper Architecture Studio - Custom Styles */

/* ===== ROOT VARIABLES ===== */
:root {
  --primary-color: #2C3E50;
  --secondary-color: #E67E22;
  --copper-light: #F39C12;
  --copper-dark: #D35400;
  --midnight-dark: #1A252F;
  --midnight-light: #34495E;
  --white: #FFFFFF;
  --light-gray: #ECF0F1;
  --dark-gray: #7F8C8D;
  --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.2s ease;
}

/* ===== 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;
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--primary-color) !important;
}

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

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

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

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(44, 62, 80, 0.7);
  z-index: 1;
}

.hero-section .position-absolute {
  z-index: 0;
  filter: brightness(0.6) contrast(1.2);
}

.hero-section .object-fit-cover {
  object-fit: cover;
  object-position: center;
}

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

/* ===== NAVBAR ===== */
.navbar {
  background: transparent !important;
  backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
  z-index: 1000;
}

.navbar.scrolled {
  background: rgba(26, 37, 47, 0.95) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  padding: 1rem 0 !important;
}

.navbar-brand {
  color: var(--white) !important;
  font-size: 1.8rem !important;
  font-weight: 700 !important;
  letter-spacing: 1px;
  transition: var(--transition-fast);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

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

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

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem 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;
}

.nav-link {
  color: var(--white) !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
  padding: 0.5rem 1rem !important;
  position: relative;
  transition: var(--transition-fast);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

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

.nav-link:hover,
.nav-link.active {
  color: var(--secondary-color) !important;
  transform: translateY(-2px);
}

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

/* ===== BUTTONS ===== */
.btn {
  border-radius: 50px;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition-smooth);
  border: 2px solid transparent;
  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-primary {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--copper-dark) 100%) !important;
  border-color: var(--secondary-color) !important;
  color: var(--white) !important;
  box-shadow: 0 4px 15px rgba(230, 126, 34, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--copper-dark) 0%, var(--secondary-color) 100%) !important;
  border-color: var(--copper-dark) !important;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(230, 126, 34, 0.4);
  color: var(--white) !important;
}

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

.btn-outline-primary:hover {
  background: var(--white) !important;
  border-color: var(--white) !important;
  color: var(--primary-color) !important;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

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

.btn-outline-dark:hover {
  background: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: var(--white) !important;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(44, 62, 80, 0.3);
}

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

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

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

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

/* ===== HERO CONTENT ===== */
.hero-section .display-1 {
  color: var(--white) !important;
  font-size: clamp(2.5rem, 8vw, 5rem) !important;
  font-weight: 800 !important;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1s ease-out;
  line-height: 1.2 !important;
}

.hero-section .fs-4 {
  color: var(--light-gray) !important;
  font-size: clamp(1rem, 2.5vw, 1.5rem) !important;
  font-weight: 300 !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1s ease-out 0.2s backwards;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-section .lead {
  color: var(--light-gray) !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* ===== SCROLL INDICATOR ===== */
.position-absolute.bottom-0 {
  animation: bounce 2s infinite;
  color: var(--white) !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.position-absolute.bottom-0:hover {
  color: var(--secondary-color) !important;
}

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

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

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

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

/* ===== DISPLAY TEXT ===== */
.display-1, .display-2, .display-3, .display-4, .display-5 {
  font-weight: 800 !important;
  letter-spacing: -0.03em !important;
}

.display-3 {
  font-size: clamp(2rem, 6vw, 3.5rem) !important;
}

.display-4 {
  font-size: clamp(1.75rem, 5vw, 2.5rem) !important;
}

.display-5 {
  font-size: clamp(1.5rem, 4vw, 2rem) !important;
}

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

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
}

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

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

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

/* ===== PORTFOLIO ITEMS ===== */
.portfolio-item {
  transition: var(--transition-smooth);
  cursor: pointer;
}

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

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

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

.portfolio-overlay h4,
.portfolio-overlay p {
  color: var(--white) !important;
  transform: translateY(20px);
  transition: var(--transition-smooth);
}

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

.portfolio-item:hover .portfolio-overlay h4,
.portfolio-item:hover .portfolio-overlay p {
  transform: translateY(0);
}

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

/* ===== FILTER BUTTONS ===== */
.filter-btn {
  background: transparent !important;
  border: 2px solid var(--primary-color) !important;
  color: var(--primary-color) !important;
  padding: 0.75rem 2rem !important;
  margin: 0.5rem !important;
  border-radius: 50px !important;
  font-weight: 600 !important;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--secondary-color) !important;
  border-color: var(--secondary-color) !important;
  color: var(--white) !important;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(230, 126, 34, 0.3);
}

/* ===== BADGES ===== */
.badge {
  background: var(--secondary-color) !important;
  color: var(--white) !important;
  font-weight: 600 !important;
  padding: 0.75rem 1.5rem !important;
  border-radius: 50px !important;
  font-size: 0.9rem !important;
  letter-spacing: 0.5px;
}

/* ===== IMAGES ===== */
.rounded {
  border-radius: 15px !important;
}

.img-fluid {
  border-radius: 15px;
  transition: var(--transition-smooth);
}

.shadow,
.shadow-sm,
.shadow-lg {
  transition: var(--transition-smooth);
}

.shadow-sm {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

.shadow {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
}

.shadow-lg {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15) !important;
}

img:hover {
  transform: scale(1.02);
}

/* ===== ICONS ===== */
.bi {
  transition: var(--transition-fast);
}

.bi-chat-dots,
.bi-geo-alt-fill,
.bi-telephone-fill,
.bi-envelope-fill,
.bi-arrow-right,
.bi-calendar-check,
.bi-file-earmark-text,
.bi-building,
.bi-geo-alt,
.bi-telephone,
.bi-envelope,
.bi-lightning-charge-fill,
.bi-droplet-fill,
.bi-tree-fill,
.bi-recycle,
.bi-sun-fill,
.bi-flower3,
.bi-award-fill,
.bi-house-check-fill,
.bi-globe-americas,
.bi-clipboard-check-fill,
.bi-thermometer-sun,
.bi-bricks,
.bi-moisture,
.bi-grid-3x3-gap-fill,
.bi-pc-display-horizontal,
.bi-heart-pulse-fill,
.bi-bullseye,
.bi-book,
.bi-hammer,
.bi-arrows-angle-contract {
  color: var(--secondary-color) !important;
}

.fs-1 {
  font-size: 3rem !important;
}

.fs-2 {
  font-size: 2.5rem !important;
}

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

.form-control,
.form-select {
  border: 2px solid var(--light-gray) !important;
  border-radius: 10px !important;
  padding: 0.875rem 1.25rem !important;
  font-size: 1rem !important;
  transition: var(--transition-fast);
  background: 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.25rem rgba(230, 126, 34, 0.15) !important;
  background: var(--white) !important;
}

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

.form-check-input {
  border: 2px solid var(--primary-color) !important;
  border-radius: 5px !important;
  width: 1.5rem !important;
  height: 1.5rem !important;
  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.25rem rgba(230, 126, 34, 0.25) !important;
}

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

/* ===== PROGRESS BARS ===== */
.progress {
  height: 2rem !important;
  border-radius: 50px !important;
  background-color: var(--light-gray) !important;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-bar {
  background: linear-gradient(90deg, var(--secondary-color) 0%, var(--copper-light) 100%) !important;
  font-weight: 600 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width 1.5s ease-in-out;
  box-shadow: 0 2px 8px rgba(230, 126, 34, 0.4);
}

/* ===== ALERTS ===== */
.alert {
  border-radius: 10px !important;
  border: none !important;
  padding: 1.25rem !important;
  font-weight: 500 !important;
}

.alert-info {
  background: linear-gradient(135deg, rgba(44, 62, 80, 0.1) 0%, rgba(230, 126, 34, 0.1) 100%) !important;
  color: var(--primary-color) !important;
  border-left: 4px solid var(--secondary-color) !important;
}

/* ===== LISTS ===== */
.list-unstyled li {
  padding: 0.75rem 0;
  color: var(--primary-color) !important;
  font-weight: 500;
  display: flex;
  align-items: flex-start;
}

.list-unstyled li .bi {
  margin-right: 1rem;
  flex-shrink: 0;
}

/* ===== TEXT UTILITIES ===== */
.text-muted {
  color: var(--dark-gray) !important;
}

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

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

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

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

/* ===== FOOTER ===== */
footer {
  background: linear-gradient(135deg, var(--midnight-dark) 0%, var(--primary-color) 100%);
  color: var(--white) !important;
  padding: 4rem 0 2rem;
}

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

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

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

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

/* ===== PRIVACY CONTENT ===== */
.privacy-content h2,
.privacy-content h3,
.privacy-content h4 {
  color: var(--primary-color) !important;
  margin-top: 2rem !important;
  margin-bottom: 1rem !important;
}

.privacy-content p {
  color: var(--dark-gray) !important;
  margin-bottom: 1.5rem !important;
  line-height: 1.8 !important;
}

.privacy-content ul {
  margin-bottom: 1.5rem;
}

.privacy-content ul li {
  color: var(--dark-gray) !important;
  margin-bottom: 0.75rem;
}

/* ===== STICKY ELEMENTS ===== */
.position-sticky {
  position: sticky !important;
  top: 100px;
}

/* ===== ROUNDED ELEMENTS ===== */
.rounded-circle {
  border-radius: 50% !important;
  overflow: hidden;
}

/* ===== FLEX UTILITIES ===== */
.flex-shrink-0 {
  flex-shrink: 0 !important;
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@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-fade-in {
  animation: fadeIn 0.8s ease-out;
}

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

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

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

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

/* ===== RESPONSIVE MEDIA QUERIES ===== */
@media (max-width: 1200px) {
  .container-fluid {
    padding-left: 2rem !important;
    padding-right: 2rem !important;
  }
}

@media (max-width: 992px) {
  .navbar-collapse {
    background: rgba(26, 37, 47, 0.98);
    padding: 2rem;
    margin-top: 1rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  }
  
  .navbar-nav {
    gap: 0 !important;
  }
  
  .nav-link {
    padding: 1rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .nav-link::after {
    display: none;
  }
  
  .display-1 {
    font-size: 3rem !important;
  }
  
  .display-3 {
    font-size: 2.5rem !important;
  }
  
  section {
    padding: 3rem 0;
  }
  
  .py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
  
  .portfolio-card {
    height: 300px;
  }
}

@media (max-width: 768px) {
  .container-fluid {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .px-5 {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }
  
  .display-1 {
    font-size: 2.5rem !important;
  }
  
  .display-3 {
    font-size: 2rem !important;
  }
  
  .display-4 {
    font-size: 1.75rem !important;
  }
  
  .btn-lg {
    padding: 0.875rem 2rem !important;
    font-size: 1rem !important;
  }
  
  .hero-section .fs-4 {
    font-size: 1.1rem !important;
  }
  
  section {
    padding: 2.5rem 0;
  }
  
  .py-5 {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
  }
  
  .card-body {
    padding: 1.5rem !important;
  }
  
  .portfolio-card {
    height: 250px;
  }
  
  .filter-btn {
    padding: 0.625rem 1.5rem !important;
    font-size: 0.875rem !important;
  }
}

@media (max-width: 576px) {
  .display-1 {
    font-size: 2rem !important;
  }
  
  .display-3 {
    font-size: 1.75rem !important;
  }
  
  .btn {
    font-size: 0.875rem !important;
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem !important;
  }
  
  .navbar-brand {
    font-size: 1.5rem !important;
  }
  
  .fs-1 {
    font-size: 2.5rem !important;
  }
  
  .fs-2 {
    font-size: 2rem !important;
  }
  
  .portfolio-card {
    height: 220px;
  }
  
  .card {
    margin-bottom: 1.5rem;
  }
}

/* ===== ACCESSIBILITY ===== */
.btn:focus,
.form-control:focus,
.form-select:focus,
.nav-link:focus {
  outline: 3px solid var(--secondary-color);
  outline-offset: 2px;
}

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

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

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

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--secondary-color) 0%, var(--copper-dark) 100%);
  border-radius: 6px;
  border: 2px solid var(--light-gray);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--copper-dark) 0%, var(--secondary-color) 100%);
}

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

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