/* Frost Pine Architecture Studio - Custom Styles */

/* ===== ROOT VARIABLES ===== */
:root {
  --primary-color: #2C5F41;
  --secondary-color: #A8DADC;
  --dark-green: #1a3a28;
  --light-green: #3d7a5a;
  --frost-white: #f8f9fa;
  --text-dark: #1f1f1f;
  --text-light: #6c757d;
  --shadow-soft: rgba(44, 95, 65, 0.1);
  --shadow-medium: rgba(44, 95, 65, 0.2);
  --transition-base: all 0.3s ease;
  --transition-smooth: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--primary-color);
}

.display-3, .display-4, .display-5, .display-6 {
  font-weight: 800 !important;
  letter-spacing: -0.02em;
}

a {
  transition: var(--transition-base);
}

img {
  max-width: 100%;
  height: auto;
}

/* ===== NAVIGATION ===== */
.navbar {
  padding: 1rem 0;
  transition: var(--transition-smooth);
  background-color: var(--primary-color) !important;
  box-shadow: 0 2px 15px var(--shadow-soft);
}

.navbar.sticky-top {
  backdrop-filter: blur(10px);
  background-color: rgba(44, 95, 65, 0.95) !important;
}

.navbar.navbar-light.bg-white {
  background-color: #ffffff !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

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

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

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

.navbar-dark .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  margin: 0 0.25rem;
  border-radius: 6px;
  transition: var(--transition-base);
  position: relative;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
  color: #ffffff !important;
  background-color: rgba(168, 218, 220, 0.15);
  transform: translateY(-2px);
}

.navbar-dark .navbar-nav .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 3px;
  background-color: var(--secondary-color);
  border-radius: 2px;
}

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

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(168, 218, 220, 0.5) !important;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* ===== BUTTONS ===== */
.btn {
  font-weight: 600;
  border-radius: 8px;
  transition: var(--transition-base);
  border: 2px solid transparent;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
}

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

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

.btn-primary:hover {
  background-color: var(--dark-green) !important;
  border-color: var(--dark-green) !important;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(44, 95, 65, 0.3) !important;
}

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

.btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.15) !important;
  border-color: #ffffff !important;
  color: #ffffff !important;
  transform: translateY(-3px);
}

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

.btn-outline-success:hover {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: #ffffff !important;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(44, 95, 65, 0.25);
}

.btn:active {
  transform: translateY(-1px) !important;
}

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

.position-relative.vh-100::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(168, 218, 220, 0.03) 35px, rgba(168, 218, 220, 0.03) 70px);
  pointer-events: none;
}

