/* Royal Sunset Architecture Studio - Custom Styles */

:root {
  --primary-color: #6A4C93;
  --secondary-color: #F4A261;
  --primary-dark: #4a2c73;
  --secondary-dark: #d48841;
  --light-bg: #f8f9fa;
  --dark-text: #2c2c2c;
  --transition: all 0.3s ease;
}

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

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

/* Typography */
.display-2, .display-3, .display-4, .display-5, .display-6 {
  font-weight: 700;
  letter-spacing: -0.5px;
}

/* Navbar Styles */
.navbar {
  transition: var(--transition);
  padding: 1rem 0;
}

.navbar-brand {
  font-size: 1.5rem;
  color: var(--primary-color) !important;
  transition: var(--transition);
}

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

.nav-link {
  color: var(--dark-text) !important;
  font-weight: 500;
  margin: 0 0.5rem;
  padding: 0.5rem 1rem !important;
  transition: var(--transition);
  position: relative;
}

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

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

.nav-link.active {
  color: var(--primary-color) !important;
}

.nav-link:hover {
  color: var(--secondary-color) !important;
}

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

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem rgba(106, 76, 147, 0.25) !important;
}

.shadow-sm {
  box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.075) !important;
}

.sticky-top {
  backdrop-filter: blur(10px);
}

/* Hero Carousel */
.hero-carousel {
  height: 100vh;
  min-height: 600px;
}

.carousel-item {
  height: 100vh;
  min-height: 600px;
}

.hero-slide {
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.carousel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(106, 76, 147, 0.8), rgba(244, 162, 97, 0.6));
  z-index: 1;
}

.carousel-caption {
  z-index: 2;
  position: absolute;
  text-align: center;
}

.carousel-caption .display-2 {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease;
}

.carousel-caption .lead {
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1.2s ease;
  color: #fff !important;
}

.carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--secondary-color) !important;
  opacity: 0.5;
  transition: var(--transition);
}

.carousel-indicators button.active {
  opacity: 1;
  transform: scale(1.2);
}

.carousel-control-prev,
.carousel-control-next {
  width: 5%;
  opacity: 0.8;
  transition: var(--transition);
}

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

/* Buttons */
.btn {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
  border: none;
  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: #fff !important;
  border-radius: 50px;
}

.btn-lg:hover {
  background: var(--secondary-dark) !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(244, 162, 97, 0.3);
}

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

.btn-light:hover {
  background: var(--primary-color) !important;
  color: #fff !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(106, 76, 147, 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: #fff !important;
}

.btn-filter {
  background: var(--light-bg) !important;
  color: var(--dark-text) !important;
  border: 2px solid transparent !important;
  padding: 0.5rem 1.5rem;
  margin: 0.25rem;
}

.btn-filter.active,
.btn-filter:hover {
  background: var(--primary-color) !important;
  color: #fff !important;
  border-color: var(--primary-color) !important;
}

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

.event-filter-btn.active,
.event-filter-btn:hover {
  background: var(--primary-color) !important;
  color: #fff !important;
}

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

.py-4 {
  padding: 3rem 0 !important;
}

.pt-6 {
  padding-top: 6rem !important;
}

/* About Section */
.img-fluid {
  transition: var(--transition);
}

.img-fluid:hover {
  transform: scale(1.02);
}

.shadow-lg {
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

/* Services Grid */
.services-grid {
  margin-top: 3rem;
}

.service-card {
  height: 400px;
  cursor: pointer;
  transition: var(--transition);
  overflow: hidden;
}

.service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.service-overlay {
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(106, 76, 147, 0.95), rgba(244, 162, 97, 0.85));
  opacity: 0;
  transition: var(--transition);
}

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

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

.service-overlay h3 {
  color: #fff !important;
  margin-bottom: 1rem;
}

.service-overlay p {
  color: #fff !important;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: -50%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
}

.cta-section h2,
.cta-section p {
  color: #fff !important;
  position: relative;
  z-index: 1;
}

/* Testimonials */
.testimonials-section {
  background: var(--light-bg);
}

.card {
  transition: var(--transition);
  border: none !important;
  height: 100%;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15) !important;
}

.card-body {
  padding: 2rem;
}

.card-text {
  font-style: italic;
  color: #555;
  line-height: 1.8;
}

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

/* Timeline */
.timeline-container {
  border-left: 3px solid var(--secondary-color);
  position: relative;
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  padding-left: 2rem;
}

.timeline-dot {
  position: absolute;
  left: -12px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--secondary-color);
  border: 4px solid #fff;
  box-shadow: 0 0 0 3px var(--secondary-color);
  animation: pulse 2s infinite;
}

.timeline-year {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

/* Gallery */
.gallery-item {
  margin-bottom: 2rem;
}

.gallery-card {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  cursor: pointer;
  height: 300px;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(106, 76, 147, 0.9), transparent);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
}

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

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

