/* Architecture Studio - Forest Green & Amber Theme */

:root {
  --primary-color: #2E7D32;
  --secondary-color: #FFC107;
  --primary-dark: #1B5E20;
  --primary-light: #4CAF50;
  --secondary-dark: #FFA000;
  --secondary-light: #FFECB3;
  --text-dark: #212529;
  --text-light: #ffffff;
  --transition-speed: 0.3s;
}

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

html {
  scroll-behavior: smooth;
}

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

/* Navigation Styles */
.navbar {
  background-color: var(--primary-color) !important;
  transition: all var(--transition-speed) ease;
  padding: 1rem 0;
  z-index: 1000;
}

.navbar-dark .navbar-brand {
  color: var(--text-light) !important;
  font-size: 1.5rem;
  letter-spacing: 1px;
  transition: color var(--transition-speed) ease;
}

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

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

.navbar-light .navbar-brand {
  color: var(--primary-color) !important;
}

.navbar-light .nav-link {
  color: var(--primary-color) !important;
}

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

.navbar-toggler {
  border-color: var(--secondary-color) !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='%23FFC107' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.nav-link {
  color: var(--text-light) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  transition: all var(--transition-speed) ease;
  position: relative;
}

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

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

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

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

.architectural-lines {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0.1;
  overflow: hidden;
}

.line-drawing {
  position: absolute;
  background-color: var(--secondary-color);
  animation: drawLine 3s ease-in-out infinite;
}

@keyframes drawLine {
  0%, 100% { transform: scaleX(0); }
  50% { transform: scaleX(1); }
}

/* Typography */
.display-2,
.display-3,
.display-4,
.display-5,
.display-6 {
  font-weight: 700;
  color: var(--text-dark);
}

.text-white .display-2,
.text-white .display-3,
.text-white .display-4,
.text-white .display-5 {
  color: var(--text-light) !important;
}

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

/* Buttons */
.btn {
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all var(--transition-speed) ease;
  border-width: 2px;
}

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

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

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

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

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

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

.btn-outline-secondary:hover {
  background-color: var(--primary-color) !important;
  color: var(--text-light) !important;
}

.filter-btn {
  margin: 0.5rem;
  padding: 0.75rem 1.5rem;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 50px;
  border: 2px solid var(--secondary-color);
  border-radius: 25px;
  cursor: pointer;
  animation: bounce 2s infinite;
}

.scroll-indicator::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background-color: var(--secondary-color);
  border-radius: 50%;
  animation: scrollDot 2s infinite;
}

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

@keyframes scrollDot {
  0% { top: 10px; opacity: 1; }
  100% { top: 30px; opacity: 0; }
}

/* Cards and Portfolio */
.card {
  border: none;
  border-radius: 15px;
  overflow: hidden;
  transition: all var(--transition-speed) ease;
  background-color: var(--text-light);
}

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

.card-body {
  padding: 2rem;
}

.portfolio-card {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  cursor: pointer;
  height: 100%;
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(46, 125, 50, 0.95) 0%, transparent 100%);
  opacity: 0;
  transition: opacity var(--transition-speed) ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  color: var(--text-light);
}

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

.masonry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  grid-gap: 1.5rem;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 1.5rem;
}

/* Service Hexagons */
.hexagon-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 2rem 0;
}

.service-hex {
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hex-card {
  width: 100%;
  height: 100%;
  background: var(--text-light);
  border: 3px solid var(--primary-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-speed) ease;
  padding: 2rem;
  text-align: center;
}

.hex-card:hover {
  background: var(--primary-color);
  color: var(--text-light) !important;
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(46, 125, 50, 0.3);
}

.hex-card:hover .hex-icon {
  color: var(--secondary-color) !important;
}

.hex-icon {
  color: var(--primary-color);
  transition: color var(--transition-speed) ease;
}

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

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

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

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

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

.rounded-pill {
  border-radius: 50rem !important;
}

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

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

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

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

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

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

/* Background Colors */
.bg-light {
  background-color: #f8f9fa !important;
}

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

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

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

/* Text Colors */
.text-white {
  color: var(--text-light) !important;
}

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

.text-muted {
  color: #6c757d !important;
}

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

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

/* Links */
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-speed) ease;
}

a:hover {
  color: var(--secondary-color);
}

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

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

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

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

.fs-1 { font-size: 3rem !important; }
.fs-4 { font-size: 1.5rem !important; }
.fs-5 { font-size: 1.25rem !important; }

/* Forms */
.form-control,
.form-select {
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  transition: all var(--transition-speed) ease;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(46, 125, 50, 0.25);
  outline: none;
}