.position-relative.vh-100::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 50%;
  height: 50%;
  background: radial-gradient(circle, rgba(168, 218, 220, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

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

.text-white .display-3 {
  color: #ffffff !important;
  text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 0.8s ease-out;
}

.text-white .fs-4,
.text-white .lead {
  color: rgba(255, 255, 255, 0.95) !important;
  text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.1);
  animation: fadeInUp 1s ease-out 0.2s both;
}

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

/* ===== SECTIONS ===== */
.py-5 {
  padding-top: 5rem !important;
  padding-bottom: 5rem !important;
}

.py-4 {
  padding-top: 3rem !important;
  padding-bottom: 3rem !important;
}

.pt-5 {
  padding-top: 5rem !important;
}

.pb-5 {
  padding-bottom: 5rem !important;
}

.pb-4 {
  padding-bottom: 3rem !important;
}

.mt-5 {
  margin-top: 3rem !important;
}

.mb-5 {
  margin-bottom: 3rem !important;
}

.mb-4 {
  margin-bottom: 2rem !important;
}

.mb-3 {
  margin-bottom: 1.5rem !important;
}

/* ===== CARDS ===== */
.card {
  border: none !important;
  border-radius: 12px;
  transition: var(--transition-smooth);
  overflow: hidden;
  background-color: #ffffff;
}

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

.card.shadow,
.card.shadow-sm {
  box-shadow: 0 4px 15px rgba(44, 95, 65, 0.08) !important;
}

.card.shadow-lg {
  box-shadow: 0 10px 40px rgba(44, 95, 65, 0.15) !important;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 45px rgba(44, 95, 65, 0.2) !important;
}

.card-body {
  padding: 2rem;
}

.card .h4,
.card .h5,
.card .h6 {
  color: var(--primary-color) !important;
  font-weight: 700;
}

/* ===== PORTFOLIO GRID ===== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 15px var(--shadow-soft);
  transition: var(--transition-smooth);
  cursor: pointer;
  aspect-ratio: 4/3;
}

.portfolio-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 0%, rgba(44, 95, 65, 0.8) 100%);
  opacity: 0;
  transition: var(--transition-base);
  z-index: 1;
}

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

.portfolio-item:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 15px 40px var(--shadow-medium);
}

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

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

.filter-btn {
  padding: 0.5rem 1.5rem;
  margin: 0.25rem;
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color) !important;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-base);
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--primary-color) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(44, 95, 65, 0.3);
}

/* ===== BADGES ===== */
.badge {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.85rem;
  background-color: var(--secondary-color) !important;
  color: var(--primary-color) !important;
}

/* ===== IMAGES ===== */
.img-fluid {
  border-radius: 12px;
}

.img-fluid.rounded {
  border-radius: 12px !important;
}

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

.shadow-lg {
  box-shadow: 0 10px 40px rgba(44, 95, 65, 0.15) !important;
}

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

.form-control,
.form-select {
  padding: 0.75rem 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  transition: var(--transition-base);
  font-size: 1rem;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 0.2rem rgba(44, 95, 65, 0.15) !important;
  outline: none;
}

.form-control::placeholder {
  color: #adb5bd;
}

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

.alert-success {
  background-color: rgba(44, 95, 65, 0.1);
  color: var(--primary-color);
}

.alert-danger {
  background-color: rgba(220, 53, 69, 0.1);
  color: #dc3545;
}

/* ===== TABLES ===== */
.table-responsive {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px var(--shadow-soft);
}

.table {
  margin-bottom: 0;
}

.table thead {
  background-color: var(--primary-color);
  color: #ffffff;
}

.table thead th {
  border: none;
  font-weight: 700;
  padding: 1rem;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

.table-bordered {
  border: 1px solid #e0e0e0;
}

.table tbody tr {
  transition: var(--transition-base);
}

.table tbody tr:hover {
  background-color: rgba(168, 218, 220, 0.1);
}

.table tbody td {
  padding: 1rem;
  vertical-align: middle;
}

/* ===== NAVIGATION & TABS ===== */
.nav {
  gap: 0.5rem;
}

.nav.flex-column .nav-link {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  color: var(--text-dark);
  transition: var(--transition-base);
  font-weight: 500;
}

.nav.flex-column .nav-link:hover,
.nav.flex-column .nav-link.active {
  background-color: rgba(44, 95, 65, 0.1);
  color: var(--primary-color) !important;
}

/* ===== UTILITIES ===== */
.text-muted {
  color: var(--text-light) !important;
}

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

.text-decoration-none:hover {
  color: var(--primary-color) !important;
}

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

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

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

.border-top {
  border-top: 1px solid #e0e0e0 !important;
}

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

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

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

.opacity-75 {
  opacity: 0.75 !important;
}

.fst-italic {
  font-style: italic !important;
}

/* ===== ICONS (Bootstrap Icons) ===== */
.bi {
  display: inline-block;
  vertical-align: middle;
}

.bi-geo-alt,
.bi-calendar3,
.bi-house,
.bi-building,
.bi-shop,
.bi-telephone,
.bi-envelope,
.bi-instagram,
.bi-linkedin,
.bi-facebook {
  font-size: 1.25rem;
  color: var(--primary-color);
  transition: var(--transition-base);
}

a:hover .bi {
  color: var(--secondary-color);
  transform: scale(1.1);
}

/* ===== GAPS & SPACING ===== */
.gap-2 {
  gap: 0.5rem !important;
}

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

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

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

/* ===== POSITION UTILITIES ===== */
.position-absolute {
  z-index: 2;
}

.position-sticky {
  position: sticky !important;
  top: 100px;
}

.top-50 {
  top: 50% !important;
}

.start-50 {
  left: 50% !important;
}

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

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

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

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

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

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

.animate-on-scroll {
  opacity: 0;
  transition: var(--transition-smooth);
}

.animate-on-scroll.animated {
  opacity: 1;
  animation: fadeInUp 0.8s ease-out forwards;
}

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

footer a {
  color: rgba(255, 255, 255, 0.8) !important;
  text-decoration: none;
  transition: var(--transition-base);
}

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

footer .h5 {
  color: #ffffff !important;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: rgba(44, 95, 65, 0.98);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  }
  
  .navbar-nav {
    gap: 0.5rem;
  }
  
  .display-3 {
    font-size: 2.5rem !important;
  }
  
  .display-4 {
    font-size: 2rem !important;
  }
  
  .display-5 {
    font-size: 1.75rem !important;
  }
  
  .py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
  
  .btn-lg {
    padding: 0.875rem 2rem !important;
  }
  
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .position-sticky {
    position: relative !important;
    top: 0 !important;
  }
}

@media (max-width: 767.98px) {
  .display-3 {
    font-size: 2rem !important;
  }
  
  .vh-100 {
    min-height: 100vh;
    padding: 2rem 0;
  }
  
  .card-body {
    padding: 1.5rem;
  }
  
  .py-5 {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
  }
  
  .mb-5 {
    margin-bottom: 2rem !important;
  }
  
  .px-5 {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }
}

@media (max-width: 575.98px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem !important;
    font-size: 0.9rem !important;
  }
  
  .navbar-brand {
    font-size: 1.25rem;
  }
  
  .filter-btn {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
  }
}

/* ===== ACCESSIBILITY ===== */
.btn:focus,
.form-control:focus,
.form-select:focus,
.nav-link:focus {
  outline: 3px solid var(--secondary-color);
  outline-offset: 2px;
}

/* ===== SMOOTH SCROLL ===== */
html {
  scroll-behavior: smooth;
}

/* ===== SELECTION ===== */
::selection {
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

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

/* ===== 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(--dark-green);
}

/* ===== LOADING STATES ===== */
.loading {
  pointer-events: none;
  opacity: 0.6;
  position: relative;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border: 3px solid rgba(44, 95, 65, 0.2);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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