/* Forest Luxury Architecture Studio - Custom Styles */

:root {
  --primary-color: #2C5F2D;
  --secondary-color: #97BC62;
  --primary-dark: #1a3a1b;
  --secondary-light: #b8d989;
  --text-dark: #1a1a1a;
  --text-light: #ffffff;
  --accent-gold: #d4af37;
  --forest-mist: rgba(151, 188, 98, 0.1);
  --shadow-color: rgba(44, 95, 45, 0.15);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6, .display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--primary-dark) !important;
}

.text-white, .text-white h1, .text-white h2, .text-white h3, .text-white .display-1, .text-white .display-2, .text-white .display-3 {
  color: var(--text-light) !important;
}

.lead {
  font-size: 1.15rem;
  font-weight: 400;
  opacity: 0.9;
}

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

.navbar.scrolled {
  padding: 0.5rem 0;
  box-shadow: 0 4px 30px rgba(44, 95, 45, 0.3);
}

.navbar-brand {
  color: var(--text-light) !important;
  font-weight: 700 !important;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

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

.nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500 !important;
  padding: 0.5rem 1rem !important;
  transition: all 0.3s ease;
  position: relative;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

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

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

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

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.5) !important;
  padding: 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(151, 188, 98, 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(255, 255, 255, 0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

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

.position-relative.vh-100::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="10" cy="10" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="30" cy="20" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="50" cy="15" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="70" cy="25" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="90" cy="10" r="1" fill="%23ffffff" opacity="0.1"/></svg>');
  background-size: 100px 100px;
  opacity: 0.5;
  animation: float 20s linear infinite;
}

@keyframes float {
  0% { transform: translateY(0); }
  100% { transform: translateY(-100px); }
}

.overlay-dark {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(26, 58, 27, 0.4);
  z-index: 1;
}

.overlay-light {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  z-index: 1;
}

.content-wrapper {
  position: relative;
  z-index: 2;
}

/* Parallax Section */
.parallax-section {
  position: relative;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  min-height: 500px;
}

.parallax-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  opacity: 0.95;
}

/* Diagonal Section */
.diagonal-section {
  position: relative;
  padding: 100px 0;
  background: linear-gradient(135deg, var(--forest-mist) 0%, transparent 100%);
}

.diagonal-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: white;
  transform: skewY(-2deg);
  transform-origin: top left;
}

/* Buttons */
.btn {
  border-radius: 50px;
  font-weight: 600 !important;
  letter-spacing: 0.5px;
  transition: all 0.4s ease;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  border: none !important;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary, .btn-lg, .btn-sm {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
  color: var(--text-light) !important;
  border: none !important;
  box-shadow: 0 4px 15px rgba(44, 95, 45, 0.3);
}

.btn-primary:hover, .btn-lg:hover, .btn-sm:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%) !important;
  color: var(--text-light) !important;
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(44, 95, 45, 0.4);
}

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

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

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

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

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

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  color: var(--text-light) !important;
  border-color: var(--text-light) !important;
}

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

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

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

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

.card-body {
  padding: 2rem;
}

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

.card-text {
  color: var(--text-dark);
  opacity: 0.8;
}

.shadow-lg {
  box-shadow: 0 15px 35px rgba(44, 95, 45, 0.15) !important;
}

.shadow {
  box-shadow: 0 8px 20px rgba(44, 95, 45, 0.1) !important;
}

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

/* Amenity Cards */
.amenity-card {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.amenity-card:hover {
  border-color: var(--secondary-color);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(151, 188, 98, 0.2);
}

/* Feature Icons */
.feature-icon {
  width: 80px;
  height: 80px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-light) 100%);
  color: white !important;
  border-radius: 20px;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(151, 188, 98, 0.3);
}

.feature-icon:hover {
  transform: rotate(5deg) scale(1.1);
}

/* Bootstrap Icons */
.bi {
  color: var(--primary-color);
  transition: all 0.3s ease;
}

.bi-check-circle-fill {
  color: var(--secondary-color) !important;
  font-size: 1.5rem;
}

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

.bi-house-heart-fill,
.bi-flower3,
.bi-egg-fried,
.bi-people-fill,
.bi-compass-fill,
.bi-star-fill,
.bi-tree,
.bi-tree-fill {
  color: var(--secondary-color) !important;
}

/* Forms */
.form-control,
.form-select,
.form-control-lg,
.form-select-lg {
  border: 2px solid rgba(44, 95, 45, 0.2);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
  background-color: #f8f9fa;
}

.form-control:focus,
.form-select:focus,
.form-control-lg:focus,
.form-select-lg:focus {
  border-color: var(--secondary-color) !important;
  box-shadow: 0 0 0 0.2rem rgba(151, 188, 98, 0.25) !important;
  background-color: white;
}

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

/* Alerts */
.alert {
  border-radius: 12px;
  border: none;
  padding: 1rem 1.5rem;
}

.alert-success {
  background: linear-gradient(135deg, var(--secondary-light) 0%, var(--secondary-color) 100%);
  color: white !important;
}

.alert-danger {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  color: white !important;
}

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

/* Tables */
.table {
  border-radius: 12px;
  overflow: hidden;
}

.table-bordered {
  border-color: rgba(44, 95, 45, 0.2) !important;
}

.table thead {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white !important;
}

