/* Architectural Studio Theme - Deep Slate & Copper */

:root {
  --primary-color: #2C3E50;
  --secondary-color: #E67E22;
  --primary-dark: #1a252f;
  --secondary-dark: #d35400;
  --light-slate: #34495e;
  --copper-light: #f39c12;
  --text-light: #ecf0f1;
  --transition-base: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

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

/* Typography */
.display-1, .display-2, .display-3, .display-4, .display-5 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.lead {
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 1.7;
}

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

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

.text-muted {
  color: #95a5a6 !important;
}

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

/* Navigation */
.navbar {
  background: var(--primary-color) !important;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  transition: var(--transition-base);
  padding: 1rem 0;
}

.navbar.scrolled {
  background: var(--primary-dark) !important;
  padding: 0.5rem 0;
}

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

.navbar-brand {
  font-size: 1.5rem;
  color: #ffffff !important;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: var(--transition-base);
}

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

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

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

.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%);
}

.nav-link:hover::after,
.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.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='rgba%28255, 255, 255, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

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

/* Buttons */
.btn {
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: var(--transition-base);
  border-radius: 4px;
  text-transform: uppercase;
  font-size: 0.9rem;
  border-width: 2px;
}

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

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

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

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

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

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

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

.btn:active {
  transform: translateY(0) !important;
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
  overflow: hidden;
}

.hero-about {
  position: relative;
  min-height: 60vh;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--light-slate) 100%);
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%23ffffff" fill-opacity="0.03"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
  opacity: 0.5;
}

/* Copper Accent */
.copper-accent {
  color: var(--secondary-color) !important;
  font-weight: 700;
}

/* Cards */
.card {
  border: none !important;
  border-radius: 8px;
  transition: var(--transition-base);
  overflow: hidden;
}

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

.card-body {
  padding: 2rem;
}

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

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

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

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

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

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

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

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

/* Background Colors */
.bg-primary {
  background-color: var(--primary-color) !important;
}

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

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

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

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

/* Story Section */
.story-section {
  padding: 5rem 0;
  background: #ffffff;
}

.story-zigzag {
  margin-bottom: 4rem;
}

.story-block {
  margin-bottom: 5rem;
}

.story-img {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.story-img img {
  width: 100%;
  height: auto;
  transition: var(--transition-base);
}

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

.story-text {
  padding: 2rem;
}

/* Team Section */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.team-card {
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: var(--transition-base);
}

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

.team-photo {
  width: 100%;
  height: 350px;
  object-fit: cover;
  transition: var(--transition-base);
}

.team-card:hover .team-photo {
  transform: scale(1.1);
}

/* Values Section */
.values-section {
  background: var(--primary-color);
  color: #ffffff;
  padding: 5rem 0;
  position: relative;
}

.values-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%23ffffff" fill-opacity="0.02"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
}

.value-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 2rem;
  transition: var(--transition-base);
  height: 100%;
}

.value-card:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-5px);
}

/* Portfolio Section */
.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  height: 350px;
}

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

.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.3) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  opacity: 0;
  transition: var(--transition-base);
}

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

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

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

.form-control,
.form-select {
  border: 2px solid #e0e0e0 !important;
  border-radius: 4px !important;
  padding: 0.75rem 1rem !important;
  font-size: 1rem !important;
  transition: var(--transition-base) !important;
  background: #ffffff !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.25) !important;
  outline: none !important;
}

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

.form-check-input {
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid #e0e0e0 !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 {
  cursor: pointer;
  color: var(--primary-color) !important;
}

/* Badge */
.badge {
  padding: 0.5rem 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  border-radius: 4px;
}

/* Border Utilities */
.border-0 {
  border: 0 !important;
}

.border-start {
  border-left: 1px solid #dee2e6 !important;
}

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

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

.bi-award,
.bi-journal-text,
.bi-building,
.bi-geo-alt,
.bi-envelope,
.bi-telephone,
.bi-geo-alt-fill,
.bi-telephone-fill,
.bi-envelope-fill,
.bi-send,
.bi-check-circle-fill,
.bi-calendar-check,
.bi-arrow-left,
.bi-x-circle,
.bi-facebook,
.bi-instagram,
.bi-linkedin,
.bi-house-door,
.bi-grid-3x3,
.bi-arrow-right-circle-fill,
.bi-sun,
.bi-map,
.bi-gem {
  display: inline-block;
  line-height: 1;
}

.rounded-circle {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--secondary-color) !important;
  color: #ffffff !important;
  font-size: 1.5rem;
}

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

/* Spacing Utilities */
.gap-2 {
  gap: 0.5rem !important;
}

