/* Main CSS file for Structural Engineering Website */

/* Import component styles */
@import url('components/hero.css');
@import url('components/gallery.css');
@import url('components/filters.css');
@import url('components/language-switcher.css');
@import url('components/modal.css');

/* CSS Custom Properties for Design Tokens */
:root {
  /* Primary Colors */
  --color-primary: #ffffff;      /* White background */
  --color-text: #2d3748;         /* Charcoal/grey text */
  --color-accent: #3182ce;       /* Accent blue */
  --color-accent-hover: #2c5aa0; /* Darker blue for hovers */
  --color-light-gray: #f8f9fa;   /* Light gray background */
  --color-border: #e2e8f0;       /* Border color */

  /* Typography */
  --font-heading: 'Inter', sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;

  /* Breakpoints (for reference in media queries) */
  --breakpoint-sm: 576px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 992px;
  --breakpoint-xl: 1200px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* Reset and Base Styles */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background-color: var(--color-primary);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 1rem 0;
}

p {
  margin: 0 0 1rem 0;
}

img {
  max-width: 100%;
  height: auto;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Bootstrap Override and Utility Classes */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -0.5rem;
}

.col-12 {
  flex: 0 0 100%;
  max-width: 100%;
  padding: 0 0.5rem;
}

.col-md-6 {
  flex: 0 0 50%;
  max-width: 50%;
  padding: 0 0.5rem;
}

.col-lg-8 {
  flex: 0 0 66.666667%;
  max-width: 66.666667%;
  padding: 0 0.5rem;
}

.text-center {
  text-align: center;
}

.text-md-end {
  text-align: right;
}

.justify-content-center {
  justify-content: center;
}

.mb-0 {
  margin-bottom: 0;
}

.mb-3 {
  margin-bottom: 1rem;
}

.mb-4 {
  margin-bottom: 1.5rem;
}

.mt-5 {
  margin-top: 3rem;
}

.py-4 {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.py-5 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.bg-light {
  background-color: var(--color-light-gray) !important;
}

.bg-white {
  background-color: white !important;
}

.text-white {
  color: white !important;
}

.fw-bold {
  font-weight: 700;
}

.btn {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  margin-bottom: 0;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 0.375rem;
  transition: all 0.15s ease-in-out;
}

.btn-primary {
  color: white;
  background-color: var(--color-accent);
  border-color: var(--color-accent);
}

.btn-primary:hover {
  color: white;
  background-color: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
}

.btn-outline-primary {
  color: var(--color-accent);
  border-color: var(--color-accent);
  background-color: transparent;
}

.btn-outline-primary:hover {
  color: white;
  background-color: var(--color-accent);
  border-color: var(--color-accent);
}

.btn-sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
  border-radius: 0.25rem;
}

.btn-link {
  font-weight: 400;
  color: var(--color-accent);
  text-decoration: none;
  background-color: transparent;
  border: 0;
}

.btn-link:hover {
  color: var(--color-accent-hover);
  text-decoration: underline;
}

.text-primary-custom {
  color: var(--color-accent) !important;
}

.bg-primary-custom {
  background-color: var(--color-accent) !important;
}

.transition-all {
  transition: all var(--transition-normal);
}

.fixed-top {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1030;
}

.ms-auto {
  margin-left: auto;
}

.d-flex {
  display: flex;
}

.align-items-center {
  align-items: center;
}

.justify-content-center {
  justify-content: center;
}

.h-100 {
  height: 100%;
}

.me-auto {
  margin-right: auto;
}

.btn-close {
  background: none;
  border: none;
  font-size: 0.875rem;
  width: 1.25rem;
  height: 1.25rem;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.15s ease-in-out;
}

.btn-close:hover {
  opacity: 1;
}

/* Project modal close button - dark on light background */
#project-modal .btn-close {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='m.235 1.027 1.027-.235 6.738 6.738 6.738-6.738 1.027.235-6.738 6.738 6.738 6.738-1.027.235-6.738-6.738-6.738 6.738-1.027-.235 6.738-6.738-6.738-6.738z'/%3e%3c/svg%3e");
  opacity: 0.8;
}

#project-modal .btn-close:hover {
  opacity: 1;
}

/* Contact modal close button - dark on light background */
#contact-modal .btn-close {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='m.235 1.027 1.027-.235 6.738 6.738 6.738-6.738 1.027.235-6.738 6.738 6.738 6.738-1.027.235-6.738-6.738-6.738 6.738-1.027-.235 6.738-6.738-6.738-6.738z'/%3e%3c/svg%3e");
  opacity: 0.8;
}

#contact-modal .btn-close:hover {
  opacity: 1;
}

.spinner-border {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  vertical-align: text-bottom;
  border: 0.125em solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spinner-border 0.75s linear infinite;
}

.spinner-border-sm {
  width: 0.875rem;
  height: 0.875rem;
  border-width: 0.125em;
}

@keyframes spinner-border {
  to {
    transform: rotate(360deg);
  }
}

.alert {
  position: relative;
  padding: 0.75rem 1.25rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
  border-radius: 0.375rem;
}

.alert-success {
  color: #155724;
  background-color: #d4edda;
  border-color: #c3e6cb;
}

.alert-danger {
  color: #721c24;
  background-color: #f8d7da;
  border-color: #f5c6cb;
}