.table thead th {
  color: white !important;
  font-weight: 600;
  border: none !important;
}

/* Accordion */
.accordion-item {
  border: 2px solid rgba(44, 95, 45, 0.1) !important;
  border-radius: 12px !important;
  margin-bottom: 1rem;
  overflow: hidden;
}

.accordion-button {
  background: linear-gradient(135deg, var(--forest-mist) 0%, transparent 100%) !important;
  color: var(--primary-dark) !important;
  font-weight: 600;
  padding: 1.25rem 1.5rem;
}

.accordion-button:not(.collapsed) {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-light) 100%) !important;
  color: white !important;
  box-shadow: none !important;
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.2rem rgba(151, 188, 98, 0.25) !important;
  border-color: var(--secondary-color) !important;
}

.accordion-button::after {
  filter: brightness(0) invert(0.3);
}

.accordion-button:not(.collapsed)::after {
  filter: brightness(0) invert(1);
}

.accordion-body {
  padding: 1.5rem;
  background: white;
}

/* List Group */
.list-group-item {
  border-color: rgba(44, 95, 45, 0.1) !important;
  transition: all 0.3s ease;
}

.list-group-item:hover {
  background: var(--forest-mist);
  transform: translateX(5px);
}

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

/* Carousel */
.carousel-item {
  transition: transform 0.8s ease-in-out;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: var(--primary-color);
  border-radius: 50%;
  padding: 2rem;
}

.carousel-control-prev,
.carousel-control-next {
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1;
}

/* Background Colors */
.bg-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
}

.bg-secondary {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-light) 100%) !important;
}

.bg-white {
  background-color: white !important;
}

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

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

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

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

/* Borders */
.border {
  border-color: rgba(44, 95, 45, 0.2) !important;
}

.border-top,
.border-bottom,
.border-start,
.border-end {
  border-color: rgba(44, 95, 45, 0.2) !important;
}

.border-white {
  border-color: rgba(255, 255, 255, 0.3) !important;
}

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

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

/* Rounded Elements */
.rounded {
  border-radius: 12px !important;
}

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

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

.opacity-90 {
  opacity: 0.9 !important;
}

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

/* Positioning */
.fixed-top {
  z-index: 1030;
}

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

.position-sticky {
  position: sticky;
  top: 80px;
}

/* Images */
.img-fluid {
  border-radius: 12px;
  transition: all 0.4s ease;
}

.img-fluid:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(44, 95, 45, 0.2);
}

.object-fit-cover {
  object-fit: cover;
  object-position: center;
}

.card-img-top {
  border-radius: 12px 12px 0 0;
  height: 250px;
  object-fit: cover;
}

/* Ratio */
.ratio {
  border-radius: 12px;
  overflow: hidden;
}

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

footer h5 {
  color: var(--secondary-light) !important;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

footer a {
  color: rgba(255, 255, 255, 0.8) !important;
  transition: all 0.3s ease;
}

footer a:hover {
  color: var(--secondary-light) !important;
  text-decoration: none;
  transform: translateX(5px);
  display: inline-block;
}

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

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

.blockquote-footer {
  color: var(--primary-color);
  font-weight: 600;
}

/* 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-fade-in {
  animation: fadeIn 1s ease-out;
}

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

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

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

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Hero Amenities */
.hero-amenities {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Social Icons */
.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  margin: 0 0.5rem;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.social-icons a:hover {
  background: var(--secondary-color);
  border-color: var(--secondary-light);
  transform: translateY(-5px) rotate(5deg);
}

/* Loading Animation */
.loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.loading.hide {
  opacity: 0;
  pointer-events: none;
}

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

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

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
}

/* Mobile Responsive Styles */
@media (max-width: 991px) {
  .navbar-collapse {
    background: rgba(26, 58, 27, 0.98);
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  }

  .nav-link {
    padding: 0.75rem 1rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-link:last-child {
    border-bottom: none;
  }

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

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

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

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

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

  .vh-100 {
    min-height: 100vh;
  }

  .card-body {
    padding: 1.5rem;
  }

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

  .parallax-section {
    background-attachment: scroll;
    min-height: 300px;
  }

  .feature-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
}

@media (max-width: 767px) {
  .py-5 {
    padding: 3rem 0 !important;
  }

  .my-5 {
    margin: 3rem 0 !important;
  }

  .px-4 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

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

  h1, .h1 {
    font-size: 1.8rem !important;
  }

  .lead {
    font-size: 1rem;
  }

  .card:hover {
    transform: translateY(-5px);
  }
}

@media (max-width: 575px) {
  .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .btn {
    font-size: 0.9rem;
    padding: 0.6rem 1.5rem !important;
  }

  .navbar-brand {
    font-size: 1.2rem !important;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .btn,
  footer {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  .card {
    box-shadow: none;
    border: 1px solid #ccc;
  }
}

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

/* High Contrast Mode */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #1a3a1b;
    --secondary-color: #85a854;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  body {
    background-color: #1a1a1a;
    color: #f8f9fa;
  }

  .card {
    background-color: #2a2a2a;
    color: #f8f9fa;
  }

  .form-control,
  .form-select {
    background-color: #2a2a2a;
    color: #f8f9fa;
    border-color: rgba(151, 188, 98, 0.3);
  }
}