/* Slate & Steel Architecture Studio - Custom Styles */

/* ===== ROOT VARIABLES ===== */
:root {
  --primary-color: #2D3748;
  --secondary-color: #4A90A4;
  --light-gray: #E2E8F0;
  --dark-gray: #1A202C;
  --white: #FFFFFF;
  --text-primary: #2D3748;
  --text-secondary: #718096;
  --transition-speed: 0.3s;
  --shadow-sm: 0 2px 8px rgba(45, 55, 72, 0.1);
  --shadow-md: 0 4px 16px rgba(45, 55, 72, 0.15);
  --shadow-lg: 0 8px 32px rgba(45, 55, 72, 0.2);
}

/* ===== GLOBAL STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

html {
  scroll-behavior: smooth;
}

/* ===== TYPOGRAPHY ===== */
.display-2, .display-3, .display-4, .display-5, .display-6 {
  font-weight: 700 !important;
  letter-spacing: -0.02em;
  color: var(--primary-color) !important;
}

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

.lead {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text-secondary) !important;
}

.fs-4, .fs-5 {
  color: var(--text-secondary) !important;
}

.text-white.fs-4, .text-white.fs-5 {
  color: rgba(255, 255, 255, 0.9) !important;
}

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

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

h3, .h3 {
  color: var(--primary-color) !important;
  font-weight: 600;
}

h4, .h4 {
  color: var(--primary-color) !important;
  font-weight: 600;
}

h5, .h5 {
  color: var(--primary-color) !important;
  font-weight: 600;
}

h6, .h6 {
  color: var(--text-primary) !important;
  font-weight: 600;
}

/* ===== NAVIGATION ===== */
.navbar {
  padding: 1rem 0;
  transition: all var(--transition-speed) ease;
  box-shadow: var(--shadow-sm);
}

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

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

.bg-white.navbar {
  border-bottom: 1px solid var(--light-gray);
}

.sticky-top {
  box-shadow: var(--shadow-md);
}

.navbar-brand {
  font-size: 1.5rem;
  color: var(--white) !important;
  letter-spacing: 0.05em;
  transition: all var(--transition-speed) ease;
}

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

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

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

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem rgba(74, 144, 164, 0.25) !important;
}

.navbar-toggler-icon {
  width: 1.5em;
  height: 1.5em;
}

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

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

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

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

.nav-link.active {
  color: var(--white) !important;
  font-weight: 600;
}

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

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

/* ===== BUTTONS ===== */
.btn {
  font-weight: 600 !important;
  letter-spacing: 0.02em;
  border-radius: 8px;
  transition: all var(--transition-speed) ease;
  border-width: 2px !important;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
  z-index: -1;
}

.btn:hover::before {
  left: 100%;
}

.btn-lg {
  padding: 0.875rem 2rem !important;
  font-size: 1.125rem !important;
}

.btn-sm {
  padding: 0.375rem 1rem !important;
  font-size: 0.875rem !important;
}

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

.btn-primary:hover,
.btn-primary:focus {
  background-color: #3d7a8a !important;
  border-color: #3d7a8a !important;
  color: var(--white) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

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

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

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

/* ===== HERO SECTION ===== */
.position-relative.overflow-hidden {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary-color) 0%, #1A202C 100%);
  position: relative;
}

.portfolio-hero {
  min-height: 60vh;
  background: linear-gradient(135deg, var(--primary-color) 0%, #1A202C 100%);
}

.position-absolute.w-100.h-100 {
  background-image: 
    linear-gradient(45deg, rgba(45, 55, 72, 0.95) 0%, rgba(26, 32, 44, 0.85) 100%),
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(74, 144, 164, 0.03) 2px, rgba(74, 144, 164, 0.03) 4px);
  z-index: 0;
}

.architectural-line {
  position: absolute;
  background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
  opacity: 0.15;
  animation: lineMove 20s linear infinite;
}

.line-1 {
  width: 100%;
  height: 1px;
  top: 20%;
  left: 0;
  animation-delay: 0s;
}

.line-2 {
  width: 1px;
  height: 100%;
  top: 0;
  left: 30%;
  animation: lineMove 25s linear infinite;
  animation-delay: 5s;
}

.line-3 {
  width: 100%;
  height: 1px;
  top: 60%;
  left: 0;
  animation-delay: 10s;
}

.line-4 {
  width: 1px;
  height: 100%;
  top: 0;
  right: 20%;
  left: auto;
  animation: lineMove 30s linear infinite;
  animation-delay: 15s;
}