.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;
}

/* Component Styles - Consolidated for browser compatibility */

/* Filter Controls Component Styles */
.filter-controls {
  margin-bottom: 2rem;
  width: 100%;
}

.filter-section {
  margin-bottom: 1rem;
}

.filter-section-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.filter-btn {
  padding: 0.5rem 1rem;
  border: 1px solid var(--color-border);
  background: white;
  color: var(--color-text);
  border-radius: 25px;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.filter-btn:hover {
  background-color: var(--color-accent);
  color: white;
  border-color: var(--color-accent);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(49, 130, 206, 0.3);
}

.filter-btn.active {
  background-color: var(--color-accent);
  color: white;
  border-color: var(--color-accent);
  box-shadow: 0 2px 8px rgba(49, 130, 206, 0.3);
}

.filter-btn.active:hover {
  background-color: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
}

.filter-btn-count {
  margin-left: 0.5rem;
  font-size: 0.75rem;
  opacity: 0.8;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.125rem 0.375rem;
  border-radius: 12px;
  font-weight: 600;
}

.filter-btn:not(.active) .filter-btn-count {
  background: var(--color-light-gray);
  color: var(--color-text);
}

.filter-clear-btn {
  background: var(--color-light-gray);
  color: var(--color-text);
  border-color: var(--color-border);
  font-weight: 600;
}

.filter-clear-btn:hover {
  background: #dc2626;
  color: white;
  border-color: #dc2626;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

/* Search Bar Styles */
.search-container {
  position: relative;
  max-width: 600px;
  width: 100%;
  margin-bottom: 1.5rem;
}

.search-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  border: 2px solid var(--color-border);
  border-radius: 25px;
  font-size: 0.9rem;
  background: white;
  transition: all var(--transition-fast);
}

.search-input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 1rem;
}

/* Filter Row 1: Categories and Services */
.filter-row-1 {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

/* Filter Row 2: Structural Types */
.filter-row-2 {
  display: flex;
  align-items: flex-start;
}

/* Filter Dropdown Styles */
.filter-dropdown-container {
  position: relative;
  display: inline-block;
}

.filter-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--color-border);
  background: white;
  color: var(--color-text);
  border-radius: 25px;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
}

.filter-dropdown-btn:hover {
  background-color: var(--color-light-gray);
  border-color: var(--color-accent);
}

.filter-dropdown-btn.active {
  background-color: var(--color-accent);
  color: white;
  border-color: var(--color-accent);
}

.filter-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  display: none;
  max-height: 300px;
  overflow-y: auto;
}

.filter-dropdown-menu.show {
  display: block;
}

.filter-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: background-color var(--transition-fast);
  font-size: 0.875rem;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.filter-dropdown-item:hover {
  background-color: var(--color-light-gray);
}

.filter-dropdown-item.selected {
  background-color: rgba(49, 130, 206, 0.1);
  color: var(--color-accent);
  font-weight: 500;
}

.filter-dropdown-item input[type="checkbox"] {
  margin: 0;
  accent-color: var(--color-accent);
}

/* Structural Types Container */
.structural-types-container {
  width: 100%;
}

.structural-types-container .filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.structural-types-container .filter-btn {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* Active Filters Display */
.active-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--color-light-gray);
  border-radius: 8px;
  margin-top: 0.5rem;
}

.active-filters-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
}

.active-filters-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex: 1;
}

.active-filter-tag {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  background: var(--color-accent);
  color: white;
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: 500;
}

.active-filter-tag .remove-filter {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 0;
  margin-left: 0.25rem;
  font-size: 0.875rem;
  opacity: 0.8;
  transition: opacity var(--transition-fast);
}

.active-filter-tag .remove-filter:hover {
  opacity: 1;
}

.clear-all-btn {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.375rem 0.75rem;
  background: #dc2626;
  color: white;
  border: none;
  border-radius: 15px;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.clear-all-btn:hover {
  background: #b91c1c;
  transform: translateY(-1px);
}

.filter-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding: 1rem;
  background: var(--color-light-gray);
  border-radius: 8px;
  font-size: 0.875rem;
}

.filter-summary-text {
  color: var(--color-text);
  font-weight: 500;
}

.filter-summary-count {
  color: var(--color-accent);
  font-weight: 600;
}

.filter-toggle {
  display: none;
  background: var(--color-light-gray);
  border: 1px solid var(--color-border);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  margin-bottom: 1rem;
  width: 100%;
}

.filter-toggle:hover {
  background: var(--color-accent);
  color: white;
  border-color: var(--color-accent);
}

.filter-content {
  transition: all var(--transition-normal);
}

/* No Results Message */
.no-results-message {
  grid-column: 1 / -1;
  padding: var(--spacing-xl) var(--spacing-md);
  text-align: center;
  color: var(--color-text);
}

.no-results-message h4 {
  color: var(--color-text);
  font-weight: 600;
}

.no-results-message .text-muted {
  color: #6b7280 !important;
}

.no-results-message .btn {
  margin-top: var(--spacing-sm);
}

/* Language Switcher Styles */
.lang-indicator {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--color-accent);
  color: white;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.2rem;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.lang-indicator.show {
  opacity: 1;
}

.content-transitioning {
  transition: opacity 0.2s ease;
}

