
/* Team Page Styles */

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

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Page Banner */
.page-banner {
    height: 40vh;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7)), url('../images/mountain-edge-community.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.banner-content {
    max-width: 800px;
    padding: 0 20px;
}

.banner-content h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    animation: fadeInUp 1s ease-out;
}

.banner-content p {
    font-size: 1.2rem;
    margin-bottom: 25px;
    animation: fadeInUp 1.2s ease-out;
}

/* Team Member Profile */
.team-member-profile {
    padding: 80px 0;
}

.profile-header {
    display: flex;
    gap: 40px;
    margin-bottom: 60px;
    align-items: flex-start;
    position: relative;
}

.profile-header::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, rgba(var(--primary-rgb), 0.5), transparent);
}

.profile-image {
    flex: 0 0 300px;
    animation: fadeInUp 0.8s ease-out;
    position: relative;
}

.profile-image::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    width: 50px;
    height: 50px;
    border-top: 3px solid var(--accent-color);
    border-left: 3px solid var(--accent-color);
    z-index: -1;
}

.profile-image::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 50px;
    height: 50px;
    border-bottom: 3px solid var(--accent-color);
    border-right: 3px solid var(--accent-color);
    z-index: -1;
}

.profile-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.5s ease;
}

.profile-image img:hover {
    transform: scale(1.03);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.profile-intro {
    flex: 1;
}

.profile-intro h2 {
    font-size: 2.4rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.profile-title {
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    font-weight: 600;
}

.profile-address, .profile-phone {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666;
}

.profile-address i, .profile-phone i {
    color: var(--accent-color);
}

.profile-highlights {
    margin-top: 25px;
    padding: 20px;
    background: linear-gradient(to right, rgba(var(--primary-rgb), 0.05), rgba(var(--primary-rgb), 0));
    border-radius: 10px;
}

.profile-highlights h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.profile-highlights ul {
    padding-left: 20px;
}

.profile-highlights li {
    margin-bottom: 8px;
}

.profile-metrics {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.metric {
    flex: 1;
    min-width: 120px;
    text-align: center;
    padding: 15px;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.metric:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.metric-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.metric-label {
    font-size: 0.85rem;
    color: #666;
}

/* Profile Content Sections */
.profile-content {
    margin-top: 40px;
}

.profile-section {
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    animation: fadeIn 0.8s ease forwards;
    opacity: 0;
}

.profile-section:nth-child(1) { animation-delay: 0.1s; }
.profile-section:nth-child(2) { animation-delay: 0.2s; }
.profile-section:nth-child(3) { animation-delay: 0.3s; }
.profile-section:nth-child(4) { animation-delay: 0.4s; }
.profile-section:nth-child(5) { animation-delay: 0.5s; }
.profile-section:nth-child(6) { animation-delay: 0.6s; }
.profile-section:nth-child(7) { animation-delay: 0.7s; }
.profile-section:nth-child(8) { animation-delay: 0.8s; }

.profile-section:last-child {
    border-bottom: none;
}

.profile-section h3 {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.profile-section h3:hover {
    transform: translateX(5px);
}

.profile-section h3 i {
    color: var(--accent-color);
    transition: transform 0.3s ease;
}

.profile-section:hover h3 i {
    transform: scale(1.2);
}

/* Reviews Grid */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 30px;
}

.review-card {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    position: relative;
    border-top: 3px solid var(--accent-color);
}

.review-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}

.review-card::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 60px;
    color: rgba(var(--primary-rgb), 0.1);
    font-family: 'Georgia', serif;
    line-height: 1;
}

.review-stars {
    color: #FFD700;
    font-size: 1.2rem;
    margin-bottom: 15px;
    display: flex;
    justify-content: flex-start;
    gap: 2px;
}

.review-text {
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.review-author {
    text-align: right;
    font-weight: 600;
    color: var(--primary-color);
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 12px;
    margin-top: 5px;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    position: relative;
    background-color: white;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item p {
    padding: 15px;
    background-color: white;
    font-size: 0.9rem;
    text-align: center;
    font-weight: 500;
    color: var(--primary-color);
}

/* Services & Booking Grids */
.services-grid, .booking-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.service-item, .booking-item {
    text-align: center;
    padding: 25px 15px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.service-item:hover, .booking-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.service-item i, .booking-item i {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}

/* Accordion for Q&A */
.accordion {
    margin-top: 30px;
}

.accordion-item {
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.accordion-header {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 20px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
}

.accordion-header::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
}

.accordion-item.active .accordion-header::after {
    content: '-';
}

.accordion-content {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background-color: white;
}

.accordion-item.active .accordion-content {
    padding: 20px;
    max-height: 500px;
}

/* Updates List */
.update-item {
    background-color: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.update-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.update-item h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.contact-info p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info i {
    color: var(--accent-color);
    font-size: 1.2rem;
}

.contact-form {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
}

/* Featured Listings Section */
.featured-listings {
    padding: 80px 0;
    background-color: var(--light-color);
}

/* Animation and Interactive Elements */
.success-message {
    background-color: #dff0d8;
    color: #3c763d;
    padding: 15px 20px;
    border-radius: 5px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: fadeIn 0.5s ease forwards;
}

.success-message i {
    font-size: 1.5rem;
}

.success-message.fade-out {
    animation: fadeOut 0.5s ease forwards;
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

.animated-star {
    display: inline-block;
    animation: starPulse 1.5s ease infinite;
    animation-play-state: paused;
}

.review-card:hover .animated-star {
    animation-play-state: running;
}

@keyframes starPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.caption-hover {
    color: var(--accent-color);
    transform: translateY(-3px);
}

.profile-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.profile-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background-color: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .profile-image {
        margin-bottom: 30px;
    }
    
    .profile-metrics {
        justify-content: center;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .reviews-grid, .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid, .booking-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .services-grid, .booking-grid {
        grid-template-columns: 1fr;
    }
    
    .metric {
        min-width: 100%;
    }
}
