/* Forest Fortress Architecture Studio - Custom Styles */

:root {
  --primary-color: #1A4D2E;
  --secondary-color: #C19A6B;
  --dark-green: #0d2818;
  --light-green: #2d6d42;
  --cream: #f5f0e8;
  --white: #ffffff;
  --shadow: rgba(26, 77, 46, 0.15);
  --transition: all 0.3s ease;
}

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

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

/* Navbar Styles */
.navbar {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-green) 100%) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px var(--shadow);
  transition: var(--transition);
  padding: 1rem 0;
}

.navbar.scrolled {
  padding: 0.5rem 0;
  box-shadow: 0 4px 30px var(--shadow);
}

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

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

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

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
  color: var(--white) !important;
  background-color: rgba(193, 154, 107, 0.2) !important;
  transform: translateY(-2px);
}

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

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

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem rgba(193, 154, 107, 0.25) !important;
}

.navbar-toggler-icon {
  filter: brightness(0) invert(1);
}

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

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%231a4d2e" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
  background-size: cover;
  opacity: 0.3;
  animation: wave 20s linear infinite;
}

@keyframes wave {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.parallax-layer {
  z-index: 1;
}

.object-fit-cover {
  object-fit: cover;
  opacity: 0.2;
  filter: sepia(30%);
}

.hero-content {
  min-height: 100vh;
  z-index: 2;
  position: relative;
}

.hero-content .display-1 {
  font-weight: 800;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
  color: var(--white) !important;
  letter-spacing: 2px;
  animation: fadeInUp 1s ease-out;
}

.hero-content .lead {
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.95) !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 1.2s ease-out;
}

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

.torch-animation {
  position: absolute;
  top: 20%;
  right: 10%;
  width: 100px;
  height: 150px;
  animation: flicker 2s infinite alternate;
}

@keyframes flicker {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

.flame {
  width: 60px;
  height: 80px;
  background: radial-gradient(ellipse at center, #ff6b35 0%, #f7931e 30%, transparent 70%);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  animation: flame-dance 1.5s ease-in-out infinite;
  filter: blur(2px);
}

@keyframes flame-dance {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-10px) scale(1.1, 0.9); }
}

/* Buttons */
.btn {
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
  border: none;
  position: relative;
  overflow: hidden;
}

.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-lg {
  background: var(--secondary-color) !important;
  color: var(--white) !important;
  box-shadow: 0 4px 15px rgba(193, 154, 107, 0.4);
}

.btn-lg:hover {
  background: #a07d52 !important;
  color: var(--white) !important;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(193, 154, 107, 0.6);
}

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

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

.btn-sm {
  background: var(--primary-color) !important;
  color: var(--white) !important;
  border-radius: 30px;
  padding: 0.4rem 1rem;
}

.btn-sm:hover {
  background: var(--dark-green) !important;
  color: var(--white) !important;
}

/* Booking Widget Float */
.booking-widget-float {
  background: rgba(255, 255, 255, 0.98);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 40px var(--shadow);
  backdrop-filter: blur(10px);
  animation: slideInUp 1.5s ease-out;
  border: 2px solid var(--secondary-color);
}

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

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

.form-control,
.form-select,
.form-control-lg,
.form-select-lg {
  border: 2px solid #ddd !important;
  border-radius: 12px !important;
  padding: 0.75rem 1rem !important;
  transition: var(--transition);
  background-color: var(--white) !important;
  color: #333 !important;
}

.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.25rem rgba(193, 154, 107, 0.25) !important;
  background-color: var(--white) !important;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  animation: bounce 2s infinite;
}

.scroll-indicator .bi {
  font-size: 2.5rem;
  color: var(--white) !important;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

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

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

.container {
  position: relative;
  z-index: 1;
}

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

.lead {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #555 !important;
}

/* Images */
.img-fluid {
  border-radius: 20px;
  transition: var(--transition);
}

.img-fluid:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 30px var(--shadow);
}

.shadow-lg {
  box-shadow: 0 15px 40px var(--shadow) !important;
}

/* Cards */
.card {
  border-radius: 20px !important;
  overflow: hidden;
  transition: var(--transition);
  background: var(--white);
  height: 100%;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px var(--shadow) !important;
}

.card-img-top {
  height: 250px;
  object-fit: cover;
  transition: var(--transition);
}

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

.card-body {
  padding: 2rem !important;
}

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

.card-text {
  color: #666 !important;
  line-height: 1.7;
}

.card-footer {
  padding: 1.5rem 2rem;
}

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