#language-switcher.switching {
  opacity: 0.7;
  transform: scale(0.95);
}

/* Header Styles */
.navbar {
  backdrop-filter: blur(20px);
  background: transparent !important;
  border-bottom: none;
  padding: 1rem 0;
  transition: all 0.8s ease;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
}

.navbar.scrolled {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%) !important;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(20px);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  position: relative;
}

/* Logo Section (Left) */
.navbar-logo-section {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.navbar-logo {
  height: 55px;
  width: auto;
  max-width: 250px;
  object-fit: contain;
  margin: -5px 0;
}



/* Navigation Section (Right) */
.navbar-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex: 0 0 auto;
}

.nav-link {
  color: white !important;
  font-weight: 600;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  transition: all var(--transition-fast);
  position: relative;
  font-size: 0.875rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: white !important;
  transform: translateY(-2px);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: white;
  transition: width var(--transition-fast);
}

.nav-link:hover::after {
  width: 80%;
}

/* Navigation Divider */
.nav-divider {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.3);
  margin: 0 0.5rem;
}

/* Language Switcher */
#language-switcher {
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: white;
  border-radius: 25px;
  font-weight: 600;
  transition: all var(--transition-fast);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

#language-switcher:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: white;
  transform: translateY(-2px);
}

/* Hero Section Styles */
.hero-section {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 0;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../assets/images/hero/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(44, 62, 80, 0.7) 0%, rgba(52, 152, 219, 0.5) 50%, rgba(44, 62, 80, 0.7) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content .container {
  max-width: 1200px;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content .row {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.hero-text-container {
  text-align: center;
  padding: 2rem;
}

.hero-tagline {
  font-size: 3.5rem;
  font-weight: 300;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease forwards;
  color: white;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
}

.hero-tagline:nth-child(1) { animation-delay: 0.2s; }
.hero-tagline:nth-child(2) { animation-delay: 0.4s; }
.hero-tagline:nth-child(3) { animation-delay: 0.6s; }
.hero-tagline:nth-child(4) { animation-delay: 0.8s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.scroll-indicator {
  position: absolute;
  bottom: 4rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.scroll-indicator button {
  color: white !important;
  text-decoration: none;
  font-size: 1.1rem;
  animation: bounce 2s infinite;
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.scroll-indicator button:hover {
  color: rgba(255, 255, 255, 0.8) !important;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Gallery Section Styles */
.gallery-section {
  padding: 8rem 0 4rem 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
  scroll-margin-top: 80px;
}

.gallery-section .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.gallery-section h2 {
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 4rem;
  text-align: center;
  position: relative;
}

.gallery-section h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--color-accent) 0%, #764ba2 100%);
  border-radius: 2px;
}

/* View Toggle Styles */
.view-toggle-container {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 2rem;
}

.view-toggle {
  display: inline-flex;
  background: var(--color-light-gray);
  border-radius: 8px;
  padding: 4px;
  border: 1px solid var(--color-border);
}

.view-toggle-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: none;
  background: transparent;
  color: var(--color-text);
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: 0.875rem;
  font-weight: 500;
}

.view-toggle-btn:hover {
  background: rgba(49, 130, 206, 0.1);
  color: var(--color-accent);
}

.view-toggle-btn.active {
  background: var(--color-accent);
  color: white;
  box-shadow: 0 2px 4px rgba(49, 130, 206, 0.2);
}

.view-toggle-btn i {
  font-size: 1rem;
}

/* Map Styles */
.map-container {
  position: relative;
  height: 600px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.project-map {
  width: 100%;
  height: 300px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  z-index: 1;
}

.map-project-info {
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  max-width: 300px;
  z-index: 1000;
  opacity: 0;
  transform: translateY(-10px);
  transition: all var(--transition-normal);
  pointer-events: none;
}

.map-project-info.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.map-project-info-content {
  padding: var(--spacing-md);
}

.map-project-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.map-project-category {
  font-size: 0.875rem;
  color: var(--color-accent);
  font-weight: 500;
  text-transform: capitalize;
  margin-bottom: 0.5rem;
}

.map-project-details {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 0.75rem;
}

.map-project-actions {
  display: flex;
  gap: 0.5rem;
}

.map-project-btn {
  padding: 0.375rem 0.75rem;
  border: 1px solid var(--color-accent);
  background: transparent;
  color: var(--color-accent);
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.map-project-btn:hover {
  background: var(--color-accent);
  color: white;
}

.map-project-btn.primary {
  background: var(--color-accent);
  color: white;
}

.map-project-btn.primary:hover {
  background: var(--color-accent-hover);
}

/* Custom Leaflet Marker Styles */
.custom-marker {
  background: var(--color-accent);
  border: 3px solid white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.custom-marker:hover {
  transform: scale(1.2);
  background: var(--color-accent-hover);
}

.custom-marker.active {
  background: #dc2626;
  transform: scale(1.3);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

/* Grayscale Map Tiles */
.map-grayscale {
  filter: grayscale(100%) contrast(1.1) brightness(1.1);
  transition: filter 0.3s ease;
}

/* Map scroll hint overlay */
.map-scroll-hint {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  font-size: 0.75rem;
  pointer-events: none;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-map:hover .map-scroll-hint {
  opacity: 1;
}

/* Project Grid Styles */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-auto-rows: 250px;
  gap: 1rem;
  margin-bottom: 4rem;
  width: 100%;
  grid-auto-flow: row dense;
}

/* Dynamic tile sizing based on JSON tileSize data */
.project-tile[data-width="1"] {
  grid-column: span 1;
}

.project-tile[data-width="2"] {
  grid-column: span 2;
}

.project-tile[data-height="1"] {
  grid-row: span 1;
}

.project-tile[data-height="2"] {
  grid-row: span 2;
}

.project-tile {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition-normal);
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  height: 100%;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
}

.project-tile:hover {
  transform: translateY(-8px) scale(1.01) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2) !important;
  z-index: 10;
}

.project-tile-image-container {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  flex: 1;
}

.project-tile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
  display: block;
}

.project-tile:hover .project-tile-image {
  transform: scale(1.08) !important;
}

/* Featured vs Basic Project Styles */
.project-tile-featured {
  /* Featured projects have full interactivity */
}

.project-tile-basic {
  /* Basic projects have reduced visual emphasis */
  opacity: 0.85;
  cursor: default !important;
}

.project-tile-basic:hover {
  /* Reduce hover effects for basic projects */
  transform: translateY(-2px) scale(1.005) !important;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15) !important;
}

.project-tile-basic .project-tile-overlay {
  /* Add subtle indicator for basic projects */
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0.6) 50%,
    rgba(0, 0, 0, 0.3) 100%
  );
}

.project-tile-basic .project-tile-title::after {
  /* Add visual indicator that project is not expandable */
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  margin-left: 8px;
  vertical-align: middle;
}

.project-tile-placeholder {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2.5rem;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, var(--color-accent) 0%, #764ba2 100%);
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
}

.project-tile-placeholder::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.1);
  pointer-events: none;
}