@keyframes lineMove {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  50% {
    opacity: 0.15;
  }
  100% {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* ===== CARDS ===== */
.card {
  border-radius: 12px;
  transition: all var(--transition-speed) ease;
  border: 1px solid var(--light-gray) !important;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg) !important;
}

.card-body {
  padding: 2rem;
}

.border-0 {
  border: none !important;
}

.shadow-sm {
  box-shadow: var(--shadow-sm) !important;
}

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

/* ===== FORMS ===== */
.form-control,
.form-select {
  border: 2px solid var(--light-gray) !important;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  transition: all var(--transition-speed) ease;
  font-size: 1rem;
  color: var(--text-primary) !important;
  background-color: var(--white) !important;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--secondary-color) !important;
  box-shadow: 0 0 0 0.25rem rgba(74, 144, 164, 0.15) !important;
  outline: none;
}

.form-control-lg,
.form-select-lg {
  padding: 1rem 1.25rem !important;
  font-size: 1.125rem !important;
}

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

.form-check-input {
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid var(--light-gray) !important;
  cursor: pointer;
}

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

.form-check-input:focus {
  box-shadow: 0 0 0 0.25rem rgba(74, 144, 164, 0.15) !important;
}

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

.invalid-feedback {
  display: none;
  color: #dc3545 !important;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.was-validated .form-control:invalid ~ .invalid-feedback,
.was-validated .form-select:invalid ~ .invalid-feedback {
  display: block;
}

.text-danger {
  color: #dc3545 !important;
}

/* ===== ALERTS ===== */
.alert {
  border-radius: 8px;
  border: none;
  padding: 1rem 1.5rem;
  font-weight: 500;
}

.alert-success {
  background-color: #D1FAE5 !important;
  color: #065F46 !important;
}

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

/* ===== BADGES ===== */
.badge {
  padding: 0.5rem 1rem;
  font-weight: 600;
  border-radius: 6px;
  font-size: 0.875rem;
}

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

/* ===== PORTFOLIO SECTION ===== */
.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.filter-btn {
  background-color: transparent !important;
  border: 2px solid var(--light-gray) !important;
  color: var(--text-primary) !important;
  padding: 0.625rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  transition: all var(--transition-speed) ease;
  cursor: pointer;
}

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

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

.portfolio-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
}

.portfolio-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

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

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

