/* Twilight Gold Architecture Studio - Custom Styles */

:root {
  --primary-color: #2c1810;
  --secondary-color: #d4af37;
  --twilight-dark: #1a0f0a;
  --twilight-medium: #3d2517;
  --gold-light: #f4e4a6;
  --gold-dark: #b8941f;
  --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
}

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

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

.navbar.scrolled {
  padding: 0.5rem 0;
  box-shadow: 0 6px 30px rgba(44, 24, 16, 0.5);
}

.navbar-brand {
  color: var(--secondary-color) !important;
  font-size: 1.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: var(--transition-smooth);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

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

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

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

.navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
  margin: 0 0.5rem;
  padding: 0.5rem 1rem !important;
  position: relative;
  transition: var(--transition-smooth);
  text-transform: uppercase;
  font-size: 0.95rem;
  letter-spacing: 1px;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--secondary-color);
  transition: var(--transition-smooth);
  transform: translateX(-50%);
}

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

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

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

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d4af37' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.3;
  animation: patternMove 60s linear infinite;
}

@keyframes patternMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(60px, 60px); }
}

.hero-section .text-white {
  color: #ffffff !important;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-section .display-3 {
  font-weight: 700;
  animation: fadeInUp 1s ease-out;
  color: #ffffff !important;
}

.hero-section .lead {
  font-size: 1.3rem;
  animation: fadeInUp 1.2s ease-out;
  color: var(--gold-light) !important;
  font-weight: 400;
}

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

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

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

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

.btn-lg {
  background: var(--secondary-color) !important;
  color: var(--primary-color) !important;
  border: 2px solid var(--secondary-color) !important;
  font-weight: 700;
}

.btn-lg:hover {
  background: var(--gold-dark) !important;
  color: #ffffff !important;
  border-color: var(--gold-dark) !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
}

.btn-outline-light {
  border: 2px solid #ffffff !important;
  color: #ffffff !important;
  background: transparent !important;
}

.btn-outline-light:hover {
  background: #ffffff !important;
  color: var(--primary-color) !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

.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(--primary-color) !important;
  transform: translateY(-3px);
}

.btn-sm {
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
}

.btn-link {
  color: var(--secondary-color) !important;
  text-decoration: none;
}

.btn-link:hover {
  color: var(--gold-dark) !important;
  text-decoration: underline;
}

.btn-close-white {
  filter: brightness(0) invert(1);
}

/* Cards */
.card {
  border: none;
  border-radius: 20px;
  overflow: hidden;
  transition: var(--transition-smooth);
  background: #ffffff;
}

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

.card-body {
  background: linear-gradient(135deg, #ffffff 0%, #f9f6f0 100%);
}

.shadow-lg {
  box-shadow: 0 15px 35px rgba(44, 24, 16, 0.2) !important;
}

.shadow {
  box-shadow: 0 8px 20px rgba(44, 24, 16, 0.15) !important;
}

.shadow-sm {
  box-shadow: 0 4px 10px rgba(44, 24, 16, 0.1) !important;
}

/* Forms */
.form-label {
  color: var(--primary-color) !important;
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.form-control,
.form-select {
  border: 2px solid #e0d5c7;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  transition: var(--transition-smooth);
  background: #ffffff;
  color: var(--primary-color) !important;
}

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

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

.form-check-input {
  border: 2px solid var(--secondary-color);
  cursor: pointer;
}

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

.form-check-label {
  color: var(--primary-color);
  cursor: pointer;
}

.input-group .form-control {
  border-radius: 12px 0 0 12px !important;
}

.input-group .btn {
  border-radius: 0 12px 12px 0 !important;
}

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

.py-0 {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.container-fluid {
  background: #ffffff;
}

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

.display-3 { font-size: 4.5rem; }
.display-4 { font-size: 3.5rem; }
.display-5 { font-size: 2.5rem; }
.display-6 { font-size: 2rem; }

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

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

.text-muted {
  color: #8b7355 !important;
}

.lead {
  font-size: 1.25rem;
  line-height: 1.8;
  color: #5a4a3a;
}

.fs-3 { font-size: 2rem !important; }
.fs-4 { font-size: 1.5rem !important; }
.fs-5 { font-size: 1.25rem !important; }

.small {
  font-size: 0.9rem;
  color: #8b7355;
}

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

.bi-moon-stars-fill,
.bi-cup-hot-fill,
.bi-flower2,
.bi-geo-alt-fill,
.bi-star-fill,
.bi-check-circle-fill,
.bi-facebook,
.bi-instagram,
.bi-twitter,
.bi-linkedin,
.bi-telephone-fill,
.bi-envelope-fill,
.bi-chat-dots-fill,
.bi-clock-fill,
.bi-send-fill,
.bi-chat-left-dots-fill,
.bi-x-lg,
.bi-camera-video,
.bi-play-fill,
.bi-droplet-fill,
.bi-easel-fill,
.bi-car-front-fill,
.bi-person-badge-fill,
.bi-wifi,
.bi-dumbbell,
.bi-shield-check,
.bi-cart-fill {
  color: var(--secondary-color);
  font-size: 2.5rem;
  transition: var(--transition-smooth);
}

.card:hover .bi {
  transform: scale(1.1) rotate(5deg);
}

/* Feature Icons in Sections */
.text-center .bi {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--gold-dark) 100%);
  border-radius: 50%;
  color: #ffffff !important;
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
}

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

.bg-success {
  background-color: #2d8659 !important;
}

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

.bg-danger {
  background-color: #c23b22 !important;
}

.bg-secondary {
  background-color: var(--twilight-medium) !important;
}

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

/* Images */
.img-fluid {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  transition: var(--transition-smooth);
}

.img-fluid:hover {
  transform: scale(1.02);
  box-shadow: 0 15px 35px rgba(44, 24, 16, 0.2);
}

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

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

.object-fit-cover {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

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

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

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

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

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

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

footer .bi {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.5rem;
  transition: var(--transition-smooth);
}

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

/* Carousel */
.carousel-item {
  height: 500px;
}

.carousel-item img {
  height: 100%;
  object-fit: cover;
}

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

/* Chat Widget */
.position-fixed {
  z-index: 1050;
}

.chat-widget {
  width: 350px;
  max-height: 500px;
}

.card-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--twilight-dark) 100%) !important;
  color: #ffffff !important;
  font-weight: 600;
}