.bi-check-circle-fill,
.bi-door-open-fill,
.bi-cup-hot-fill,
.bi-heart-pulse-fill,
.bi-compass-fill,
.bi-briefcase-fill,
.bi-snow2,
.bi-people-fill,
.bi-shield-fill-check {
  color: var(--secondary-color) !important;
  font-size: 1.5rem;
}

.fs-1 {
  font-size: 3rem !important;
}

.fs-4 {
  font-size: 1.5rem !important;
}

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

.list-unstyled li {
  padding: 0.75rem 0;
  display: flex;
  align-items: flex-start;
}

.list-unstyled li .bi {
  flex-shrink: 0;
}

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

footer h5 {
  color: var(--secondary-color) !important;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

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

footer .text-decoration-none {
  padding: 0.5rem 0;
}

.text-muted {
  color: rgba(255, 255, 255, 0.6) !important;
}

/* Social Icons */
.gap-3 {
  gap: 1rem !important;
}

.bi-facebook,
.bi-instagram,
.bi-twitter,
.bi-linkedin,
.bi-youtube {
  font-size: 1.8rem !important;
  color: var(--white) !important;
  transition: var(--transition);
  padding: 0.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.bi-facebook:hover { color: #1877f2 !important; background: var(--white); }
.bi-instagram:hover { color: #e4405f !important; background: var(--white); }
.bi-twitter:hover { color: #1da1f2 !important; background: var(--white); }
.bi-linkedin:hover { color: #0077b5 !important; background: var(--white); }
.bi-youtube:hover { color: #ff0000 !important; background: var(--white); }

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

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

.rounded-4 {
  border-radius: 1rem !important;
}

/* Timeline */
.timeline-item {
  position: relative;
  padding-left: 3rem;
  padding-bottom: 2rem;
  border-left: 3px solid var(--secondary-color);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -12px;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--secondary-color);
  border: 4px solid var(--white);
  box-shadow: 0 2px 10px var(--shadow);
}

.timeline-content {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 15px;
  box-shadow: 0 5px 20px var(--shadow);
  transition: var(--transition);
}

.timeline-content:hover {
  transform: translateX(10px);
  box-shadow: 0 8px 30px var(--shadow);
}

/* Accordion */
.accordion-item {
  border: 2px solid #e0e0e0 !important;
  border-radius: 15px !important;
  margin-bottom: 1rem;
  overflow: hidden;
}

.accordion-button {
  background: var(--cream) !important;
  color: var(--primary-color) !important;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 1.25rem 1.5rem;
  border: none !important;
}

.accordion-button:not(.collapsed) {
  background: var(--primary-color) !important;
  color: var(--white) !important;
  box-shadow: none !important;
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.25rem rgba(193, 154, 107, 0.25) !important;
  border: none !important;
}

.accordion-button::after {
  filter: brightness(0) saturate(100%);
}

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

.accordion-body {
  padding: 1.5rem;
  background: var(--white);
  color: #555 !important;
  line-height: 1.8;
}

.accordion-collapse {
  border: none !important;
}

/* Breadcrumb */
.breadcrumb {
  background: transparent !important;
  padding: 1rem 0;
  margin-bottom: 2rem;
}

.breadcrumb-item {
  color: var(--primary-color) !important;
  font-weight: 500;
}

.breadcrumb-item + .breadcrumb-item::before {
  color: var(--secondary-color) !important;
  content: '→';
}

.breadcrumb-item.active {
  color: var(--secondary-color) !important;
}

.breadcrumb-item a {
  color: var(--primary-color) !important;
  text-decoration: none;
  transition: var(--transition);
}

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

/* Carousel */
.carousel {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px var(--shadow);
}

.carousel-item {
  background: var(--white);
  padding: 3rem;
  min-height: 300px;
}

.carousel-control-prev,
.carousel-control-next {
  width: 50px;
  height: 50px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--secondary-color) !important;
  border-radius: 50%;
  opacity: 0.8;
}

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

.carousel-control-prev {
  left: 20px;
}

.carousel-control-next {
  right: 20px;
}

/* Filter Buttons */
.filter-btn {
  background: transparent !important;
  border: 2px solid var(--primary-color) !important;
  color: var(--primary-color) !important;
  padding: 0.6rem 1.5rem;
  border-radius: 30px;
  font-weight: 600;
  transition: var(--transition);
  margin: 0.5rem;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary-color) !important;
  color: var(--white) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px var(--shadow);
}

/* Room Card */
.room-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  transition: var(--transition);
}

.room-card:hover {
  transform: scale(1.02);
}

.room-card .badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
}

/* Comparison Slot */
.comparison-slot {
  border: 3px dashed var(--secondary-color);
  border-radius: 20px;
  padding: 3rem 2rem;
  text-align: center;
  background: rgba(193, 154, 107, 0.05);
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.comparison-slot:hover {
  background: rgba(193, 154, 107, 0.1);
  border-color: var(--primary-color);
}

/* View 360 */
.view-360 {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: rgba(26, 77, 46, 0.9);
  color: var(--white) !important;
  padding: 0.5rem 1rem;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 2;
  transition: var(--transition);
}

.view-360:hover {
  background: var(--primary-color);
  transform: scale(1.05);
}

/* Compare Button */
.compare-btn {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 30px;
  font-weight: 600;
  z-index: 2;
  transition: var(--transition);
  color: var(--primary-color) !important;
}

.compare-btn:hover {
  background: var(--white);
  transform: scale(1.05);
  box-shadow: 0 4px 15px var(--shadow);
}

/* Ratio */
.ratio {
  position: relative;
  width: 100%;
}

.ratio-16x9 {
  padding-top: 56.25%;
}

.ratio > * {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 15px;
}

/* Position Fixed */
.position-fixed {
  position: fixed !important;
}

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

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

/* Bridge Element */
.bridge-element {
  background: var(--white);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 10px 40px var(--shadow);
  margin: 2rem 0;
}

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

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

.text-dark {
  color: #333 !important;
}

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

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

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

/* Responsive Design */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(13, 40, 24, 0.98);
    padding: 1.5rem;
    border-radius: 15px;
    margin-top: 1rem;
    box-shadow: 0 5px 20px var(--shadow);
  }

  .hero-content .display-1 {
    font-size: 3rem;
  }

  .hero-content .lead {
    font-size: 1.1rem;
  }

  .booking-widget-float {
    padding: 1.5rem;
  }

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

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

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

  .ps-lg-5,
  .pe-lg-5 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .torch-animation {
    width: 60px;
    height: 90px;
    top: 10%;
    right: 5%;
  }

  .flame {
    width: 40px;
    height: 60px;
  }
}

@media (max-width: 767.98px) {
  .hero-content .display-1 {
    font-size: 2.5rem;
  }

  .hero-content .lead {
    font-size: 1rem;
  }

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

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

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

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

  .card-img-top {
    height: 200px;
  }

  .booking-widget-float {
    padding: 1rem;
  }

  .timeline-item {
    padding-left: 2rem;
  }

  footer {
    text-align: center;
  }

  .carousel-control-prev,
  .carousel-control-next {
    width: 40px;
    height: 40px;
  }

  .carousel-control-prev {
    left: 10px;
  }

  .carousel-control-next {
    right: 10px;
  }
}

@media (max-width: 575.98px) {
  .hero-content .display-1 {
    font-size: 2rem;
  }

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

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

  .filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    margin: 0.25rem;
  }

  .bi-facebook,
  .bi-instagram,
  .bi-twitter,
  .bi-linkedin,
  .bi-youtube {
    font-size: 1.5rem !important;
  }
}