.project-tile-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  color: white;
  padding: 2rem;
  transform: translateY(100%);
  transition: transform var(--transition-normal);
}

.project-tile:hover .project-tile-overlay {
  transform: translateY(0) !important;
}

.project-tile-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.2;
  color: white;
}

.project-tile-info {
  font-size: 0.875rem;
  opacity: 0.95;
}

.project-tile-category {
  font-weight: 500;
  margin-bottom: 0.25rem;
  text-transform: capitalize;
  color: rgba(255, 255, 255, 0.9);
}

.project-tile-details {
  margin-bottom: 0.25rem;
  opacity: 0.8;
  color: rgba(255, 255, 255, 0.8);
}

.project-tile-year {
  font-size: 0.75rem;
  opacity: 0.7;
  color: rgba(255, 255, 255, 0.7);
}

/* Loading Indicator */
.loading-indicator {
  opacity: 0;
  transition: opacity var(--transition-normal);
  padding: var(--spacing-lg) 0;
}

.loading-indicator.show {
  opacity: 1;
}

.loading-indicator .spinner-border {
  width: 2rem;
  height: 2rem;
  color: var(--color-accent);
}

/* Smooth project tile animations */
.project-tile {
  transition: all var(--transition-normal), opacity 0.5s ease, transform 0.5s ease;
}

/* Lazy Loading Image Styles */
.lazy-image {
  transition: opacity 0.3s ease;
}

.lazy-image.loading {
  opacity: 0.7;
  filter: blur(2px);
}

.lazy-image.loaded {
  opacity: 1;
  filter: none;
}

.lazy-image.error {
  opacity: 0.5;
}

/* Loading placeholder styles */
.project-tile-image[src*="data:image/svg+xml"] {
  background-color: var(--color-light-gray);
  opacity: 0.8;
}

/* Modal Styles */
.modal-xl {
  max-width: 90vw;
}

.modal-content {
  border-radius: 12px;
  border: none;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.modal-header {
  border-bottom: 1px solid var(--color-border);
  padding: var(--spacing-md);
}

.modal-body {
  padding: var(--spacing-md);
}

.modal-title {
  font-family: var(--font-heading);
  font-weight: 600;
}

/* Project Modal Specific Styles */
.project-modal-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
  padding: var(--spacing-md);
  min-height: auto;
  max-height: 85vh;
  overflow-y: auto;
}

.project-modal-images {
  position: relative;
}

.project-modal-details {
  padding: var(--spacing-sm);
  overflow-y: visible;
  height: auto;
}

/* Image Gallery Styles */
.project-modal-gallery {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: var(--spacing-md);
}

.project-modal-main-image-container {
  position: relative;
  background: #f8f9fa;
}

.project-modal-main-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

