/* Industrial Steel & Ember - Architectural Studio Theme */

:root {
  --primary-color: #2C3E50;
  --secondary-color: #E67E22;
  --dark-steel: #1a252f;
  --light-steel: #34495e;
  --ember-glow: #d35400;
  --white: #ffffff;
  --light-gray: #ecf0f1;
  --text-dark: #2c3e50;
  --text-light: #7f8c8d;
}

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

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

/* Typography */
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-weight: 700 !important;
  letter-spacing: -1px;
}

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

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

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

/* Navbar Styles */
.navbar {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-steel) 100%) !important;
  padding: 1rem 0;
  transition: all 0.3s ease;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.navbar-dark .navbar-brand {
  color: var(--white) !important;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  letter-spacing: 1px;
}

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

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

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

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

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

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.3) !important;
  padding: 0.5rem 0.75rem;
}

.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, 0.9%29' 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(--primary-color) 0%, var(--dark-steel) 50%, var(--primary-color) 100%);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23E67E22" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
  background-size: cover;
  background-position: bottom;
  opacity: 0.3;
  animation: heroWave 15s ease-in-out infinite;
}

@keyframes heroWave {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

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

.hero-section .display-1 {
  font-size: clamp(2.5rem, 8vw, 5rem) !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease;
}

.hero-section .lead {
  font-size: clamp(1rem, 2vw, 1.5rem);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1.2s ease;
}

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

/* Buttons */
.btn {
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  border-width: 2px !important;
  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: 1rem 2.5rem !important;
  font-size: 1rem;
}

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

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--ember-glow) !important;
  border-color: var(--ember-glow) !important;
  color: var(--white) !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(230, 126, 34, 0.3) !important;
}

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

.btn-outline-light:hover,
.btn-outline-light:focus {
  background-color: var(--white) !important;
  border-color: var(--white) !important;
  color: var(--primary-color) !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2) !important;
}

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

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

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

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

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

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

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

/* Portfolio Items */
.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: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
  cursor: pointer;
}

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

.portfolio-card {
  position: relative;
  overflow: hidden;
  height: 400px;
  background-size: cover;
  background-position: center;
  background-color: var(--primary-color);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(44, 62, 80, 0.95) 0%, rgba(44, 62, 80, 0.7) 50%, transparent 100%);
  padding: 2rem;
  opacity: 0;
  transition: all 0.4s ease;
}

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

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

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

/* Filter Buttons */
.filter-btn {
  background-color: transparent !important;
  border: 2px solid var(--primary-color) !important;
  color: var(--primary-color) !important;
  margin: 0.5rem;
  padding: 0.5rem 1.5rem !important;
  transition: all 0.3s ease;
}

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

/* Cards */
.card {
  border: none !important;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.4s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  height: 100%;
}

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

.card-img-top {
  height: 250px;
  object-fit: cover;
  transition: all 0.4s ease;
}

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

.card-body {
  padding: 2rem;
  background-color: var(--white);
}

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

.card-body p {
  color: var(--text-light);
  line-height: 1.8;
}

/* Shadow Utilities */
.shadow-sm {
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08) !important;
}

.shadow {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1) !important;
}

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

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

.form-control,
.form-select {
  border: 2px solid #ddd !important;
  border-radius: 4px;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
  background-color: var(--white) !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(230, 126, 34, 0.25) !important;
  outline: none;
}

.form-check-input {
  border: 2px solid #ddd !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.2rem rgba(230, 126, 34, 0.25) !important;
}

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

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

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

.bi-geo-alt-fill,
.bi-geo-alt,
.bi-telephone-fill,
.bi-telephone,
.bi-envelope-fill,
.bi-envelope,
.bi-facebook,
.bi-instagram,
.bi-linkedin,
.bi-send-fill,
.bi-clock-history,
.bi-camera,
.bi-chat-dots,
.bi-calendar3,
.bi-search,
.bi-clipboard-data,
.bi-palette,
.bi-hammer {
  color: var(--secondary-color) !important;
  transition: all 0.3s ease;
}

.d-inline-flex {
  display: inline-flex !important;
}

.justify-content-center {
  justify-content: center !important;
}

.align-items-center {
  align-items: center !important;
}