/* Animations */
@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: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

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

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

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

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

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

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

/* Selection */
::selection {
  background: var(--secondary-color);
  color: var(--white);
}

/* Focus Visible */
*:focus-visible {
  outline: 3px solid var(--secondary-color);
  outline-offset: 3px;
}

/* Additional Utilities */
.shadow {
  box-shadow: 0 5px 20px var(--shadow) !important;
}

.shadow-sm {
  box-shadow: 0 2px 10px var(--shadow) !important;
}

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

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

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

/* Flex Utilities */
.d-flex {
  display: flex !important;
}

.flex-column {
  flex-direction: column !important;
}

.flex-wrap {
  flex-wrap: wrap !important;
}

.flex-fill {
  flex: 1 1 auto !important;
}

.flex-shrink-0 {
  flex-shrink: 0 !important;
}

.flex-grow-1 {
  flex-grow: 1 !important;
}

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

.align-items-center {
  align-items: center !important;
}

.justify-content-center {
  justify-content: center !important;
}

.justify-content-between {
  justify-content: space-between !important;
}

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

/* Spacing Utilities */
.gap-2 {
  gap: 0.5rem !important;
}

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

.gap-4 {
  gap: 1.5rem !important;
}

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

  body {
    background: white;
    color: black;
  }

  .hero-section {
    min-height: auto;
    padding: 2rem 0;
  }
}