.gallery-overlay h4,
.gallery-overlay p {
  color: #fff !important;
  transform: translateY(20px);
  transition: var(--transition);
}

.gallery-card:hover .gallery-overlay h4,
.gallery-card:hover .gallery-overlay p {
  transform: translateY(0);
}

/* Instagram Cards */
.instagram-card {
  position: relative;
  overflow: hidden;
  height: 350px;
  cursor: pointer;
}

.instagram-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

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

/* Calendar Widget */
.calendar-widget {
  background: #fff;
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.calendar-widget .badge {
  font-size: 0.75rem;
  padding: 0.5rem 1rem;
}

.bg-success {
  background-color: #28a745 !important;
}

.bg-warning {
  background-color: #ffc107 !important;
}

.bg-info {
  background-color: #17a2b8 !important;
}

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

.form-control,
.form-select {
  padding: 0.75rem 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  transition: var(--transition);
  background: #fff !important;
  color: var(--dark-text) !important;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 0.25rem rgba(106, 76, 147, 0.25) !important;
  outline: none;
}

.form-control::placeholder {
  color: #999 !important;
}

/* Accordion */
.accordion-item {
  border: none !important;
  margin-bottom: 1rem;
  background: #fff;
  border-radius: 10px !important;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.accordion-button {
  background: var(--light-bg) !important;
  color: var(--dark-text) !important;
  font-weight: 600;
  padding: 1.25rem;
  border: none !important;
}

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

.accordion-button:focus {
  box-shadow: none !important;
  border: none !important;
}

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

.accordion-body {
  padding: 1.5rem;
  background: #fff;
  color: var(--dark-text);
}

/* Badge */
.badge {
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 20px;
}

/* Footer */
footer {
  background: var(--primary-color);
  color: #fff;
  padding: 3rem 0 1rem;
}

footer h4,
footer h5,
footer h6 {
  color: #fff !important;
  margin-bottom: 1.5rem;
}

footer p,
footer a {
  color: rgba(255, 255, 255, 0.8) !important;
}

footer a:hover {
  color: var(--secondary-color) !important;
  text-decoration: none;
}

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

.text-decoration-none {
  text-decoration: none !important;
}

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

/* Utilities */
.text-white {
  color: #fff !important;
}

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

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

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

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

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

.shadow {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

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

.position-relative {
  position: relative !important;
}

.position-absolute {
  position: absolute !important;
}

.top-0 {
  top: 0 !important;
}

.bottom-0 {
  bottom: 0 !important;
}

.start-0 {
  left: 0 !important;
}

.w-100 {
  width: 100% !important;
}

.h-100 {
  height: 100% !important;
}

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

.d-flex {
  display: flex !important;
}

.d-grid {
  display: grid !important;
}

.d-block {
  display: block !important;
}

.d-none {
  display: none !important;
}

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

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

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

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

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

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

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

.text-start {
  text-align: left !important;
}

.ms-auto {
  margin-left: auto !important;
}

.me-2 {
  margin-right: 0.5rem !important;
}

.me-3 {
  margin-right: 1rem !important;
}

.ms-2 {
  margin-left: 0.5rem !important;
}

.ms-3 {
  margin-left: 1rem !important;
}

.ms-4 {
  margin-left: 1.5rem !important;
}

.mt-2 {
  margin-top: 0.5rem !important;
}

.mt-3 {
  margin-top: 1rem !important;
}

.mt-4 {
  margin-top: 1.5rem !important;
}

.mt-5 {
  margin-top: 3rem !important;
}

.mt-md-0 {
  margin-top: 0 !important;
}

.mb-0 {
  margin-bottom: 0 !important;
}

.mb-1 {
  margin-bottom: 0.25rem !important;
}

.mb-2 {
  margin-bottom: 0.5rem !important;
}

.mb-3 {
  margin-bottom: 1rem !important;
}

.mb-4 {
  margin-bottom: 1.5rem !important;
}

.mb-5 {
  margin-bottom: 3rem !important;
}

.mb-lg-0 {
  margin-bottom: 0 !important;
}

.mb-md-0 {
  margin-bottom: 0 !important;
}

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

.p-0 {
  padding: 0 !important;
}

.p-3 {
  padding: 1rem !important;
}

.p-4 {
  padding: 1.5rem !important;
}

.p-5 {
  padding: 3rem !important;
}

.px-0 {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

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

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

.px-5 {
  padding-left: 3rem !important;
  padding-right: 3rem !important;
}

.py-2 {
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
}

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

.ps-4 {
  padding-left: 1.5rem !important;
}

.ps-lg-5 {
  padding-left: 3rem !important;
}

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

.g-0 {
  --bs-gutter-x: 0;
  --bs-gutter-y: 0;
}

.g-3 {
  --bs-gutter-x: 1rem;
  --bs-gutter-y: 1rem;
}

.g-4 {
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 1.5rem;
}

.fw-bold {
  font-weight: 700 !important;
}

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

.fs-5 {
  font-size: 1.25rem !important;
}

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

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

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

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

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

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 var(--secondary-color);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(244, 162, 97, 0);
  }
}

@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-in {
  animation: fadeInUp 0.8s ease forwards;
}

/* Responsive Design */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: #fff;
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }
  
  .nav-link {
    padding: 0.75rem 1rem !important;
  }
  
  .nav-link::after {
    display: none;
  }
  
  .hero-carousel,
  .carousel-item {
    height: 70vh;
    min-height: 500px;
  }
  
  .carousel-caption .display-2 {
    font-size: 2.5rem;
  }
  
  .service-card {
    height: 300px;
    margin-bottom: 1rem;
  }
  
  .gallery-card {
    height: 250px;
  }
  
  .instagram-card {
    height: 250px;
  }
  
  .py-5 {
    padding: 3rem 0 !important;
  }
  
  .display-2 {
    font-size: 2.5rem !important;
  }
  
  .display-3 {
    font-size: 2rem !important;
  }
  
  .display-4 {
    font-size: 1.75rem !important;
  }
  
  .display-5 {
    font-size: 1.5rem !important;
  }
}

