/* Custom CSS */
:root {
    --primary-red: #700000;
    --dark-red: #5a0000;
    --darker-red: #2a0000;
    --light-bg: #f8f5f0;
    --gold: #caa349;
    --dark-gold: #b78e38;
    --text-dark: #333333;
    --text-light: #777777;
}

/* Base Styles */
body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6,
.section-header {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--text-dark);
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Section Styling */
.section-header {
    position: relative;
    margin-bottom: 2rem;
}

.section-subtitle {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.divider {
    width: 80px;
    height: 3px;
    background-color: var(--gold);
    margin: 1rem auto;
}

/* Hero Carousel */
#heroCarousel {
    width: 100%;
    overflow: hidden;
}

#heroCarousel .carousel-item,
#heroCarousel .carousel-item img {
    width: 100%;
    height: 100vh;
    object-fit: cover;
}

#heroCarousel .carousel-caption {
    bottom: 30%;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

#heroCarousel .carousel-caption h1,
#heroCarousel .carousel-caption h2 {
    font-size: 3.5rem;
    animation: fadeInUp 1s ease;
}

#heroCarousel .carousel-caption p {
    font-size: 1.5rem;
    animation: fadeInUp 1.5s ease;
}

/* Floating CTA */
.floating-cta {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 999;
}

.floating-cta .btn {
    border-radius: 50px;
    padding: 12px 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    animation: pulse 2s infinite;
}

/* About Section */
.about-section {
    background-color: var(--primary-red);
    color: white;
    position: relative;
    overflow: hidden;
    padding: 5rem 0;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('img/texture.png') repeat;
    opacity: 0.05;
    pointer-events: none;
}

/* Info Boxes */
.info-box {
    background-color: var(--darker-red);
    color: white;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
}

.info-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(202,163,73,0.1) 0%, rgba(202,163,73,0) 100%);
    z-index: 1;
}

.info-box > * {
    position: relative;
    z-index: 2;
}

.info-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.info-icon {
    font-size: 2rem;
    color: var(--gold);
}

/* Why Section */
.why-section {
    background-color: white;
    padding: 5rem 0;
}

.feature-card {
    transition: all 0.3s ease;
    border: none !important;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}

.feature-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(202,163,73,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--gold);
    font-size: 1.5rem;
}

/* Gallery Section */
.gallery-section {
    padding: 5rem 0;
    background-color: var(--light-bg);
}

.gallery-carousel .carousel-item img {
    height: 400px;
    object-fit: cover;
}

/* Products Section */
.product-section {
    background-color: var(--dark-red);
    color: white;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.product-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('img/dot-pattern.png') repeat;
    opacity: 0.05;
    pointer-events: none;
}

.product-card {
    background-color: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    background-color: rgba(0,0,0,0.3);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

/* Amenities Section */
.amenities-section {
    padding: 5rem 0;
}

.amenity-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.amenity-card img {
    transition: all 0.5s ease;
}

.amenity-card:hover img {
    transform: scale(1.05);
}

.amenity-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    color: white;
    opacity: 0;
    transition: all 0.3s ease;
}

.amenity-card:hover .amenity-overlay {
    opacity: 1;
}

/* Layout Section */
.layout-section {
    padding: 5rem 0;
}

.layout-card {
    transition: all 0.3s ease;
    border: none !important;
    overflow: hidden;
}

.layout-card img {
    transition: all 0.5s ease;
}

.layout-card:hover {
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}

.layout-card:hover img {
    transform: scale(1.05);
}

/* Location Section */
.location-section {
    padding: 5rem 0;
}