.form-label {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.form-check-input {
  border-color: var(--primary-color);
}

.form-check-input:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.form-check-label {
  color: var(--text-dark);
}

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

.list-unstyled li {
  padding: 0.5rem 0;
}

/* Blockquote */
blockquote {
  border-left: 4px solid var(--secondary-color);
  padding-left: 1.5rem;
  font-style: italic;
}

.blockquote-footer {
  color: #6c757d;
  font-size: 0.875rem;
}

/* Utilities */
.opacity-75 {
  opacity: 0.75 !important;
}

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

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

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

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

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

.fixed-top {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1030;
}

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

.top-0 { top: 0 !important; }
.top-50 { top: 50% !important; }
.bottom-0 { bottom: 0 !important; }
.start-0 { left: 0 !important; }
.start-50 { left: 50% !important; }
.end-0 { right: 0 !important; }

.translate-middle {
  transform: translate(-50%, -50%) !important;
}

.w-100 { width: 100% !important; }
.w-lg-auto { width: auto !important; }
.h-100 { height: 100% !important; }
.min-vh-100 { min-height: 100vh !important; }

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

.flex-column { flex-direction: column !important; }
.flex-wrap { flex-wrap: wrap !important; }
.flex-grow-1 { flex-grow: 1 !important; }
.flex-shrink-0 { flex-shrink: 0 !important; }

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

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

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

.fw-bold { font-weight: 700 !important; }
.fst-italic { font-style: italic !important; }
.lh-1 { line-height: 1 !important; }

/* Spacing */
.p-0 { padding: 0 !important; }
.p-4 { padding: 1.5rem !important; }
.p-5 { padding: 3rem !important; }
.px-3 { padding-left: 1rem !important; padding-right: 1rem !important; }
.px-4 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
.px-5 { padding-left: 3rem !important; padding-right: 3rem !important; }
.py-2 { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }
.py-3 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
.py-4 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
.py-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }
.pt-4 { padding-top: 1.5rem !important; }
.pt-5 { padding-top: 3rem !important; }
.pb-4 { padding-bottom: 1.5rem !important; }
.ps-2 { padding-left: 0.5rem !important; }
.ps-lg-5 { padding-left: 3rem !important; }

.m-0 { margin: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }
.mb-lg-0 { margin-bottom: 0 !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }
.ms-2 { margin-left: 0.5rem !important; }
.ms-3 { margin-left: 1rem !important; }
.ms-4 { margin-left: 1.5rem !important; }
.ms-auto { margin-left: auto !important; }
.me-2 { margin-right: 0.5rem !important; }
.me-3 { margin-right: 0.5rem !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }
.my-4 { margin-top: 1.5rem !important; margin-bottom: 1.5rem !important; }

.gap-3 { gap: 1rem !important; }
.g-0 { gap: 0 !important; }
.g-3 { gap: 1rem !important; }
.g-4 { gap: 1.5rem !important; }

/* Border */
.border-0 { border: 0 !important; }
.border-secondary { border-color: #6c757d !important; }
.border-top { border-top: 1px solid #dee2e6 !important; }

/* Grid System */
.container,
.container-fluid {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}

.col-12,
.col-6,
.col-sm-6,
.col-md-4,
.col-md-6,
.col-md-7,
.col-lg-2,
.col-lg-3,
.col-lg-4,
.col-lg-5,
.col-lg-6,
.col-lg-7,
.col-lg-8,
.col-lg-10 {
  position: relative;
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
}

.col-12 { flex: 0 0 100%; max-width: 100%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-50px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}

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

.fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

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

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

/* Responsive Design */
@media (min-width: 576px) {
  .col-sm-6 { flex: 0 0 50%; max-width: 50%; }
  .flex-sm-row { flex-direction: row !important; }
}

@media (min-width: 768px) {
  .col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  .col-md-6 { flex: 0 0 50%; max-width: 50%; }
  .col-md-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
  .mb-md-0 { margin-bottom: 0 !important; }
  .text-md-start { text-align: start !important; }
  .text-md-end { text-align: end !important; }
  .p-md-5 { padding: 3rem !important; }
}

@media (min-width: 992px) {
  .navbar-expand-lg { flex-wrap: nowrap; justify-content: flex-start; }
  .navbar-expand-lg .navbar-nav { flex-direction: row; }
  .navbar-expand-lg .navbar-collapse { display: flex !important; }
  .navbar-expand-lg .navbar-toggler { display: none; }
  
  .col-lg-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
  .col-lg-3 { flex: 0 0 25%; max-width: 25%; }
  .col-lg-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  .col-lg-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
  .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
  .col-lg-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
  .col-lg-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
  .col-lg-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
  
  .d-lg-block { display: block !important; }
  .mb-lg-0 { margin-bottom: 0 !important; }
  .ps-lg-5 { padding-left: 3rem !important; }
  .text-lg-end { text-align: end !important; }
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: var(--primary-color);
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
  }
  
  .nav-link::after {
    display: none;
  }
  
  .display-2 { font-size: 2.5rem; }
  .display-3 { font-size: 2rem; }
  .display-4 { font-size: 1.75rem; }
  .display-5 { font-size: 1.5rem; }
  .display-6 { font-size: 1.25rem; }
}

@media (max-width: 767.98px) {
  .btn-lg { padding: 0.75rem 2rem; font-size: 0.9rem; }
  .py-5 { padding-top: 2rem !important; padding-bottom: 2rem !important; }
  .px-5 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
}

@media (max-width: 575.98px) {
  .display-2 { font-size: 2rem; }
  .lead { font-size: 1.1rem; }
  .btn-lg { padding: 0.65rem 1.5rem; }
  .masonry-grid { grid-template-columns: 1fr; }
}

/* Smooth Transitions */
* {
  transition: background-color var(--transition-speed) ease,
              color var(--transition-speed) ease;
}

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

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Loading Animation */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.pulse {
  animation: pulse 2s ease-in-out infinite;
}

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

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

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

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

/* Print Styles */
@media print {
  .navbar,
  .btn,
  .scroll-indicator {
    display: none !important;
  }
}