/* Mystic Twilight Architecture Studio - Custom Styles */

:root {
  --primary: #2C1654;
  --secondary: #8B5CF6;
  --dark: #1a0d30;
  --light: #f8f9fa;
  --twilight-glow: rgba(139, 92, 246, 0.3);
  --mystic-purple: #6d28d9;
  --accent-gold: #fbbf24;
}

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

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

/* Navbar Styles */
.navbar {
  background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 30px rgba(139, 92, 246, 0.2);
  transition: all 0.3s ease;
  padding: 1rem 0 !important;
}

.navbar.scrolled {
  background: rgba(44, 22, 84, 0.95) !important;
  box-shadow: 0 4px 30px rgba(139, 92, 246, 0.4);
}

.navbar-brand {
  color: #ffffff !important;
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: all 0.3s ease;
}

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

.navbar-brand .bi {
  color: var(--secondary) !important;
  filter: drop-shadow(0 0 8px var(--twilight-glow));
}

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

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

.nav-link:hover,
.nav-link.active {
  color: #ffffff !important;
  text-shadow: 0 0 10px var(--twilight-glow);
}

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

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

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem rgba(139, 92, 246, 0.3) !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%28139, 92, 246, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

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

.position-relative.overflow-hidden::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 1000 1000"><circle cx="100" cy="100" r="2" fill="%238B5CF6" opacity="0.3"/><circle cx="300" cy="200" r="2" fill="%238B5CF6" opacity="0.3"/><circle cx="500" cy="150" r="2" fill="%238B5CF6" opacity="0.3"/><circle cx="700" cy="250" r="2" fill="%238B5CF6" opacity="0.3"/><circle cx="900" cy="100" r="2" fill="%238B5CF6" opacity="0.3"/><circle cx="200" cy="400" r="2" fill="%238B5CF6" opacity="0.3"/><circle cx="600" cy="450" r="2" fill="%238B5CF6" opacity="0.3"/><circle cx="800" cy="500" r="2" fill="%238B5CF6" opacity="0.3"/></svg>');
  animation: twinkle 5s ease-in-out infinite;
  opacity: 0.6;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.8; }
}