.location-map-container {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.location-map {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.location-pin {
    position: absolute;
    font-size: 2rem;
    color: var(--primary-red);
    transform: translate(-50%, -100%);
    animation: bounce 2s infinite;
}

.nav-tabs .nav-link {
    color: var(--text-dark);
    font-weight: 600;
    border: none;
    padding: 0.75rem 1.5rem;
    position: relative;
}

.nav-tabs .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background-color: var(--gold);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-tabs .nav-link:hover::after,
.nav-tabs .nav-link.active::after {
    width: 50%;
}

.nav-tabs .nav-link.active {
    color: var(--primary-red);
    background-color: transparent;
}

.list-group-item {
    border-color: rgba(0,0,0,0.05) !important;
    padding: 1rem 0;
}

.badge.bg-gold {
    background-color: var(--gold) !important;
    color: white;
}

/* Testimonials Section */
.testimonials-section {
    padding: 5rem 0;
    background-color: var(--light-bg);
}

.testimonial-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.testimonial-rating {
    color: var(--gold);
    font-size: 1.25rem;
}

.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    position: relative;
}

.testimonial-text::before,
.testimonial-text::after {
    content: '"';
    font-size: 2rem;
    color: var(--gold);
    opacity: 0.3;
    position: absolute;
}

.testimonial-text::before {
    top: -15px;
    left: -10px;
}

.testimonial-text::after {
    bottom: -25px;
    right: -10px;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('img/cta-bg.jpg') center/cover no-repeat;
    padding: 5rem 0;
}

/* Footer */
.footer {
    background-color: var(--dark-red);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('img/footer-texture.png') repeat;
    opacity: 0.05;
    pointer-events: none;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--gold);
    transform: translateY(-3px);
}

.footer hr {
    border-color: rgba(255,255,255,0.1);
}

.scroll-top-btn {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--gold) !important;
    border: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
}

/* Buttons */
.btn-gold {
    background-color: var(--gold);
    color: white;
    font-weight: 600;
    border: none;
    padding: 0.75rem 1.75rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-gold:hover {
    background-color: var(--dark-gold);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(202,163,73,0.3);
}

.btn-gold:active {
    transform: translateY(0);
}

.btn-outline-light:hover {
    background-color: white;
    color: var(--primary-red);
}

/* Modal */
.modal-content {
    border-radius: 10px;
    border: none;
}

.modal-header {
    padding: 1.5rem 1.5rem 0;
}

.modal-body {
    padding: 0 1.5rem 1.5rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(202,163,73,0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(202,163,73,0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(202,163,73,0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translate(-50%, -100%);
    }
    40% {
        transform: translate(-50%, -120%);
    }
    60% {
        transform: translate(-50%, -90%);
    }
}

/* Responsive Adjustments */
@media (max-width: 1199.98px) {
    #heroCarousel .carousel-caption h1,
    #heroCarousel .carousel-caption h2 {
        font-size: 3rem;
    }
}

@media (max-width: 991.98px) {
    #heroCarousel .carousel-caption h1,
    #heroCarousel .carousel-caption h2 {
        font-size: 2.5rem;
    }
    
    #heroCarousel .carousel-caption p {
        font-size: 1.25rem;
    }
    
    .section-header h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 767.98px) {
    #heroCarousel .carousel-item,
    #heroCarousel .carousel-item img {
        height: 60vh;
    }
    
    #heroCarousel .carousel-caption h1,
    #heroCarousel .carousel-caption h2 {
        font-size: 2rem;
    }
    
    #heroCarousel .carousel-caption p {
        font-size: 1rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .floating-cta {
        left: 15px;
        bottom: 15px;
    }
    
    .floating-cta .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 575.98px) {
    #heroCarousel .carousel-caption h1,
    #heroCarousel .carousel-caption h2 {
        font-size: 1.75rem;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .gallery-carousel .carousel-item img {
        height: 250px;
    }
    
    .location-map-container {
        height: 300px;
    }
}

/* Scroll Reveal Animation */
[data-aos] {
    transition-property: transform, opacity;
}

/* Show scroll to top button when scrolled */
window.addEventListener('scroll', function() {
    const scrollBtn = document.querySelector('.scroll-top-btn');
    if (window.scrollY > 300) {
        scrollBtn.classList.add('show');
    } else {
        scrollBtn.classList.remove('show');
    }
});