/* Midnight Cosmos Architecture Studio Theme */

:root {
  --primary-color: #1a237e;
  --secondary-color: #ffd700;
  --dark-bg: #0a0e27;
  --light-text: #ffffff;
  --muted-text: #b0b8d4;
  --card-bg: rgba(26, 35, 126, 0.7);
  --gradient-overlay: linear-gradient(135deg, rgba(26, 35, 126, 0.95), rgba(10, 14, 39, 0.98));
}

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

html {
  scroll-behavior: smooth;
}

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

/* Night Sky Background */
.night-sky-bg {
  background: linear-gradient(to bottom, #0a0e27 0%, #1a237e 50%, #0f1429 100%) !important;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}

.stars-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(2px 2px at 20px 30px, #ffd700, transparent),
    radial-gradient(2px 2px at 60px 70px, #ffffff, transparent),
    radial-gradient(1px 1px at 50px 50px, #ffd700, transparent),
    radial-gradient(1px 1px at 130px 80px, #ffffff, transparent),
    radial-gradient(2px 2px at 90px 10px, #ffd700, transparent);
  background-size: 200px 200px;
  animation: twinkle 8s infinite alternate;
  opacity: 0.8;
  z-index: 1;
}

.constellation-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 15% 20%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 85% 30%, rgba(255, 215, 0, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 50% 70%, rgba(255, 215, 0, 0.05) 0%, transparent 50%);
  animation: constellation-pulse 15s infinite alternate;
  z-index: 2;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

@keyframes constellation-pulse {
  0% { opacity: 0.3; }
  100% { opacity: 0.7; }
}

/* Navbar Styles */
.navbar {
  background: rgba(26, 35, 126, 0.95) !important;
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--secondary-color);
  padding: 1rem 0 !important;
  transition: all 0.3s ease;
  z-index: 1000;
}

.floating-nav {
  box-shadow: 0 4px 30px rgba(255, 215, 0, 0.3);
}

.navbar-brand {
  font-size: 1.8rem !important;
  font-weight: 700 !important;
  color: var(--secondary-color) !important;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
  transition: all 0.3s ease;
}

.navbar-brand:hover {
  color: #fff !important;
  text-shadow: 0 0 30px var(--secondary-color);
  transform: scale(1.05);
}

.navbar-brand .bi {
  margin-right: 0.5rem;
  animation: rotate-star 10s linear infinite;
}

@keyframes rotate-star {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.navbar-dark .navbar-toggler {
  border-color: var(--secondary-color) !important;
  color: var(--secondary-color) !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='%23ffd700' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.navbar-nav .nav-link {
  color: var(--light-text) !important;
  font-weight: 500 !important;
  margin: 0 0.5rem !important;
  padding: 0.5rem 1rem !important;
  position: relative;
  transition: all 0.3s ease !important;
  border-radius: 5px;
}

.navbar-nav .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%);
}

.navbar-nav .nav-link:hover {
  color: var(--secondary-color) !important;
  background: rgba(255, 215, 0, 0.1) !important;
}

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

.navbar-nav .nav-link.active {
  color: var(--secondary-color) !important;
  background: rgba(255, 215, 0, 0.15) !important;
  font-weight: 700 !important;
}

/* Hero Section */
.hero-section {
  position: relative;
  z-index: 3;
  padding: 2rem 0;
}

.hero-content {
  z-index: 4;
  position: relative;
}

.hero-section .display-2 {
  font-size: 3.5rem !important;
  font-weight: 800 !important;
  color: var(--light-text) !important;
  text-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
  line-height: 1.2;
}

.hero-section .lead {
  font-size: 1.4rem !important;
  color: var(--muted-text) !important;
  font-weight: 400 !important;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.animate-fade-in-delay {
  animation: fadeIn 1s ease-out 0.3s forwards;
  opacity: 0;
}

.animate-fade-in-delay-2 {
  animation: fadeIn 1s ease-out 0.6s forwards;
  opacity: 0;
}

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

.animate-float {
  animation: float 6s ease-in-out infinite;
}

/* Buttons */
.btn {
  border-radius: 50px !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease !important;
  position: relative;
  overflow: hidden;
  border: 2px solid transparent !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-light {
  background: var(--secondary-color) !important;
  color: var(--primary-color) !important;
  border-color: var(--secondary-color) !important;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.btn-light:hover {
  background: #ffed4e !important;
  color: var(--primary-color) !important;
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(255, 215, 0, 0.5);
}

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

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

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

.btn-primary:hover {
  background: #ffed4e !important;
  color: var(--primary-color) !important;
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(255, 215, 0, 0.5);
}

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

.btn-outline-primary:hover {
  background: var(--secondary-color) !important;
  color: var(--primary-color) !important;
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(255, 215, 0, 0.4);
}

/* Booking Widget */
.booking-widget {
  position: relative;
  z-index: 4;
}

.constellation-card {
  background: var(--card-bg) !important;
  backdrop-filter: blur(15px);
  border: 2px solid rgba(255, 215, 0, 0.3) !important;
  border-radius: 20px !important;
  box-shadow: 0 8px 40px rgba(255, 215, 0, 0.2);
  transition: all 0.4s ease;
  color: var(--light-text) !important;
}

.constellation-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 50px rgba(255, 215, 0, 0.4);
  border-color: var(--secondary-color) !important;
}

.constellation-card h3 {
  color: var(--secondary-color) !important;
  font-weight: 700;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

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

.form-label .bi {
  color: var(--secondary-color) !important;
  margin-right: 0.5rem;
}

.form-control, .form-select {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 2px solid rgba(255, 215, 0, 0.3) !important;
  color: var(--light-text) !important;
  border-radius: 10px !important;
  padding: 0.75rem 1rem !important;
  transition: all 0.3s ease !important;
  font-weight: 500;
}

.form-control::placeholder {
  color: var(--muted-text) !important;
  opacity: 0.8;
}

.form-control:focus, .form-select:focus {
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: var(--secondary-color) !important;
  color: var(--light-text) !important;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.3) !important;
}

.form-select option {
  background: var(--primary-color) !important;
  color: var(--light-text) !important;
}

/* Services Showcase */
.services-showcase {
  background: rgba(10, 14, 39, 0.6);
  position: relative;
  z-index: 3;
}

.services-showcase .display-4 {
  color: var(--secondary-color) !important;
  font-weight: 800 !important;
  text-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
  margin-bottom: 3rem;
}

.service-card {
  background: var(--card-bg) !important;
  backdrop-filter: blur(15px);
  border: 2px solid rgba(255, 215, 0, 0.2) !important;
  border-radius: 20px !important;
  transition: all 0.4s ease;
  overflow: hidden;
  height: 100%;
  color: var(--light-text) !important;
}

.service-card:hover {
  transform: translateY(-15px) scale(1.02);
  border-color: var(--secondary-color) !important;
  box-shadow: 0 15px 50px rgba(255, 215, 0, 0.4);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--secondary-color), #ffed4e);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  transition: all 0.4s ease;
}

.service-card:hover .service-icon {
  transform: rotate(360deg) scale(1.1);
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.6);
}

.service-icon .bi {
  color: var(--primary-color) !important;
  font-size: 2.5rem;
}

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

.service-card p {
  color: var(--muted-text) !important;
  line-height: 1.8;
}

.service-card .btn {
  margin-top: 1rem;
}

/* Testimonials Section */
.testimonials-section {
  background: linear-gradient(135deg, rgba(26, 35, 126, 0.8), rgba(10, 14, 39, 0.9));
  position: relative;
  z-index: 3;
}

.testimonial-card {
  background: var(--card-bg) !important;
  backdrop-filter: blur(15px);
  border: 2px solid rgba(255, 215, 0, 0.2) !important;
  border-radius: 20px !important;
  padding: 2rem !important;
  transition: all 0.4s ease;
  height: 100%;
  color: var(--light-text) !important;
}

.testimonial-card:hover {
  transform: translateY(-10px);
  border-color: var(--secondary-color) !important;
  box-shadow: 0 12px 40px rgba(255, 215, 0, 0.3);
}

.testimonial-card .stars {
  color: var(--secondary-color) !important;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.testimonial-card .rounded-circle {
  border: 3px solid var(--secondary-color);
  width: 80px;
  height: 80px;
  object-fit: cover;
}

.testimonial-card h5 {
  color: var(--secondary-color) !important;
  font-weight: 700;
}

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

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(26, 35, 126, 0.3));
  border: 2px solid var(--secondary-color);
  border-radius: 20px;
  padding: 4rem 2rem !important;
  position: relative;
  z-index: 3;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
  animation: rotate 20s linear infinite;
}

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

.cta-section h2 {
  color: var(--secondary-color) !important;
  font-weight: 800 !important;
  text-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
}

.cta-section p {
  color: var(--light-text) !important;
  font-size: 1.2rem;
}

/* Footer */
.footer {
  background: rgba(26, 35, 126, 0.95) !important;
  border-top: 3px solid var(--secondary-color);
  color: var(--light-text) !important;
  position: relative;
  z-index: 3;
}

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

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

.footer .list-unstyled a {
  color: var(--muted-text) !important;
  text-decoration: none !important;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
}

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

.footer .list-unstyled a .bi {
  margin-right: 0.5rem;
  color: var(--secondary-color);
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: rgba(255, 215, 0, 0.1);
  border: 2px solid var(--secondary-color);
  border-radius: 50%;
  color: var(--secondary-color) !important;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-icons a:hover {
  background: var(--secondary-color);
  color: var(--primary-color) !important;
  transform: translateY(-5px) rotate(360deg);
  box-shadow: 0 5px 20px rgba(255, 215, 0, 0.4);
}

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

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

/* Cards */
.card {
  background: var(--card-bg) !important;
  backdrop-filter: blur(15px);
  border: 2px solid rgba(255, 215, 0, 0.2) !important;
  border-radius: 20px !important;
  transition: all 0.4s ease;
  color: var(--light-text) !important;
}

.card:hover {
  transform: translateY(-10px);
  border-color: var(--secondary-color) !important;
  box-shadow: 0 12px 40px rgba(255, 215, 0, 0.3);
}

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

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

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

.card-img-top {
  border-radius: 20px 20px 0 0 !important;
  transition: all 0.4s ease;
}

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

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

.parallax-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-overlay);
  z-index: 1;
}

.parallax-section > * {
  position: relative;
  z-index: 2;
}

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

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

.carousel-indicators [data-bs-target] {
  background-color: var(--secondary-color) !important;
  border: 2px solid var(--secondary-color);
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: rgba(255, 215, 0, 0.5);
  border-radius: 50%;
  padding: 20px;
}

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

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

.text-white-50 {
  color: var(--muted-text) !important;
}

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

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

/* Background Colors */
.bg-light {
  background-color: rgba(255, 255, 255, 0.1) !important;
}

.bg-white {
  background-color: rgba(255, 255, 255, 0.05) !important;
}

/* Shadows */
.shadow {
  box-shadow: 0 8px 30px rgba(255, 215, 0, 0.2) !important;
}

.shadow-sm {
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.15) !important;
}

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

/* Utility Classes */
.position-sticky {
  position: sticky !important;
  top: 100px !important;
  z-index: 10;
}

.overflow-hidden {
  overflow: hidden !important;
}

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

/* Privacy Content */
.privacy-content {
  background: var(--card-bg);
  backdrop-filter: blur(15px);
  border: 2px solid rgba(255, 215, 0, 0.2);
  border-radius: 20px;
  padding: 3rem;
  color: var(--light-text) !important;
}

.privacy-content h2,
.privacy-content h3,
.privacy-content h4 {
  color: var(--secondary-color) !important;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.privacy-content p {
  color: var(--muted-text) !important;
  line-height: 1.8;
}

.privacy-content .bi {
  color: var(--secondary-color) !important;
  margin-right: 0.5rem;
}

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

.bi-star-fill,
.bi-moon-stars-fill,
.bi-calendar-star {
  color: var(--secondary-color) !important;
}

/* Responsive Design */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(26, 35, 126, 0.98);
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
    border: 2px solid var(--secondary-color);
  }

  .navbar-nav .nav-link {
    margin: 0.25rem 0 !important;
    padding: 0.75rem 1rem !important;
  }

  .hero-section .display-2 {
    font-size: 2.5rem !important;
  }

  .hero-section .lead {
    font-size: 1.1rem !important;
  }

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

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

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

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

@media (max-width: 767.98px) {
  .hero-section .display-2 {
    font-size: 2rem !important;
  }

  .hero-section .lead {
    font-size: 1rem !important;
  }

  .constellation-card {
    margin-top: 2rem;
  }

  .service-card {
    margin-bottom: 1.5rem;
  }

  .cta-section {
    padding: 2rem 1rem !important;
  }

  .footer .col-md-3,
  .footer .col-md-4 {
    margin-bottom: 2rem;
  }
}

@media (max-width: 575.98px) {
  .navbar-brand {
    font-size: 1.4rem !important;
  }

  .hero-section .display-2 {
    font-size: 1.75rem !important;
  }

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

  .btn-lg {
    padding: 0.625rem 1.75rem !important;
  }

  .d-flex.gap-3 {
    gap: 0.75rem !important;
  }

  .service-icon {
    width: 60px;
    height: 60px;
  }

  .service-icon .bi {
    font-size: 2rem;
  }
}

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

a {
  text-decoration: none !important;
  color: var(--secondary-color) !important;
  transition: all 0.3s ease;
}

a:hover {
  color: #ffed4e !important;
}

/* Loading Animation */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.loading {
  animation: spin 1s linear infinite;
}

/* Scroll to Top Button */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--secondary-color);
  color: var(--primary-color) !important;
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(255, 215, 0, 0.4);
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 30px rgba(255, 215, 0, 0.6);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #ffed4e;
}

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

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