/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-color: #333;
    --light-gray: #f5f6fa;
    --white: #ffffff;
    --gradient-start: #3498db;
    --gradient-end: #2c3e50;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --card-hover-transform: translateY(-5px);
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f8f9fa;
}

/* Enhanced Navigation */
.navbar {
    background-color: var(--white);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 15px var(--shadow-color);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.logo h1 {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(45deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 3px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: linear-gradient(45deg, var(--gradient-start), var(--gradient-end));
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(44, 62, 80, 0.85), rgba(44, 62, 80, 0.85)),
                url('../images/hero-bg.jpg') center/cover;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--secondary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #2980b9;
}

/* Features Section */
.features {
    padding: 5rem 5%;
    background: linear-gradient(rgba(245, 246, 250, 0.97), rgba(245, 246, 250, 0.97)),
                url('../images/pattern-bg.png') center/cover fixed;
}

.features h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--primary-color);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Recent Reviews Section */
.recent-reviews {
    padding: 5rem 5%;
    background: linear-gradient(rgba(255, 255, 255, 0.97), rgba(255, 255, 255, 0.97)),
                url('../images/reviews-bg.jpg') center/cover fixed;
}

.recent-reviews h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--primary-color);
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.see-more-button {
    display: block;
    width: max-content;
    margin: 0 auto;
    padding: 1rem 2rem;
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.see-more-button:hover {
    background-color: #34495e;
}

/* Footer */
footer {
    background: linear-gradient(45deg, var(--gradient-start), var(--gradient-end));
    color: white;
    padding: 4rem 5% 2rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: rgba(255, 255, 255, 0.5);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    margin-right: 1rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
    color: rgba(255, 255, 255, 0.8);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 1rem;
    }

    .nav-links {
        margin-top: 1rem;
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .features h2,
    .recent-reviews h2 {
        font-size: 2rem;
    }
}

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

.feature-card,
.hero-content {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Review Page Styles */
.review-header {
    text-align: center;
    padding: 6rem 0;
    background: linear-gradient(rgba(44, 62, 80, 0.85), rgba(44, 62, 80, 0.85)),
                url('../images/review-header-bg.jpg') center/cover;
    color: var(--white);
    margin-top: 4rem;
}

.review-header h1 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.review-form-section {
    max-width: 800px;
    margin: 1rem auto;
    padding: 1rem;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.review-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e1e1e1;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    outline: none;
}

.star-rating {
    display: flex;
    gap: 0.5rem;
    font-size: 1.5rem;
}

.star-rating .fa-star {
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s;
}

.star-rating .fa-star:hover,
.star-rating .fa-star.active {
    color: #ffd700;
}

.hidden {
    display: none;
}

.submit-button {
    background: linear-gradient(45deg, var(--gradient-start), var(--gradient-end));
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.2);
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.3);
}

/* Review Display Styles */
.existing-reviews {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.review-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.review-filters select,
.review-filters input {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.review-filters input {
    flex: 1;
}

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

.review-card {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.review-card:hover {
    transform: var(--card-hover-transform);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Bluish Review Card Header */
.review-card .review-header {
    background: linear-gradient(rgba(52, 152, 219, 0.7), rgba(52, 152, 219, 0.7)), 
                url('path/to/image.jpg') center/cover;
    color: #fff;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.review-card .review-header h3 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.review-card .location {
    color: #eee;
    font-size: 0.875rem;
}

.review-card .rating {
    margin-bottom: 1rem;
}

.review-card .rating .fa-star {
    color: #ddd;
    font-size: 1rem;
}

.review-card .rating .fa-star.active {
    color: #ffd700;
}

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

.review-card .review-text-container {
    position: relative;
}

.review-text.truncated {
    display: -webkit-box;
    -webkit-line-clamp: 7;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 10px;
}

.review-text {
    max-height: 100%;
    transition: max-height 0.3s ease;
}

.expand-btn {
    background: none;
    border: none;
    color: #007bff;
    cursor: pointer;
    padding: 0;
    font-size: 0.9em;
    margin-top: 5px;
}

.expand-btn:hover {
    text-decoration: underline;
}

.review-card .review-footer {
    font-size: 0.8rem;
    color: #666;
}

.load-more {
    text-align: center;
    margin-top: 2rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .review-filters {
        flex-direction: column;
    }
    
    .review-form-section {
        padding: 1rem;
        margin: 1rem;
    }
    
    .review-grid {
        grid-template-columns: 1fr;
    }
}

/* Location Fields Styles */
.location-fields {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.location-field {
    flex: 1;
}

.location-field input,
.location-field select {
    width: 100%;
}

@media (max-width: 768px) {
    .location-fields {
        flex-direction: column;
    }
}

/* Contact Page Styles */
.contact-header {
    background: linear-gradient(rgba(44, 62, 80, 0.85), rgba(44, 62, 80, 0.85)),
                url('../images/contact-header-bg.jpg') center/cover;
    color: white;
    text-align: center;
    padding: 6rem 2rem;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

.contact-header::before {
    display: none;
}

.contact-header h1,
.contact-header p {
    position: relative;
    z-index: 2;
    color: white;
}

.contact-content {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
}

.contact-info {
    padding: 2rem;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.contact-method {
    padding: 2rem;
    border-radius: 12px;
    background: white;
    box-shadow: 0 4px 15px var(--shadow-color);
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

.contact-method:last-child {
    margin-bottom: 0;
}

.contact-method:hover {
    transform: var(--card-hover-transform);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.contact-method i {
    font-size: 2.5rem;
    background: linear-gradient(45deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

.contact-method h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.contact-method a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-method a:hover {
    color: var(--primary-color);
}

.contact-form-container {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.contact-form-container h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .contact-header {
        padding: 3rem 1rem;
    }
    
    .contact-header h1 {
        font-size: 2rem;
    }
}