.gap-3 {
  gap: 1rem !important;
}

.gap-4 {
  gap: 1.5rem !important;
}

/* List Styles */
.list-unstyled {
  padding-left: 0;
  list-style: none;
}

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

/* Links */
a {
  color: var(--secondary-color) !important;
  text-decoration: none;
  transition: var(--transition-base);
}

a:hover {
  color: var(--secondary-dark) !important;
  text-decoration: underline;
}

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

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

/* Footer */
footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 3rem 0 1rem;
}

footer a {
  color: rgba(255, 255, 255, 0.7) !important;
  transition: var(--transition-base);
}

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

footer .h5,
footer .h6 {
  color: #ffffff !important;
  font-weight: 700;
}

/* Opacity Utilities */
.opacity-25 {
  opacity: 0.25 !important;
}

.opacity-75 {
  opacity: 0.75 !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 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-fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

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

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

/* Scroll Reveal */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Loading Spinner */
.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(230, 126, 34, 0.2);
  border-top-color: var(--secondary-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Responsive Images */
.img-fluid {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Overflow */
.overflow-hidden {
  overflow: hidden !important;
}

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

/* Display Utilities */
.d-flex {
  display: flex !important;
}

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

.d-block {
  display: block !important;
}

.d-none {
  display: none !important;
}

/* Flex Utilities */
.flex-column {
  flex-direction: column !important;
}

.flex-row-reverse {
  flex-direction: row-reverse !important;
}

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

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

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

.align-items-start {
  align-items: flex-start !important;
}

.align-items-end {
  align-items: flex-end !important;
}

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

.align-self-start {
  align-self: flex-start !important;
}

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

.justify-content-between {
  justify-content: space-between !important;
}

.justify-content-end {
  justify-content: flex-end !important;
}

/* Text Alignment */
.text-center {
  text-align: center !important;
}

.text-uppercase {
  text-transform: uppercase !important;
}

/* Responsive Text Alignment */
@media (min-width: 992px) {
  .text-lg-end {
    text-align: right !important;
  }
  
  .mt-lg-0 {
    margin-top: 0 !important;
  }
  
  .mb-lg-0 {
    margin-bottom: 0 !important;
  }
  
  .order-lg-1 {
    order: 1 !important;
  }
  
  .order-lg-2 {
    order: 2 !important;
  }
  
  .d-lg-block {
    display: block !important;
  }
}

@media (min-width: 768px) {
  .text-md-start {
    text-align: left !important;
  }
  
  .text-md-end {
    text-align: right !important;
  }
  
  .mb-md-0 {
    margin-bottom: 0 !important;
  }
}

/* Mobile Responsiveness */
@media (max-width: 991px) {
  .navbar-collapse {
    background: var(--primary-dark);
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 8px;
  }
  
  .nav-link {
    padding: 0.75rem 1rem !important;
  }
  
  .display-1 {
    font-size: 3rem;
  }
  
  .display-2 {
    font-size: 2.5rem;
  }
  
  .display-3 {
    font-size: 2rem;
  }
  
  .display-4 {
    font-size: 1.75rem;
  }
  
  .display-5 {
    font-size: 1.5rem;
  }
  
  .hero-section,
  .hero-about {
    min-height: 70vh;
  }
  
  .btn-lg {
    padding: 0.75rem 2rem;
    font-size: 0.9rem;
  }
  
  .story-text {
    padding: 1rem 0;
  }
  
  .portfolio-item {
    height: 250px;
  }
}

@media (max-width: 767px) {
  .display-1 {
    font-size: 2.5rem;
  }
  
  .display-2 {
    font-size: 2rem;
  }
  
  .display-3 {
    font-size: 1.75rem;
  }
  
  .lead {
    font-size: 1.1rem;
  }
  
  .py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
  
  .card-body {
    padding: 1.5rem;
  }
  
  .value-card {
    padding: 1.5rem;
  }
  
  .team-photo {
    height: 300px;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .btn,
  footer {
    display: none;
  }
  
  body {
    color: #000;
    background: #fff;
  }
}

/* Smooth Transitions for All Interactive Elements */
button,
a,
.card,
.btn,
.form-control,
.form-select,
img {
  transition: var(--transition-base);
}

/* Focus Styles for Accessibility */
*:focus {
  outline: 2px solid var(--secondary-color);
  outline-offset: 2px;
}

button:focus,
.btn:focus {
  box-shadow: 0 0 0 0.2rem rgba(230, 126, 34, 0.5) !important;
}

/* Selection Color */
::selection {
  background: var(--secondary-color);
  color: #ffffff;
}

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

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

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

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

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