.hero-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    margin-bottom: 3rem;
}

.about-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.about-section h2 {
    color: #333;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 600;
}

.about-section p {
    color: #555;
    line-height: 1.8;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.services-section {
    max-width: 100%;
    margin: 4rem 0;
    padding: 2rem 0;
}

.services-section h2 {
    color: #333;
    margin-bottom: 3rem;
    text-align: center;
    font-weight: 600;
}

.services-container {
    display: flex;
    gap: 0;
    width: 100%;
}

.service-card {
    position: relative;
    flex: 1;
    height: 400px;
    overflow: hidden;
    text-decoration: none;
    display: block;
}

.service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

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

.service-card:hover .service-overlay {
    background: rgba(0, 0, 0, 0.6);
}

.service-card h3 {
    color: #fff;
    font-size: 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
    z-index: 1;
}

/* Reviews Section */
.reviews-section {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 2rem 1rem;
}

.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.reviews-section h2 {
    color: #333;
    font-weight: 600;
    margin: 0;
}

.btn-add-review {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: 500;
}

.btn-add-review:hover {
    background-color: #45a049;
}

.reviews-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Carousel Reviews */
#reviewsCarousel {
    margin-top: 2rem;
    position: relative;
}

.carousel-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.carousel-inner .review-card {
    display: none;
}

.carousel-inner .review-card.active {
    display: block;
    grid-column: span 1;
}

@media (max-width: 767px) {
    .carousel-inner {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .carousel-inner {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .carousel-inner {
        grid-template-columns: repeat(3, 1fr);
    }
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 1;
}

.carousel-control-prev {
    left: -60px;
}

.carousel-control-next {
    right: -60px;
}

@media (max-width: 619px) {
    #reviewsCarousel {
        padding-bottom: 70px;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        top: auto;
        bottom: 10px;
        transform: none;
    }
    
    .carousel-control-prev {
        left: calc(50% - 60px);
    }
    
    .carousel-control-next {
        right: auto;
        left: calc(50% + 10px);
    }
}

.review-card {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.review-card h4 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.review-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

/* Star Styles for Reviews */
.review-stars {
    margin: 0.5rem 0;
    font-size: 1.5rem;
}

.review-stars .star {
    color: #ddd;
}

.review-stars .star.filled {
    color: #FFD700;
}

/* Star Rating for Form */
.star-rating {
    display: flex;
    gap: 0.25rem;
    font-size: 2.5rem;
    margin-top: 0.5rem;
}

.star-rating input {
    display: none;
}

.star-rating .star-label {
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s ease;
    margin: 0;
}

.star-rating .star-label.hover,
.star-rating .star-label.selected {
    color: #FFD700;
}

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

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

.modal-content {
    background: white;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.5rem;
}

.close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.close-btn:hover {
    background-color: #f0f0f0;
    color: #333;
}

#reviewForm {
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4CAF50;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-cancel,
.btn-submit {
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: 500;
}

.btn-cancel {
    background-color: #f0f0f0;
    color: #333;
}

.btn-cancel:hover {
    background-color: #e0e0e0;
}

.btn-submit {
    background-color: #4CAF50;
    color: white;
}

.btn-submit:hover {
    background-color: #45a049;
}

/* Responsive Design */
@media (max-width: 768px) {
    .services-container {
        flex-direction: column;
    }
    
    .service-card {
        height: 300px;
    }
    
    .reviews-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .reviews-container {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    #reviewForm {
        padding: 1.5rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn-cancel,
    .btn-submit {
        width: 100%;
    }
}
