/* Alpine Forest Gold Architecture Studio - Custom Styles */

:root {
  --primary-color: #2C5F41;
  --secondary-color: #D4AF37;
  --primary-dark: #1a3828;
  --primary-light: #3d7a59;
  --secondary-dark: #b89320;
  --secondary-light: #e6c965;
  --text-dark: #1a1a1a;
  --text-light: #f8f9fa;
  --overlay-dark: rgba(44, 95, 65, 0.85);
  --overlay-light: rgba(212, 175, 55, 0.9);
}

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

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

html {
  scroll-behavior: smooth;
}

/* Navbar Styles */
.navbar {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%) !important;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.navbar-brand {
  color: var(--secondary-color) !important;
  font-size: 1.8rem !important;
  font-weight: 700 !important;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

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

.nav-link {
  color: var(--text-light) !important;
  font-weight: 500 !important;
  margin: 0 0.5rem !important;
  padding: 0.5rem 1rem !important;
  position: relative;
  transition: all 0.3s ease;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

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

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

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

.navbar-toggler {
  border-color: var(--secondary-color) !important;
  padding: 0.5rem;
}

.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='%23D4AF37' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

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

.position-relative.w-100::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(212, 175, 55, 0.15) 0%, transparent 50%);
  animation: floating 20s ease-in-out infinite;
}

@keyframes floating {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.05); }
}

.display-2 {
  font-weight: 700 !important;
  color: var(--text-light) !important;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease-out;
}

.lead {
  color: var(--text-light) !important;
  font-size: 1.3rem !important;
  font-weight: 300 !important;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1.2s ease-out;
}

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

/* Card Styles */
.card {
  border: none !important;
  border-radius: 15px !important;
  overflow: hidden;
  transition: all 0.4s ease;
  background: white !important;
}

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

.card-img-top {
  transition: all 0.4s ease;
  height: 250px;
  object-fit: cover;
}

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

.card-body {
  background: white !important;
  color: var(--text-dark) !important;
}

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

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

/* Button Styles */
.btn {
  border-radius: 50px !important;
  padding: 0.8rem 2rem !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease !important;
  border: 2px solid transparent !important;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%) !important;
  color: var(--text-dark) !important;
  border-color: var(--secondary-color) !important;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--secondary-light) 0%, var(--secondary-color) 100%) !important;
  color: var(--text-dark) !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.4) !important;
}

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

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

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

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

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

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

/* Form Styles */
.form-control,
.form-select {
  border: 2px solid #e0e0e0 !important;
  border-radius: 10px !important;
  padding: 0.8rem 1rem !important;
  transition: all 0.3s ease !important;
  background: white !important;
  color: var(--text-dark) !important;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--secondary-color) !important;
  box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25) !important;
  background: white !important;
  color: var(--text-dark) !important;
}

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

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

.display-3,
.display-4,
.display-5,
.display-6 {
  color: var(--primary-color) !important;
  font-weight: 700 !important;
  margin-bottom: 2rem !important;
}

.h1, .h2, .h3, .h4, .h5, .h6 {
  color: var(--primary-color) !important;
  font-weight: 600 !important;
}

/* Image Styles */
.img-fluid {
  border-radius: 15px;
  transition: all 0.4s ease;
}

.img-fluid:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.rounded-circle {
  border: 4px solid var(--secondary-color) !important;
  transition: all 0.3s ease;
}

.rounded-circle:hover {
  border-color: var(--secondary-light) !important;
  transform: scale(1.1);
}

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

/* List Styles */
.list-unstyled li {
  padding: 0.5rem 0;
  color: var(--text-dark) !important;
}

/* Link Styles */
a {
  color: var(--primary-color) !important;
  text-decoration: none !important;
  transition: all 0.3s ease;
}

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

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

/* Background Colors */
.bg-white {
  background: white !important;
}

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

/* Text Colors */
.text-white {
  color: white !important;
}

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

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

/* Bootstrap Icons */
.bi {
  vertical-align: middle;
  transition: all 0.3s ease;
}

