
:root {
    --primary-color: #8B5A96;
    --secondary-color: #D4A5A5;
    --accent-color: #F4E4D6;
    --dark-color: #2C1810;
    --light-color: #FDF8F3;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch; /* Improve scrolling on iOS devices */
    will-change: scroll-position; /* Optimize for scrolling */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
}

.hero-section {
    color: white;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    will-change: transform; /* Optimize video rendering */
    transform: translateZ(0); /* Force hardware acceleration */
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(139, 90, 150, 0.8) 0%, rgba(212, 165, 165, 0.8) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
}

.phone-number {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 15px 30px;
    display: inline-block;
    margin: 20px 0;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Service Items - New Layout */
.service-item {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-title {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.service-description {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
}

.service-cta {
    text-align: center;
}

.cta-text {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.btn-call {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-call:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

.btn-whatsapp {
    background: #25D366;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin-left: 10px;
}

.btn-whatsapp:hover {
    background: #128C7E;
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

@media (max-width: 768px) {
    .btn-whatsapp {
        margin-left: 0;
        margin-top: 10px;
    }
}

.service-image-container {
    text-align: center;
}

.service-image-large {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    will-change: transform; /* Optimize image rendering */
    transform: translateZ(0); /* Force hardware acceleration */
}

.service-content-left,
.service-content-right {
    padding: 20px;
}

/* Responsive adjustments for services */
@media (max-width: 768px) {
    .service-item {
        padding: 20px;
    }
    
    .service-title {
        font-size: 1.5rem;
        text-align: center;
    }
    
    .service-description {
        font-size: 1rem;
        text-align: center;
    }
    
    .service-image-large {
        height: 300px;
        margin-top: 20px;
        margin-bottom: 20px;
    }
    
    .service-content-left,
    .service-content-right {
        padding: 10px;
    }
    
    .service-cta {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .service-cta .btn-call,
    .service-cta .btn-whatsapp {
        width: 100%;
        margin-bottom: 10px;
        text-align: center;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .service-item {
        padding: 15px;
    }
    
    .service-title {
        font-size: 1.3rem;
    }
    
    .service-description {
        font-size: 0.9rem;
    }
    
    .service-image-large {
        height: 250px;
    }
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: white;
    font-size: 1.5rem;
}

.testimonial-card {
    background: var(--light-color);
    border-radius: 20px;
    padding: 30px;
    margin: 20px 0;
    border-left: 5px solid var(--primary-color);
}

.why-choose-section {
    background: var(--light-color);
    padding: 80px 0;
}

.feature-item {
    display: flex;
    align-items: center;
    margin: 20px 0;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-right: 20px;
}

.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 80px 0;
}

.footer {
    background: var(--dark-color);
    color: white;
    padding: 60px 0 30px;
}

.footer h5 {
    color: var(--accent-color);
    margin-bottom: 20px;
}

.footer a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--accent-color);
}

.btn-primary {
    background: var(--primary-color);
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-outline-light {
    border: 2px solid white;
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary-color);
}

.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .navbar-toggler {
        padding: 0.25rem 0.5rem;
        font-size: 0.85rem;
    }
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--primary-color) !important;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.section-title p {
    color: #666;
    font-size: 1.1rem;
}

.interior-gallery {
    background: var(--light-color);
    padding: 80px 0;
}

.gallery-item {
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.contact-info {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin: 0 auto 20px;
}

/* Call Button */
.call-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.call-button:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
    color: white;
    text-decoration: none;
}

/* WhatsApp Button */
.whatsapp-button {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.whatsapp-button:hover {
    background: #128C7E;
    transform: scale(1.1);
    color: white;
    text-decoration: none;
}

/* Popup Modal */
.modal-custom {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-radius: 20px 20px 0 0;
    padding: 30px;
    animation: slideUp 0.3s ease;
    max-height: 80vh;
    overflow-y: auto;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-title {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
}

.close-modal {
    background: none;
    border: none;
    font-size: 2rem;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal:hover {
    color: var(--primary-color);
}

.contact-form {
    margin-top: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    border: 2px solid #eee;
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(139, 90, 150, 0.25);
}

.btn-submit {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.contact-info-modal {
    background: var(--light-color);
    border-radius: 15px;
    padding: 20px;
    margin-top: 20px;
}

.contact-info-modal h6 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.contact-info-modal p {
    margin-bottom: 5px;
    color: #666;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        min-height: 100vh;
        padding: 100px 0 40px;
        text-align: center;
    }
    
    .hero-video-background video {
        object-position: center;
    }
    
    .hero-content h1 {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .hero-content .lead {
        font-size: 1rem;
        margin-bottom: 15px;
    }
    
    .phone-number {
        padding: 10px 20px;
        margin: 15px 0;
        width: 100%;
        text-align: center;
    }
    
    .btn-outline-light, .btn-light {
        padding: 10px 20px;
        font-size: 0.9rem;
        margin-bottom: 10px;
        width: 100%;
        display: block;
    }
    
    .call-button {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .whatsapp-button {
        bottom: 80px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .modal-content {
        padding: 20px;
    }
    
    /* Optimize for mobile scrolling */
    .service-item,
    .testimonial-card,
    .contact-info,
    .card {
        transform: translateZ(0); /* Force hardware acceleration */
        backface-visibility: hidden; /* Prevent flickering */
    }
    
    /* Reduce animation complexity on mobile */
    .service-item:hover {
        transform: none;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }
}

/* Additional responsive adjustments for extra small devices */
@media (max-width: 576px) {
    .hero-section {
        min-height: 100vh;
        padding: 80px 0 30px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content .lead {
        font-size: 0.9rem;
    }
    
    .phone-number {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    .btn-outline-light, .btn-light {
        padding: 8px 15px;
        font-size: 0.85rem;
    }
}

/* Bottom Popup Styles */
.popup-trigger-btn {
    position: fixed;
    bottom: 170px;
    right: 30px;
    z-index: 3000;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}
.popup-trigger-btn:hover {
    background: var(--secondary-color);
}

.bottom-popup-modal {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 4000;
    background: rgba(44,24,16,0.55); /* Darker overlay for contrast */
    justify-content: center;
    align-items: flex-end;
    width: 100vw;
    height: 100vh;
    animation: fadeIn 0.3s;
    pointer-events: auto; /* Ensure clicks work properly */
    overscroll-behavior: contain; /* Prevent scroll chaining */
}

.bottom-popup-content {
    background: #fff;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 8px 32px rgba(44,24,16,0.25), 0 1.5px 8px rgba(44,24,16,0.10);
    padding: 32px 24px 24px 24px;
    max-width: 400px;
    width: 90vw;
    margin: 0 auto 32px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: slideUp 0.4s cubic-bezier(.4,0,.2,1);
    position: relative;
    overscroll-behavior: contain; /* Prevent scroll chaining */
    max-height: 80vh; /* Limit height to prevent overflow issues */
    overflow-y: auto; /* Allow scrolling within the popup if needed */
}

.bottom-popup-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.bottom-popup-title {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 1.7rem;
    font-family: 'Playfair Display', serif;
}

.bottom-popup-offer {
    text-align: center;
    margin-bottom: 8px;
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 500;
}

.bottom-popup-desc {
    text-align: center;
    margin-bottom: 18px;
    font-size: 1rem;
    color: var(--secondary-color);
}

.bottom-popup-call {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: var(--primary-color);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 16px;
    padding: 12px 0;
    margin-bottom: 12px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(139,90,150,0.10);
    transition: background 0.3s;
}
.bottom-popup-call i {
    margin-right: 10px;
    font-size: 1.2rem;
}
.bottom-popup-call:hover {
    background: var(--secondary-color);
    color: #fff;
}

.bottom-popup-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: #25D366;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 16px;
    padding: 12px 0;
    margin-bottom: 16px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(37,211,102,0.10);
    transition: background 0.3s;
}
.bottom-popup-whatsapp i {
    margin-right: 10px;
    font-size: 1.2rem;
}
.bottom-popup-whatsapp:hover {
    background: #128C7E;
    color: #fff;
}

.bottom-popup-hours {
    width: 100%;
    background: var(--light-color);
    border-radius: 12px;
    padding: 14px 10px 8px 10px;
    text-align: center;
    margin-bottom: 8px;
    color: var(--primary-color);
    font-size: 1rem;
}
.bottom-popup-hours i {
    color: #ff4081;
    margin-right: 6px;
}
.bottom-popup-hours span {
    font-weight: 600;
    color: var(--dark-color);
}

.bottom-popup-close {
    margin-top: 10px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #bbb;
    cursor: pointer;
    align-self: flex-end;
    transition: color 0.2s;
}
.bottom-popup-close:hover {
    color: var(--primary-color);
}

.bottom-popup-close.top-right {
    position: absolute;
    top: 12px;
    right: 18px;
    margin: 0;
    align-self: unset;
    z-index: 10;
}

@media (max-width: 576px) {
    .bottom-popup-content {
        max-width: 98vw;
        padding: 18px 6px 12px 6px;
        margin-bottom: 12px;
    }
    .popup-trigger-btn {
        bottom: 120px;
        right: 16px;
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
}