.image-gallery-controls {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.project-modal-main-image-container:hover .image-gallery-controls {
  opacity: 1;
  pointer-events: all;
}

.gallery-nav-btn {
  background: rgba(0, 0, 0, 0.7);
  border: none;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 var(--spacing-sm);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.gallery-nav-btn:hover {
  background: rgba(0, 0, 0, 0.9);
}

.gallery-nav-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.gallery-fullscreen-btn {
  position: absolute;
  top: var(--spacing-sm);
  right: var(--spacing-sm);
  background: rgba(0, 0, 0, 0.7);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.gallery-fullscreen-btn:hover {
  background: rgba(0, 0, 0, 0.9);
}

.project-modal-thumbnails {
  display: flex;
  gap: var(--spacing-xs);
  margin-top: var(--spacing-sm);
  overflow-x: auto;
  padding-bottom: var(--spacing-xs);
}

.project-modal-thumbnail {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity var(--transition-fast);
  flex-shrink: 0;
  border: 2px solid transparent;
}

.project-modal-thumbnail:hover,
.project-modal-thumbnail.active {
  opacity: 1;
  border-color: var(--color-accent);
}

/* Project Details Styles */
.project-details-header {
  margin-bottom: var(--spacing-lg);
}

.project-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  color: var(--color-text);
}

.project-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
}

.project-meta-item {
  padding: var(--spacing-sm);
  background: var(--color-light-gray);
  border-radius: 6px;
  text-align: center;
}

.project-meta-label {
  font-size: 0.875rem;
  color: #666;
  margin-bottom: 0.25rem;
  display: block;
}

.project-meta-value {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--color-text);
}

.project-details-section {
  margin-bottom: var(--spacing-md);
}

.project-details-section h3 {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-sm);
  color: var(--color-accent);
  font-weight: 600;
}

.project-description {
  line-height: 1.6;
  color: var(--color-text);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
}

.project-tag {
  padding: 0.25rem 0.75rem;
  background: var(--color-accent);
  color: white;
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: 500;
}

.project-services {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
}

.project-service {
  padding: 0.5rem 1rem;
  background: var(--color-light-gray);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 0.875rem;
  color: var(--color-text);
}

/* Location Section */
.project-location-section {
  margin-top: var(--spacing-lg);
}

.project-location-section h4 {
  font-size: 1.1rem;
  margin-bottom: var(--spacing-sm);
  color: var(--color-accent);
  font-weight: 600;
}

.project-location-info p {
  margin-bottom: var(--spacing-sm);
  color: var(--color-text);
  font-weight: 500;
}



/* Specific styling for project location map in modal */
#project-location-map {
  height: 120px;
  width: 100%;
}

/* Related Projects */
.related-projects {
  margin-top: var(--spacing-lg);
  padding-top: var(--spacing-lg);
  border-top: 1px solid var(--color-border);
}

.related-projects h3 {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-sm);
  color: var(--color-accent);
  font-weight: 600;
}

.related-projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--spacing-sm);
  margin-top: var(--spacing-sm);
}

.related-project-item {
  cursor: pointer;
  border-radius: 6px;
  overflow: hidden;
  transition: transform var(--transition-fast);
  border: 1px solid var(--color-border);
}

.related-project-item:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.related-project-image {
  width: 100%;
  height: 100px;
  object-fit: cover;
}

.related-project-title {
  padding: var(--spacing-xs);
  font-size: 0.875rem;
  text-align: center;
  background: var(--color-light-gray);
  color: var(--color-text);
}

/* Fullscreen Image Modal */
#fullscreen-image-modal .modal-content {
  background: rgba(0, 0, 0, 0.95);
  border: none;
}

#fullscreen-image-modal .modal-header {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 1050;
  border: none;
  padding: 0;
  background: none;
}

#fullscreen-image-modal .btn-close {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  opacity: 1;
}

#fullscreen-image-modal .btn-close:hover {
  background: rgba(255, 255, 255, 1);
}

#fullscreen-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  cursor: pointer;
}

/* Allow clicking on the modal body to close */
#fullscreen-image-modal .modal-body {
  cursor: pointer;
}

/* Contact Modal Styles */
.modal-lg {
  max-width: 1000px;
}

.contact-modal-content-new {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  padding: 1rem;
}

.contact-form-main {
  padding: 1.5rem;
}

.contact-form-main h4 {
  margin-bottom: 0.5rem;
  color: var(--color-accent);
  font-weight: 600;
  font-size: 1.5rem;
}