@media (max-width: 767.98px) {
  .hero-carousel,
  .carousel-item {
    height: 60vh;
    min-height: 450px;
  }
  
  .carousel-caption .display-2 {
    font-size: 2rem;
  }
  
  .carousel-caption .lead {
    font-size: 1rem;
  }
  
  .btn-lg {
    padding: 0.75rem 2rem !important;
  }
  
  .px-5 {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }
  
  .service-card {
    height: 250px;
  }
  
  .timeline-container {
    padding-left: 1rem;
  }
  
  .timeline-item {
    padding-left: 1.5rem;
  }
  
  .d-md-block {
    display: none !important;
  }
  
  .text-md-start {
    text-align: center !important;
  }
  
  .text-md-end {
    text-align: center !important;
  }
  
  .mt-md-0 {
    margin-top: 1rem !important;
  }
  
  .mb-md-0 {
    margin-bottom: 1rem !important;
  }
}

@media (max-width: 575.98px) {
  .hero-carousel,
  .carousel-item {
    height: 50vh;
    min-height: 400px;
  }
  
  .carousel-caption .display-2 {
    font-size: 1.75rem;
  }
  
  .display-3 {
    font-size: 1.75rem !important;
  }
  
  .display-4 {
    font-size: 1.5rem !important;
  }
  
  .display-5 {
    font-size: 1.25rem !important;
  }
  
  .display-6 {
    font-size: 1.1rem !important;
  }
  
  .btn-lg {
    padding: 0.6rem 1.5rem !important;
    font-size: 0.9rem;
  }
  
  .service-card {
    height: 200px;
  }
  
  .gallery-card,
  .instagram-card {
    height: 200px;
  }
  
  .card-body {
    padding: 1.5rem;
  }
}

@media (min-width: 992px) {
  .col-lg-2 {
    flex: 0 0 16.666667%;
    max-width: 16.666667%;
  }
  
  .col-lg-3 {
    flex: 0 0 25%;
    max-width: 25%;
  }
  
  .col-lg-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }
  
  .col-lg-5 {
    flex: 0 0 41.666667%;
    max-width: 41.666667%;
  }
  
  .col-lg-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
  
  .col-lg-7 {
    flex: 0 0 58.333333%;
    max-width: 58.333333%;
  }
  
  .col-lg-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
  }
  
  .col-lg-10 {
    flex: 0 0 83.333333%;
    max-width: 83.333333%;
  }
  
  .ps-lg-5 {
    padding-left: 3rem !important;
  }
  
  .mb-lg-0 {
    margin-bottom: 0 !important;
  }
}

@media (min-width: 768px) {
  .col-md-2 {
    flex: 0 0 16.666667%;
    max-width: 16.666667%;
  }
  
  .col-md-3 {
    flex: 0 0 25%;
    max-width: 25%;
  }
  
  .col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }
  
  .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
  
  .col-md-7 {
    flex: 0 0 58.333333%;
    max-width: 58.333333%;
  }
  
  .d-md-block {
    display: block !important;
  }
  
  .text-md-start {
    text-align: left !important;
  }
  
  .text-md-end {
    text-align: right !important;
  }
}

.col-6 {
  flex: 0 0 50%;
  max-width: 50%;
}

.col-12 {
  flex: 0 0 100%;
  max-width: 100%;
}

/* Print Styles */
@media print {
  .navbar,
  .btn,
  footer {
    display: none;
  }
  
  body {
    font-size: 12pt;
    color: #000;
  }
}