.rounded-circle {
  border-radius: 50% !important;
  width: 60px;
  height: 60px;
  background-color: rgba(230, 126, 34, 0.1);
  transition: all 0.3s ease;
}

.rounded-circle:hover {
  background-color: var(--secondary-color);
  transform: scale(1.1);
}

.rounded-circle:hover .bi {
  color: var(--white) !important;
}

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

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

/* Border Utilities */
.border-end {
  border-right: 1px solid rgba(0, 0, 0, 0.1) !important;
}

.border-start {
  border-left: 4px solid var(--secondary-color) !important;
}

.border-3 {
  border-width: 3px !important;
}

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

/* Footer */
footer {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-steel) 100%);
  color: var(--white);
  padding: 3rem 0 1rem;
  margin-top: 5rem;
}

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

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

footer a {
  text-decoration: none;
  transition: all 0.3s ease;
}

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

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

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

/* Privacy Header */
.privacy-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-steel) 100%);
  padding: 5rem 0 3rem;
  color: var(--white);
}

.privacy-header h1 {
  color: var(--white) !important;
}

.privacy-content {
  background-color: var(--white);
  padding: 3rem;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  margin-top: -3rem;
  position: relative;
  z-index: 2;
}

.privacy-content h3 {
  color: var(--primary-color) !important;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.privacy-content p {
  color: var(--text-light);
  line-height: 1.8;
}

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

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

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

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

/* Scroll Animations */
.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

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

/* Responsive Design */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: rgba(44, 62, 80, 0.95);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem !important;
  }
  
  .hero-section {
    min-height: 80vh;
    padding: 3rem 0;
  }
  
  .display-1 {
    font-size: 2.5rem !important;
  }
  
  section {
    padding: 3rem 0;
  }
  
  .portfolio-masonry {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
  }
  
  .border-end {
    border-right: none !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
  }
}

@media (max-width: 767.98px) {
  .btn-lg {
    padding: 0.75rem 1.5rem !important;
    font-size: 0.9rem;
  }
  
  .display-1 {
    font-size: 2rem !important;
  }
  
  .display-3 {
    font-size: 2rem !important;
  }
  
  .display-4 {
    font-size: 1.75rem !important;
  }
  
  .display-5 {
    font-size: 1.5rem !important;
  }
  
  .display-6 {
    font-size: 1.25rem !important;
  }
  
  .portfolio-card {
    height: 300px;
  }
  
  .privacy-content {
    padding: 1.5rem;
  }
}

@media (max-width: 575.98px) {
  .portfolio-masonry {
    grid-template-columns: 1fr;
  }
  
  .gap-3 {
    gap: 0.5rem !important;
  }
  
  .px-5 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
}

/* Loading Animation */
.loading {
  position: relative;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border: 3px solid rgba(230, 126, 34, 0.3);
  border-top-color: var(--secondary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

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

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

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

/* Text Selection */
::selection {
  background-color: var(--secondary-color);
  color: var(--white);
}

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

/* Focus Visible */
*:focus-visible {
  outline: 2px solid var(--secondary-color);
  outline-offset: 2px;
}

/* Utility Classes */
.fw-bold {
  font-weight: 700 !important;
}

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

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

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

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

.top-0 {
  top: 0 !important;
}

.bottom-0 {
  bottom: 0 !important;
}

.start-0 {
  left: 0 !important;
}

.end-0 {
  right: 0 !important;
}

.w-100 {
  width: 100% !important;
}

.h-100 {
  height: 100% !important;
}

.flex-wrap {
  flex-wrap: wrap !important;
}

.flex-column {
  flex-direction: column !important;
}

.flex-grow-1 {
  flex-grow: 1 !important;
}

.flex-shrink-0 {
  flex-shrink: 0 !important;
}

.ms-auto {
  margin-left: auto !important;
}

.text-center {
  text-align: center !important;
}

.text-lg-end {
  text-align: left !important;
}

@media (min-width: 992px) {
  .text-lg-end {
    text-align: right !important;
  }
}

.text-md-start {
  text-align: center !important;
}

@media (min-width: 768px) {
  .text-md-start {
    text-align: left !important;
  }
}

.text-md-end {
  text-align: center !important;
}

@media (min-width: 768px) {
  .text-md-end {
    text-align: right !important;
  }
}