.card-footer {
  background: #f9f6f0 !important;
  border-top: 2px solid #e0d5c7;
}

/* Modal */
.modal-content {
  border: none;
  border-radius: 20px;
  overflow: hidden;
}

.modal-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--twilight-dark) 100%);
  color: #ffffff;
  border-bottom: none;
}

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

.modal-body {
  padding: 2rem;
}

/* Table */
.table-responsive {
  border-radius: 15px;
  overflow: hidden;
}

.table {
  margin-bottom: 0;
}

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

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

.table tbody tr:hover {
  background: #f9f6f0;
  transform: scale(1.01);
}

/* Sticky Elements */
.sticky-top {
  top: 80px;
  z-index: 1020;
}

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

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

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

.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 1rem !important; }
.gap-4 { gap: 1.5rem !important; }

.g-0 { gap: 0 !important; }
.g-3 > * { padding: 0.5rem; }
.g-4 > * { padding: 0.75rem; }

/* Ratio for Videos */
.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-21x9 {
  --bs-aspect-ratio: 42.857143%;
}

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

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

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

.animate-fade-in {
  animation: fadeIn 1s ease-out;
}

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

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

/* Hover Effects */
.hover-lift {
  transition: var(--transition-smooth);
}

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

.hover-scale {
  transition: var(--transition-smooth);
}

.hover-scale:hover {
  transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: var(--twilight-dark);
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 15px;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem !important;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  }
  
  .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }
  
  .display-3 { font-size: 3rem; }
  .display-4 { font-size: 2.5rem; }
  .display-5 { font-size: 2rem; }
  .display-6 { font-size: 1.75rem; }
  
  .hero-section {
    padding-top: 80px;
    min-height: auto;
    padding-bottom: 3rem;
  }
  
  .carousel-item {
    height: 300px;
  }
  
  .chat-widget {
    width: 100%;
    max-width: 350px;
  }
}

@media (max-width: 767.98px) {
  .display-3 { font-size: 2.5rem; }
  .display-4 { font-size: 2rem; }
  .display-5 { font-size: 1.75rem; }
  .display-6 { font-size: 1.5rem; }
  
  .btn-lg {
    padding: 0.75rem 2rem !important;
    font-size: 1rem;
  }
  
  .py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
  
  .px-4 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .card-body {
    padding: 1.5rem !important;
  }
  
  .text-center .bi {
    width: 60px;
    height: 60px;
    font-size: 1.8rem;
  }
}

@media (max-width: 575.98px) {
  .display-3 { font-size: 2rem; }
  .display-4 { font-size: 1.75rem; }
  .display-5 { font-size: 1.5rem; }
  .display-6 { font-size: 1.25rem; }
  
  .navbar-brand {
    font-size: 1.4rem;
  }
  
  .btn-lg {
    padding: 0.6rem 1.5rem !important;
    font-size: 0.95rem;
  }
  
  .lead {
    font-size: 1.1rem;
  }
  
  .carousel-item {
    height: 250px;
  }
}

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