/*---
    Portfolio Page Styling
    Version: 1.0
---*/

/* --- General & Hero Section --- */
.portfolio-hero {
    padding: 100px 0;
    background-color: #1a1a1a; /* Dark background */
    text-align: center;
    position: relative;
    overflow: hidden;
}

.portfolio-hero .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--gold);
    color: #fff;
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.portfolio-hero .hero-title {
    font-family: 'Cinzel', serif;
    font-size: 3.8rem; /* Slightly larger font */
    color: #ffffff; /* White text for contrast */
    margin: 0;
    animation: fadeInDown 1s ease-out;
}

.portfolio-hero .highlight-text {
    color: var(--gold);
}

.portfolio-hero .hero-subtitle {
    font-size: 1.2rem;
    color: #e0e0e0; /* Lighter text for dark background */
    margin-top: 15px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease-out;
}

/* --- Portfolio Section --- */
.portfolio-section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header .section-title {
    font-family: 'Cinzel', serif;
    font-size: 2.8rem;
    color: #212529;
    margin-bottom: 10px;
}

.section-header .section-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.section-header .section-subtitle::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--gold);
}

/* --- Filter Buttons --- */
.portfolio-filters {
    text-align: center;
    margin-bottom: 50px;
}

.filter-button {
    background: transparent;
    border: 2px solid #ddd;
    color: #333;
    padding: 12px 30px;
    margin: 5px;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.4s ease;
    letter-spacing: 0.5px;
}

.filter-button:hover {
    background-color: var(--gold);
    border-color: var(--gold);
    color: #fff;
}

.filter-button.active {
    background-color: var(--gold);
    border-color: var(--gold);
    color: #fff;
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.3);
}

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

.portfolio-item {
    background: #fff;
    border-radius: 12px; /* Softer corners */
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08); /* Deeper shadow */
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
}

.portfolio-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.1);
}

.portfolio-image {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.portfolio-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}

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

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    color: #fff;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.portfolio-overlay h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    margin: 0 0 5px 0;
}

.portfolio-overlay p {
    margin: 0;
    font-size: 0.9rem;
}

.portfolio-info {
    padding: 25px;
}

.portfolio-info h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    color: #212529;
    margin: 0 0 5px 0;
}

.portfolio-info .location {
    color: #6c757d;
    font-weight: 600;
    margin-bottom: 15px;
}

.portfolio-info .description {
    color: #555;
    line-height: 1.7;
    margin-bottom: 20px;
}

.portfolio-link {
    background-color: var(--gold);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    padding: 12px 25px;
    border-radius: 50px;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.portfolio-link:hover {
    background-color: var(--dark-gold);
    transform: translateY(-2px);
}



.portfolio-link i {
    transition: transform 0.3s ease;
}

.portfolio-link:hover i {
    transform: translateX(5px);
}

.empty-portfolio {
    text-align: center;
    padding: 50px;
    grid-column: 1 / -1;
    font-size: 1.2rem;
    color: #6c757d;
}

/* --- Responsive --- */
/* --- Case Study Section (on Property Detail Page) --- */
.case-study-section {
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    margin-top: 40px;
    border: 1px solid #e9ecef;
}

.case-study-main-title {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.case-study-main-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--gold);
}

.case-study-block {
    margin-bottom: 30px;
}

.case-study-block h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.6rem;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.case-study-block h3 i {
    color: var(--gold);
    margin-right: 15px;
    font-size: 1.4rem;
}

.case-study-block p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
}

.result-block {
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 5px;
    border-left: 5px solid var(--gold);
}


@media (max-width: 768px) {
    .portfolio-hero .hero-title {
        font-size: 2.8rem;
    }
    .section-header .section-title {
        font-size: 2.2rem;
    }
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}