.contact-form-subtitle {
  color: #666;
  margin-bottom: 2rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.contact-info-compact {
  background: var(--color-light-gray);
  padding: 1.25rem;
  border-radius: 8px;
}

.contact-info-compact h5 {
  margin-bottom: 1rem;
  color: var(--color-accent);
  font-weight: 600;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-details-compact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.5rem;
}

.contact-item-compact {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.contact-item-compact i {
  color: var(--color-accent);
  font-size: 1.1rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.contact-item-compact strong {
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.9rem;
}

.contact-item-compact span,
.contact-item-compact a {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.4;
}

.contact-item-compact a {
  color: var(--color-accent);
  text-decoration: none;
}

.contact-item-compact a:hover {
  text-decoration: underline;
}

/* Responsive contact details */
@media (max-width: 768px) {
  .contact-details-compact {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.form-label {
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 0.5rem;
  display: block;
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 0.2rem rgba(49, 130, 206, 0.25);
}

.mb-3 {
  margin-bottom: 1rem;
}

.mt-3 {
  margin-top: 1rem;
}

.contact-info h4 {
  margin-bottom: var(--spacing-md);
  color: var(--color-accent);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.contact-info h5 {
  margin-bottom: var(--spacing-sm);
  color: var(--color-accent);
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.contact-details {
  margin-bottom: var(--spacing-lg);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
  padding: var(--spacing-sm);
  background: rgba(255, 255, 255, 0.7);
  border-radius: 6px;
  border-left: 3px solid var(--color-accent);
}

.contact-item:last-child {
  margin-bottom: 0;
}

.contact-item i {
  color: var(--color-accent);
  font-size: 1.1rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.contact-item-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.contact-item-content strong {
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.875rem;
}

.contact-item-content span {
  color: #666;
  font-size: 0.875rem;
  line-height: 1.4;
}

.map-section {
  margin-top: var(--spacing-lg);
  padding-top: var(--spacing-lg);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.contact-link {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.contact-link:hover {
  color: var(--color-accent-hover);
  text-decoration: underline;
}

.contact-map {
  height: 200px;
  border-radius: 8px;
  overflow: hidden;
  margin-top: var(--spacing-md);
  border: 1px solid var(--color-border);
}

.map-fallback {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  color: #6c757d;
}

.map-fallback i {
  font-size: 2rem;
  margin-bottom: var(--spacing-sm);
}

/* Form Styles */
.contact-form .form-label {
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.contact-form .form-control {
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 0.75rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.contact-form .form-control:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 0.2rem rgba(49, 130, 206, 0.25);
}

.contact-form .form-control.is-valid {
  border-color: #28a745;
}

.contact-form .form-control.is-invalid {
  border-color: #dc3545;
}

.contact-submit-btn {
  background: var(--color-accent);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 500;
  transition: background-color var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
}

.contact-submit-btn:hover:not(:disabled) {
  background: var(--color-accent-hover);
}

.contact-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.submit-spinner {
  width: 1rem;
  height: 1rem;
}

/* Form Status Messages */
#contact-form-status .alert {
  margin-bottom: 0;
  border-radius: 6px;
}

/* Footer Styles */
.footer-section {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  color: white;
  margin-top: 4rem;
  padding: 2rem 0 1rem 0;
}

.footer-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: 1.5rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-heading {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: white;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-text {
  font-size: 0.8rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1rem;
  max-width: 250px;
}

/* Social Links */
.footer-social {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: 6px;
  text-decoration: none;
  transition: all var(--transition-fast);
  font-size: 0.9rem;
}

.social-btn:hover {
  background: var(--color-accent);
  color: white;
  transform: translateY(-1px);
}

/* Footer Links */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: white;
  text-decoration: underline;
}

/* Footer Contact */
.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.3;
}

.contact-row i {
  color: var(--color-accent);
  font-size: 0.85rem;
  margin-top: 0.1rem;
  flex-shrink: 0;
  width: 12px;
  text-align: center;
}

.contact-row a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.contact-row a:hover {
  color: white;
  text-decoration: underline;
}

/* Footer Services */
.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-list li {
  margin-bottom: 0.4rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
  position: relative;
  padding-left: 0.8rem;
  line-height: 1.3;
}

.footer-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: bold;
  font-size: 0.9rem;
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 0;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0 1rem;
}

.footer-copyright {
  margin: 0;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.75rem;
  transition: color var(--transition-fast);
}

.footer-btn {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
}

.footer-link:hover {
  color: white;
}

.footer-separator {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.75rem;
}

.footer-bottom-link:hover {
  color: white;
  text-decoration: underline;
}

.footer-divider {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.75rem;
  margin: 0 0.25rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
  /* Project grid styles moved to gallery.css */
  
  .hero-tagline {
    font-size: 2.5rem;
  }
}

@media (max-width: 992px) {
  .gallery-section {
    padding: 4rem 0 3rem 0;
  }
  
  .gallery-section h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
  }
  
  /* Project grid styles moved to gallery.css */
  
  .hero-tagline {
    font-size: 2.2rem;
  }
  
  /* Footer tablet responsive */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
  
  .footer-col:last-child {
    grid-column: 1 / -1;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .navbar .container {
    padding: 0 1rem;
    flex-direction: column;
    gap: 1rem;
  }
  

  
  .navbar-logo-section {
    order: 0;
  }
  
  .navbar-nav {
    gap: 1rem;
    order: 2;
    justify-content: center;
  }
  
  .nav-link {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
  
  .nav-divider {
    height: 15px;
  }
  
  .hero-tagline {
    font-size: 2.2rem;
    margin-bottom: 1rem;
  }
  
  .hero-text-container {
    padding: 1rem;
  }
  
  .contact-modal-content {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .contact-form {
    order: 1;
    padding: 0.5rem;
  }
  
  .contact-info {
    order: 2;
    padding: 1rem;
  }
  
  /* Footer responsive */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }
  
  .footer-text {
    max-width: none;
    margin: 0 auto 1rem auto;
  }
  
  .footer-social {
    justify-content: center;
  }
  
  .footer-bottom-row {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
  
  .gallery-section {
    padding: 3rem 0 2rem 0;
  }
  
  .gallery-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
  }
  
  /* Project grid styles moved to gallery.css for better organization */
  
  .filter-buttons {
    justify-content: center;
  }
  
  .modal-xl {
    max-width: 95vw;
  }
  
  /* View toggle responsive */
  .view-toggle-container {
    justify-content: center;
    margin-bottom: 1rem;
  }
  
  .view-toggle-btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.8rem;
  }
  
  /* Map responsive */
  .map-container {
    height: 400px;
  }
  
  .map-project-info {
    position: fixed;
    top: auto;
    bottom: 2rem;
    right: 1rem;
    left: 1rem;
    max-width: none;
  }
  
  /* Filter responsive */
  .filter-toggle {
    display: block;
  }
  
  .filter-row-1 {
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
  }
  
  .filter-dropdown-container {
    width: 100%;
  }
  
  .filter-dropdown-btn {
    width: 100%;
    justify-content: space-between;
  }
  
  .search-container {
    max-width: 100%;
  }
  
  .active-filters {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .filter-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
  }
  
  .filter-content.show {
    max-height: 500px;
    opacity: 1;
    margin-top: 1rem;
  }
  
  .filter-btn {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
  }
  
  .filter-summary {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
  
  /* Contact Modal responsive */
  .contact-modal-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .contact-info {
    order: 2;
  }
  
  .contact-form {
    order: 1;
    padding: 0;
  }
  
  .contact-map {
    height: 150px;
  }
  
  /* Project Modal responsive */
  .project-modal-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1rem;
  }
  
  .project-modal-details {
    max-height: none;
    overflow-y: visible;
  }
  
  .project-modal-main-image {
    height: 250px;
  }
  
  .project-meta-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .project-title {
    font-size: 1.5rem;
  }
  
  .related-projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .project-modal-thumbnails {
    justify-content: center;
  }
  
  /* Footer responsive */
  footer .row {
    flex-direction: column;
    text-align: center;
  }
  
  footer .text-md-end {
    text-align: center;
  }
}

@media (max-width: 576px) {
  .hero-tagline {
    font-size: 1.5rem;
    margin-bottom: 0.6rem;
  }
  
  .hero-content {
    padding: 0 1rem;
  }
  
  .gallery-section .container {
    padding: 0 0.5rem;
  }
  
  .gallery-section h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
  }
  
  .filter-btn {
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
  }
  
  .filter-btn-count {
    font-size: 0.65rem;
    padding: 0.1rem 0.3rem;
  }
  
  .filter-section-title {
    font-size: 0.8rem;
  }
  
  /* Project grid styles moved to gallery.css */
  
  .project-meta-grid {
    grid-template-columns: 1fr;
  }
  
  .project-modal-main-image {
    height: 200px;
  }
  
  .project-title {
    font-size: 1.25rem;
  }
  
  .navbar .container {
    padding: 0 0.5rem;
  }
  

  
  #language-switcher {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
  }
  
  .col-md-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  .text-md-end {
    text-align: center;
    margin-top: 1rem;
  }
  
  .col-lg-8 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  /* Compact footer for very small screens */
  .footer-section {
    padding: 2rem 0 0 0;
  }
  
  .footer-content {
    gap: 1rem;
  }
  
  .footer-title {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
  }
  
  .footer-description {
    font-size: 0.75rem;
    margin-bottom: 0.75rem;
  }
  
  .contact-item-footer {
    font-size: 0.75rem;
    gap: 0.4rem;
  }
  
  .footer-services li {
    font-size: 0.75rem;
    margin-bottom: 0.3rem;
  }
  
  .footer-social {
    gap: 0.5rem;
  }
  
  .social-link {
    width: 28px;
    height: 28px;
    font-size: 0.9rem;
  }
  
  .footer-bottom {
    padding: 0.75rem 0;
    margin-top: 1rem;
  }
  
  .footer-copyright,
  .footer-bottom-link {
    font-size: 0.7rem;
  }
}  /* 
Contact Modal responsive */
  .contact-modal-content-new {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .contact-form-main {
    order: 1;
    padding: 1rem;
  }
  
  .contact-info-compact {
    order: 2;
    padding: 1rem;
  }
  
  /* Footer responsive */
  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .footer-column {
    text-align: left;
  }
  
  .footer-title {
    text-align: left;
  }
  
  .contact-item-footer {
    justify-content: flex-start;
    text-align: left;
  }
  
  .footer-services {
    text-align: left;
  }
  
  .footer-services li::before {
    content: '▸';
    left: 0;
    right: auto;
  }
/*
 Mobile Menu Compact Styles */

/* Hide desktop navigation on mobile and tablet */
@media (max-width: 991px) {
  /* Hide desktop navigation on mobile and tablet */
  .navbar-nav {
    display: none !important;
  }
  
  /* Show mobile navigation controls */
  .mobile-nav-controls {
    display: flex !important;
    align-items: center;
    gap: 1rem;
  }
  
  /* Hide external mobile language switcher on mobile and tablet */
  .mobile-language-switcher {
    display: none !important;
  }
}

/* Hide mobile controls on desktop */
@media (min-width: 992px) {
  .mobile-nav-controls {
    display: none !important;
  }
  
  .mobile-menu-overlay {
    display: none !important;
  }
}

/* Mobile and Tablet Navigation Layout */
@media (max-width: 991px) {
  .navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
  }
  
  .navbar-logo-section {
    flex: 0 0 auto; /* Logo aligned to left */
  }
  
  .mobile-nav-controls {
    flex: 0 0 auto; /* Hamburger aligned to right */
  }
  
  /* Adjust logo size to match hamburger visual weight */
  .navbar-logo {
    height: 58px; /* Optimized to balance with hamburger button */
    width: auto;
    max-width: 220px;
    object-fit: contain;
    margin: 0; /* Remove negative margin for better alignment */
  }
  
  /* Ensure hamburger button is properly sized */
  .hamburger-btn {
    width: 28px;
    height: 28px;
    padding: 4px;
  }
}

/* Hamburger Menu Button Styles */
.hamburger-btn {
  width: 26px;
  height: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 3px;
  border-radius: 4px;
  transition: all var(--transition-fast);
}

.hamburger-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.hamburger-line {
  width: 100%;
  height: 2px;
  background: white;
  border-radius: 1px;
  transition: all 0.3s ease;
  transform-origin: center;
}

/* Hamburger animation to X when open */
.hamburger-btn.open .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-btn.open .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

.hamburger-btn.open .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Language Switcher positioning */
.mobile-language-switcher {
  font-size: 0.75rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: white;
  border-radius: 25px;
  font-weight: 600;
  transition: all var(--transition-fast);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-left: 0.5rem;
}

.mobile-language-switcher:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: white;
  color: white;
}/* Mobil
e Menu Overlay Styles */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.mobile-menu-overlay.open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-content {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  color: white;
  padding: 2rem;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
  min-height: 300px;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.mobile-menu-overlay.open .mobile-menu-content {
  transform: translateY(0);
}

.mobile-menu-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-menu-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
  color: white;
  font-family: var(--font-heading);
}

.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-menu-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  transition: all var(--transition-fast);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
}

.mobile-menu-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  transform: translateX(5px);
}

.mobile-menu-item i {
  font-size: 1.2rem;
  width: 24px;
  text-align: center;
}

/* Prevent body scroll when mobile menu is open */
body.menu-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

/* Performance optimizations for mobile menu animations */

/* Use hardware acceleration for smooth animations */
.mobile-menu-overlay,
.mobile-menu-content,
.hamburger-line {
  will-change: transform, opacity;
  backface-visibility: hidden;
  perspective: 1000px;
}

/* Optimize hamburger button animations */
.hamburger-btn {
  transform: translateZ(0); /* Force hardware acceleration */
}

.hamburger-line {
  transform: translateZ(0); /* Force hardware acceleration */
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  .mobile-menu-overlay,
  .mobile-menu-content,
  .hamburger-line,
  .hamburger-btn {
    transition: none !important;
    animation: none !important;
  }
  
  .mobile-menu-overlay.open .mobile-menu-content {
    transform: translateY(0);
  }
  
  .hamburger-btn.open .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }
  
  .hamburger-btn.open .hamburger-line:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger-btn.open .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }
}

/* Optimize for touch devices */
@media (hover: none) and (pointer: coarse) {
  .mobile-menu-item {
    min-height: 44px; /* Ensure touch targets are at least 44px */
    padding: 1rem 1.5rem;
  }
  
  .hamburger-btn {
    min-width: 44px;
    min-height: 44px;
    padding: 7px;
  }
  
  .mobile-language-switcher {
    min-height: 44px;
    padding: 0.6rem 1rem;
  }
}/* R
esponsive testing and device-specific optimizations */

/* Extra small devices (phones in portrait, less than 576px) */
@media (max-width: 575px) {
  .mobile-nav-controls {
    gap: 0.75rem;
  }
  
  .mobile-language-switcher {
    font-size: 0.7rem;
    padding: 0.35rem 0.7rem;
  }
  
  .hamburger-btn {
    width: 28px;
    height: 28px;
  }
  
  .mobile-menu-content {
    padding: 1.5rem;
  }
  
  .mobile-menu-item {
    padding: 0.875rem 1rem;
    font-size: 1rem;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767px) {
  .mobile-nav-controls {
    gap: 1rem;
  }
  
  .mobile-menu-content {
    padding: 2rem;
    max-width: 400px;
    margin: 0 auto;
  }
}

/* Landscape orientation specific styles */
@media (max-width: 767px) and (orientation: landscape) {
  .mobile-menu-content {
    padding: 1rem 2rem;
    max-height: 80vh;
    overflow-y: auto;
  }
  
  .mobile-menu-header {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
  }
  
  .mobile-menu-title {
    font-size: 1.25rem;
  }
  
  .mobile-menu-item {
    padding: 0.75rem 1rem;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hamburger-line {
    height: 1.5px; /* Thinner lines on high DPI displays */
  }
}

/* Ensure mobile menu works on very wide mobile devices */
@media (max-width: 767px) and (min-width: 600px) {
  .mobile-menu-content {
    max-width: 500px;
    margin: 0 auto;
  }
}

/* Fix for devices with notches or safe areas */
@supports (padding: max(0px)) {
  @media (max-width: 767px) {
    .navbar .container {
      padding-left: max(1rem, env(safe-area-inset-left));
      padding-right: max(1rem, env(safe-area-inset-right));
    }
    
    .mobile-menu-content {
      padding-left: max(2rem, env(safe-area-inset-left));
      padding-right: max(2rem, env(safe-area-inset-right));
      padding-top: max(2rem, env(safe-area-inset-top));
    }
  }
}/* M
obile menu language switcher and divider */
.mobile-menu-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
  margin: 0.5rem 1rem;
}

.mobile-menu-language-switcher {
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  color: white;
  font-family: inherit;
  cursor: pointer;
}

.mobile-menu-language-switcher:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
}

.mobile-menu-language-switcher i {
  color: rgba(255, 255, 255, 0.8);
}

.mobile-menu-language-switcher span {
  color: white;
}