.hero-content {
  position: relative;
  z-index: 2;
  animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate(-50%, -40%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

.display-1 {
  font-weight: 800 !important;
  color: #ffffff !important;
  text-shadow: 0 0 30px var(--twilight-glow), 0 5px 20px rgba(0, 0, 0, 0.5);
  letter-spacing: 2px;
  margin-bottom: 1.5rem !important;
}

.lead {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 1.4rem !important;
  font-weight: 300;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Buttons */
.btn {
  border-radius: 50px !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: all 0.3s ease;
  border: none !important;
  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.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

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

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

.btn:not(.btn-outline-light):not(.btn-light):not(.btn-close) {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--mystic-purple) 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

.btn:not(.btn-outline-light):not(.btn-light):not(.btn-close):hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(139, 92, 246, 0.6);
  color: #ffffff !important;
}

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

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

.btn-light {
  background: rgba(255, 255, 255, 0.95) !important;
  color: var(--primary) !important;
  border: none !important;
}

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

.btn-sm {
  padding: 0.5rem 1.5rem !important;
  font-size: 0.85rem !important;
}

/* Scroll Indicator */
.bi-chevron-double-down {
  color: var(--secondary) !important;
  font-size: 2rem;
  animation: bounce 2s infinite;
  filter: drop-shadow(0 0 10px var(--twilight-glow));
}

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

/* Sections */
.py-5 {
  background: linear-gradient(180deg, var(--dark) 0%, var(--primary) 100%);
}

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

/* Badge */
.badge {
  background: var(--secondary) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 20px !important;
  font-size: 0.85rem !important;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

/* Display Headings */
.display-2,
.display-3,
.display-4,
.display-5 {
  font-weight: 800 !important;
  color: #ffffff !important;
  text-shadow: 0 0 20px var(--twilight-glow);
  margin-bottom: 1.5rem !important;
}

.h3,
.h4,
.h5,
h3,
h4,
h5 {
  color: #ffffff !important;
  font-weight: 700 !important;
}

/* Cards */
.card {
  background: rgba(44, 22, 84, 0.6) !important;
  border: 1px solid rgba(139, 92, 246, 0.3) !important;
  border-radius: 20px !important;
  transition: all 0.4s ease;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(139, 92, 246, 0.4);
  border-color: var(--secondary) !important;
}

.card-body {
  color: rgba(255, 255, 255, 0.9) !important;
}

.card-title {
  color: #ffffff !important;
  font-weight: 700 !important;
}

.card-text {
  color: rgba(255, 255, 255, 0.85) !important;
}

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

.img-fluid:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

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

.shadow-lg {
  box-shadow: 0 15px 50px rgba(139, 92, 246, 0.3) !important;
}

.shadow-sm {
  box-shadow: 0 2px 15px rgba(139, 92, 246, 0.2) !important;
}

.shadow {
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.25) !important;
}

/* Icons */
.bi {
  transition: all 0.3s ease;
}

.card:hover .bi,
.btn:hover .bi {
  transform: scale(1.1);
}

.bi-moon-stars,
.bi-moon-stars-fill {
  color: var(--secondary) !important;
  filter: drop-shadow(0 0 8px var(--twilight-glow));
}

/* Timeline */
.timeline-side {
  position: relative;
  padding-left: 3rem;
}

.timeline-block {
  position: relative;
  margin-bottom: 3rem;
}

.timeline-dot {
  position: absolute;
  left: -3rem;
  width: 20px;
  height: 20px;
  background: var(--secondary);
  border-radius: 50%;
  box-shadow: 0 0 20px var(--twilight-glow);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 20px var(--twilight-glow);
  }
  50% {
    box-shadow: 0 0 30px var(--secondary);
  }
}

.timeline-block::before {
  content: '';
  position: absolute;
  left: -2.6rem;
  top: 20px;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, var(--secondary) 0%, transparent 100%);
}

.timeline-content {
  background: rgba(44, 22, 84, 0.4);
  padding: 2rem;
  border-radius: 15px;
  border-left: 3px solid var(--secondary);
  transition: all 0.3s ease;
}

.timeline-content:hover {
  background: rgba(44, 22, 84, 0.6);
  transform: translateX(10px);
}

/* Gallery */
.parallax-gallery {
  position: relative;
  height: 400px;
  overflow: hidden;
  border-radius: 20px;
}

.gallery-image-layer {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.parallax-gallery:hover .gallery-image-layer {
  transform: scale(1.1);
}

.gallery-dot {
  position: absolute;
  width: 15px;
  height: 15px;
  background: var(--secondary);
  border-radius: 50%;
  box-shadow: 0 0 15px var(--twilight-glow);
}

/* Masonry Grid */
.masonry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

.suite-item {
  break-inside: avoid;
  margin-bottom: 2rem;
}

.suite-card {
  position: relative;
  overflow: hidden;
}

.suite-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(44, 22, 84, 0.95) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: flex-end;
  padding: 2rem;
}

.suite-card:hover .suite-overlay {
  opacity: 1;
}

/* Forms */
.form-label {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 600 !important;
  margin-bottom: 0.5rem;
}

.form-control,
.form-select {
  background: rgba(44, 22, 84, 0.5) !important;
  border: 2px solid rgba(139, 92, 246, 0.3) !important;
  color: #ffffff !important;
  border-radius: 10px !important;
  padding: 0.75rem 1rem !important;
  transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
  background: rgba(44, 22, 84, 0.7) !important;
  border-color: var(--secondary) !important;
  color: #ffffff !important;
  box-shadow: 0 0 0 0.25rem rgba(139, 92, 246, 0.25) !important;
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.5) !important;
}

.glow-input:focus {
  box-shadow: 0 0 20px var(--twilight-glow) !important;
}

.form-check-input {
  background-color: rgba(44, 22, 84, 0.5) !important;
  border: 2px solid rgba(139, 92, 246, 0.3) !important;
}

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

.form-check-input:focus {
  box-shadow: 0 0 0 0.25rem rgba(139, 92, 246, 0.25) !important;
}

.form-check-label {
  color: rgba(255, 255, 255, 0.85) !important;
}