.bi-snow2,
.bi-snow,
.bi-snow3 {
  color: var(--secondary-color) !important;
}

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

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

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

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

/* Border Styles */
.border {
  border: 1px solid #dee2e6 !important;
}

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

.border-start {
  border-left: 3px solid var(--secondary-color) !important;
}

.border-end {
  border-right: 3px solid var(--secondary-color) !important;
}

.border-light {
  border-color: rgba(255, 255, 255, 0.2) !important;
}

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

/* Alert Styles */
.alert {
  border-radius: 15px !important;
  border: none !important;
  padding: 1.5rem !important;
  animation: slideIn 0.5s ease;
}

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

/* Sticky Top */
.sticky-top {
  position: sticky !important;
  top: 80px !important;
  z-index: 1020 !important;
}

.fixed-top {
  position: fixed !important;
  top: 0 !important;
  z-index: 1030 !important;
}

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

.opacity-25 {
  opacity: 0.25 !important;
}

/* Position Utilities */
.position-absolute {
  position: absolute !important;
}

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

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

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

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

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

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

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

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

/* Object Fit */
.object-fit-cover {
  object-fit: cover !important;
  width: 100%;
  height: 100%;
}

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

/* Rounded Utilities */
.rounded {
  border-radius: 15px !important;
}

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

/* Special Effects */
.p-5 {
  padding: 3rem !important;
}

.px-5 {
  padding-left: 3rem !important;
  padding-right: 3rem !important;
}

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

/* Container Fluid */
.container-fluid {
  padding-left: 1rem;
  padding-right: 1rem;
}

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

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

/* Footer Styles */
footer {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%) !important;
  color: var(--text-light) !important;
  padding: 3rem 0 1rem;
}

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

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

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

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

/* Responsive Design */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: var(--primary-dark);
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 10px;
  }
  
  .nav-link {
    margin: 0.5rem 0 !important;
  }
  
  .display-2 {
    font-size: 2.5rem !important;
  }
  
  .display-3 {
    font-size: 2rem !important;
  }
  
  .display-4 {
    font-size: 1.8rem !important;
  }
  
  .display-5 {
    font-size: 1.5rem !important;
  }
  
  .display-6 {
    font-size: 1.3rem !important;
  }
  
  .lead {
    font-size: 1.1rem !important;
  }
  
  .py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
  
  .px-5 {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }
}

@media (max-width: 767.98px) {
  .position-relative.w-100 {
    min-height: 70vh;
  }
  
  .card {
    margin-bottom: 1.5rem !important;
  }
  
  .btn-lg {
    padding: 0.8rem 1.5rem !important;
    font-size: 1rem !important;
  }
}

@media (max-width: 575.98px) {
  .display-2 {
    font-size: 2rem !important;
  }
  
  .navbar-brand {
    font-size: 1.3rem !important;
  }
  
  .container-fluid {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}

/* Smooth Transitions */
* {
  transition: color 0.3s ease, background-color 0.3s ease;
}

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

::-webkit-scrollbar-track {
  background: var(--primary-light);
}

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

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

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

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

/* Loading Animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(212, 175, 55, 0.3);
  border-radius: 50%;
  border-top-color: var(--secondary-color);
  animation: spin 1s ease-in-out infinite;
}

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

/* Hover Effects for Cards */
.card-body::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--secondary-color);
  transition: width 0.4s ease;
}

.card:hover .card-body::after {
  width: 100%;
}

/* Text Highlight Effect */
.highlight {
  position: relative;
  display: inline-block;
}

.highlight::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30%;
  background: var(--secondary-color);
  opacity: 0.3;
  z-index: -1;
}

/* Social Media Icons */
.bi-facebook,
.bi-instagram,
.bi-twitter,
.bi-linkedin {
  font-size: 1.5rem;
  margin: 0 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.bi-facebook:hover { color: #1877f2 !important; }
.bi-instagram:hover { color: #e4405f !important; }
.bi-twitter:hover { color: #1da1f2 !important; }
.bi-linkedin:hover { color: #0077b5 !important; }

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

/* Print Styles */
@media print {
  .navbar,
  .btn,
  footer {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
}