.project-category {
  color: var(--secondary-color) !important;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.project-title {
  color: var(--white) !important;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.project-description {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.project-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.project-meta span {
  color: rgba(255, 255, 255, 0.8) !important;
  font-size: 0.875rem;
}

/* ===== CONTACT BOX ===== */
.contact-box {
  background: linear-gradient(135deg, var(--primary-color) 0%, #1A202C 100%);
  border-radius: 12px;
  padding: 2rem;
  color: var(--white) !important;
}

.contact-box .h4,
.contact-box .h5,
.contact-box .h6 {
  color: var(--white) !important;
}

.contact-box .small,
.contact-box small {
  color: rgba(255, 255, 255, 0.8) !important;
}

.position-sticky {
  top: 100px;
}

/* ===== ICONS ===== */
.bi {
  display: inline-block;
  vertical-align: middle;
  line-height: 1;
}

.bi-arrow-right,
.bi-check-circle-fill,
.bi-geo-alt-fill,
.bi-telephone-fill,
.bi-envelope-fill,
.bi-calendar-check,
.bi-geo-alt,
.bi-telephone,
.bi-envelope,
.bi-linkedin,
.bi-instagram,
.bi-facebook,
.bi-house-door,
.bi-building,
.bi-rulers,
.bi-clipboard-check,
.bi-tree,
.bi-house-heart {
  font-size: 1.25rem;
}

/* ===== RATIO (VIDEO/MAP EMBED) ===== */
.ratio {
  position: relative;
  width: 100%;
}

.ratio::before {
  display: block;
  padding-top: var(--bs-aspect-ratio);
  content: "";
}

.ratio > * {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.ratio-16x9 {
  --bs-aspect-ratio: 56.25%;
}

.ratio iframe {
  border: none;
  border-radius: 8px;
}

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

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

.list-unstyled a {
  color: var(--text-secondary) !important;
  text-decoration: none;
  transition: all var(--transition-speed) ease;
}

.list-unstyled a:hover {
  color: var(--secondary-color) !important;
  padding-left: 0.5rem;
}

/* ===== TEXT UTILITIES ===== */
.text-decoration-none {
  text-decoration: none !important;
}

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

.fw-bold {
  font-weight: 700 !important;
}

.fw-semibold {
  font-weight: 600 !important;
}

.last-updated {
  color: var(--text-secondary) !important;
  font-size: 0.875rem;
  font-style: italic;
}

/* ===== PRIVACY PAGE ===== */
.privacy-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, #1A202C 100%);
  padding: 5rem 0 3rem;
  color: var(--white) !important;
}

.privacy-content {
  padding: 4rem 0;
}

.privacy-container {
  max-width: 900px;
  margin: 0 auto;
}

.policy-section {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--light-gray);
}

.policy-section:last-child {
  border-bottom: none;
}

.policy-section h3 {
  margin-bottom: 1rem;
  color: var(--primary-color) !important;
}

.policy-section p,
.policy-section ul {
  color: var(--text-secondary) !important;
  line-height: 1.8;
}

.policy-section ul {
  padding-left: 2rem;
}

.policy-section li {
  margin-bottom: 0.5rem;
}

/* ===== SHOW/HIDE TEXT ===== */
.show-text {
  display: inline;
}

.hide-text {
  display: none;
}

/* ===== IMAGE UTILITIES ===== */
.img-fluid {
  max-width: 100%;
  height: auto;
  display: block;
}

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

/* ===== SPACING UTILITIES ===== */
.gap-3 {
  gap: 1rem !important;
}

.g-0 {
  --bs-gutter-x: 0;
  --bs-gutter-y: 0;
}

.g-3 {
  --bs-gutter-x: 1rem;
  --bs-gutter-y: 1rem;
}

.g-4 {
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 1.5rem;
}

.g-5 {
  --bs-gutter-x: 3rem;
  --bs-gutter-y: 3rem;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  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);
  }
}

.animate-on-scroll {
  opacity: 0;
  animation: fadeIn 0.8s ease forwards;
}

/* ===== FOOTER ===== */
footer {
  background-color: var(--primary-color) !important;
  color: rgba(255, 255, 255, 0.9) !important;
  padding: 3rem 0 1rem;
}

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

footer a {
  color: rgba(255, 255, 255, 0.8) !important;
  transition: all var(--transition-speed) ease;
}

footer a:hover {
  color: var(--secondary-color) !important;
  padding-left: 0.5rem;
}

footer .bi {
  color: rgba(255, 255, 255, 0.8) !important;
  transition: all var(--transition-speed) ease;
}

footer .bi:hover {
  color: var(--secondary-color) !important;
  transform: scale(1.2);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: rgba(45, 55, 72, 0.98);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
    box-shadow: var(--shadow-lg);
  }

  .navbar-light .navbar-collapse {
    background-color: var(--white);
    border: 1px solid var(--light-gray);
  }

  .nav-link {
    padding: 0.75rem 1rem !important;
  }

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

  .display-3 {
    font-size: 2.25rem !important;
  }

  .display-4 {
    font-size: 2rem !important;
  }

  .display-5 {
    font-size: 1.75rem !important;
  }

  .display-6 {
    font-size: 1.5rem !important;
  }

  .position-relative.overflow-hidden {
    min-height: 80vh;
  }

  .portfolio-hero {
    min-height: 50vh;
  }

  .btn-lg {
    padding: 0.75rem 1.5rem !important;
    font-size: 1rem !important;
  }

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

  .card-body {
    padding: 1.5rem;
  }

  .position-sticky {
    position: relative !important;
    top: auto !important;
  }
}

@media (max-width: 767.98px) {
  .navbar-brand {
    font-size: 1.25rem;
  }

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

  .display-3 {
    font-size: 1.875rem !important;
  }

  .display-4 {
    font-size: 1.75rem !important;
  }

  .lead {
    font-size: 1.125rem;
  }

  .btn-lg {
    padding: 0.625rem 1.25rem !important;
  }

  .masonry-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .filter-buttons {
    gap: 0.75rem;
  }

  .filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }

  .portfolio-overlay {
    padding: 1.5rem;
  }

  .project-title {
    font-size: 1.25rem;
  }

  .card-body {
    padding: 1.25rem;
  }

  .contact-box {
    padding: 1.5rem;
  }

  footer {
    text-align: center;
  }

  footer .list-unstyled a:hover {
    padding-left: 0;
  }
}

@media (max-width: 575.98px) {
  .px-4 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

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

  .display-2 {
    font-size: 1.75rem !important;
  }

  .btn {
    width: 100%;
  }

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

/* ===== PRINT STYLES ===== */
@media print {
  .navbar,
  .btn,
  footer {
    display: none;
  }

  body {
    font-size: 12pt;
  }

  .container {
    max-width: 100%;
  }
}