/* Contact Card */
.contact-card {
  background: rgba(44, 22, 84, 0.4) !important;
  border: 1px solid rgba(139, 92, 246, 0.3) !important;
  border-radius: 15px !important;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.contact-card:hover {
  background: rgba(44, 22, 84, 0.6) !important;
  border-color: var(--secondary) !important;
  transform: translateY(-5px);
}

.contact-form {
  background: rgba(44, 22, 84, 0.3);
  padding: 3rem;
  border-radius: 20px;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

/* Alert */
.alert {
  background: rgba(139, 92, 246, 0.2) !important;
  border: 1px solid var(--secondary) !important;
  border-radius: 15px !important;
  color: #ffffff !important;
}

/* Table */
.table {
  color: rgba(255, 255, 255, 0.9) !important;
}

.table-hover tbody tr:hover {
  background: rgba(139, 92, 246, 0.2) !important;
  color: #ffffff !important;
}

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

/* Accordion */
.accordion-item {
  background: rgba(44, 22, 84, 0.4) !important;
  border: 1px solid rgba(139, 92, 246, 0.3) !important;
  margin-bottom: 1rem;
  border-radius: 10px !important;
  overflow: hidden;
}

.accordion-button {
  background: rgba(44, 22, 84, 0.6) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  padding: 1.25rem 1.5rem;
  border: none !important;
}

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

.accordion-button:focus {
  box-shadow: 0 0 0 0.25rem rgba(139, 92, 246, 0.25) !important;
}

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

.accordion-body {
  background: rgba(44, 22, 84, 0.3) !important;
  color: rgba(255, 255, 255, 0.9) !important;
  padding: 1.5rem;
}

/* Modal */
.modal-content {
  background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%) !important;
  border: 1px solid rgba(139, 92, 246, 0.5) !important;
  border-radius: 20px !important;
  color: #ffffff !important;
}

.modal-header {
  border-bottom: 1px solid rgba(139, 92, 246, 0.3) !important;
}

.modal-title {
  color: #ffffff !important;
}

.modal-body {
  color: rgba(255, 255, 255, 0.9) !important;
}

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

.btn-close:hover,
.btn-close-white:hover {
  opacity: 1;
}

/* Carousel */
.carousel {
  border-radius: 20px;
  overflow: hidden;
}

.carousel-item {
  transition: transform 0.6s ease-in-out;
}

.carousel-control-prev,
.carousel-control-next {
  width: 5%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: drop-shadow(0 0 10px var(--twilight-glow));
}

/* Footer */
footer {
  background: linear-gradient(180deg, var(--dark) 0%, var(--primary) 100%);
  border-top: 1px solid rgba(139, 92, 246, 0.3);
}

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

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

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

/* Social Links */
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: rgba(139, 92, 246, 0.2);
  border-radius: 50%;
  color: #ffffff !important;
  transition: all 0.3s ease;
  border: 2px solid rgba(139, 92, 246, 0.3);
}

.social-links a:hover {
  background: var(--secondary);
  border-color: var(--secondary);
  transform: translateY(-5px) rotate(360deg);
  box-shadow: 0 8px 20px var(--twilight-glow);
}

/* Privacy Content */
.privacy-content {
  background: rgba(44, 22, 84, 0.3);
  padding: 3rem;
  border-radius: 20px;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

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

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

.text-success {
  color: #10b981 !important;
}

/* Background Utilities */
.bg-dark {
  background-color: var(--dark) !important;
}

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

.bg-info {
  background-color: var(--mystic-purple) !important;
}

/* Opacity Utilities */
.opacity-10 {
  opacity: 0.1 !important;
}

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

/* Experience Waypoint */
.experience-waypoint {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

.experience-waypoint.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Sticky Top */
.sticky-top {
  top: 100px !important;
}

/* Utilities */
.min-vh-100 {
  min-height: 100vh !important;
}

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

/* Responsive Design */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(44, 22, 84, 0.98);
    padding: 1.5rem;
    border-radius: 15px;
    margin-top: 1rem;
    border: 1px solid rgba(139, 92, 246, 0.3);
  }
  
  .nav-link {
    padding: 0.75rem 1rem !important;
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
  }
  
  .nav-link:last-child {
    border-bottom: none;
  }
  
  .display-1 {
    font-size: 3rem !important;
  }
  
  .display-2 {
    font-size: 2.5rem !important;
  }
  
  .display-3 {
    font-size: 2rem !important;
  }
  
  .display-4 {
    font-size: 1.75rem !important;
  }
  
  .lead {
    font-size: 1.1rem !important;
  }
  
  .btn-lg {
    padding: 0.875rem 2rem !important;
    font-size: 0.9rem !important;
  }
  
  .hero-content {
    padding: 0 1rem;
  }
  
  .contact-form {
    padding: 2rem 1.5rem;
  }
  
  .privacy-content {
    padding: 2rem 1.5rem;
  }
  
  .masonry-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .display-1 {
    font-size: 2.5rem !important;
  }
  
  .display-2 {
    font-size: 2rem !important;
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem !important;
  }
  
  .d-flex.gap-4 {
    gap: 1rem !important;
  }
  
  .card-body {
    padding: 1.5rem !important;
  }
  
  .py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
  
  .fs-1 {
    font-size: 2rem !important;
  }
}

@media (max-width: 575.98px) {
  .navbar-brand {
    font-size: 1.2rem !important;
  }
  
  .display-1 {
    font-size: 2rem !important;
  }
  
  .lead {
    font-size: 1rem !important;
  }
  
  .btn-lg {
    padding: 0.65rem 1.25rem !important;
    font-size: 0.85rem !important;
  }
  
  .contact-form,
  .privacy-content {
    padding: 1.5rem 1rem;
  }
}

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

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

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

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

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

.slide-in-up {
  animation: slideInUp 0.8s ease-out;
}

/* Loading Animation */
.loading {
  position: relative;
  pointer-events: none;
  opacity: 0.6;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border: 3px solid rgba(139, 92, 246, 0.3);
  border-top-color: var(--secondary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}

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

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

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: var(--mystic-purple);
}

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