/* Portfolio Page Styles */

/* Use homepage color variables */
:root {
    --portfolio-primary: #800020;      /* Burgundy from homepage */
    --portfolio-dark: #1A1A1A;         /* Deep black */
    --portfolio-charcoal: #2C2C2C;     /* Charcoal */
}

/* Page Hero */
.page-hero {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1A1A1A 0%, #2C2C2C 50%, #1A1A1A 100%);
    overflow: hidden;
    padding-top: 80px;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/pattern.png') repeat;
    opacity: 0.03;
}

.page-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,0.4) 100%);
}

.page-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 60px 20px;
}

.page-label {
    display: inline-block;
    background: var(--burgundy, #800020);
    color: white;
    padding: 8px 24px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.page-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 15px;
    line-height: 1.2;
}

.page-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto 25px;
    line-height: 1.7;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--burgundy, #800020);
}

.breadcrumb span {
    color: rgba(255, 255, 255, 0.4);
}

/* Portfolio Section */
.portfolio-page-section {
    padding: 80px 0 100px;
    background: #fafafa;
}

/* Portfolio Filters */
.portfolio-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 50px;
}

.filter-btn {
    padding: 12px 28px;
    border: 2px solid #e0e0e0;
    background: white;
    color: #333;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: var(--burgundy, #800020);
    color: var(--burgundy, #800020);
}

.filter-btn.active {
    background: var(--burgundy, #800020);
    border-color: var(--burgundy, #800020);
    color: white;
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

/* Portfolio Card */
.portfolio-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: white;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.portfolio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

.portfolio-card-image {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.portfolio-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-card:hover .portfolio-card-image img {
    transform: scale(1.1);
}

.portfolio-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.portfolio-card:hover .portfolio-card-overlay {
    opacity: 1;
}

.portfolio-card-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--burgundy, #800020);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.portfolio-card-view {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: white;
    color: var(--burgundy, #800020);
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.portfolio-card:hover .portfolio-card-view {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.portfolio-card-content {
    padding: 25px;
}

.portfolio-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: #1A1A1A;
    margin-bottom: 8px;
}

.portfolio-card-location {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #666;
    font-size: 0.9rem;
}

.portfolio-card-location i {
    color: var(--burgundy, #800020);
    font-size: 0.85rem;
}

/* Image Count Badge */
.portfolio-card-images-count {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Loading & Empty States */
.portfolio-loading,
.portfolio-empty {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.portfolio-loading i,
.portfolio-empty i {
    font-size: 3rem;
    color: var(--burgundy, #800020);
    margin-bottom: 20px;
    opacity: 0.5;
}

.portfolio-loading p,
.portfolio-empty p {
    font-size: 1.1rem;
}

/* Project Modal */
.project-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.project-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    width: 95%;
    max-width: 1200px;
    max-height: 90vh;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    transform: scale(0.9) translateY(30px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-modal.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    color: #333;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--burgundy, #800020);
    color: white;
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-height: 90vh;
}

/* Modal Gallery */
.modal-gallery {
    background: #f5f5f5;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.gallery-main {
    position: relative;
    flex: 1;
    min-height: 400px;
    border-radius: 12px;
    overflow: hidden;
    background: #eee;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f0f0f0;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: white;
    border: none;
    color: #333;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.gallery-nav:hover {
    background: var(--burgundy, #800020);
    color: white;
}

.gallery-prev {
    left: 15px;
}

.gallery-next {
    right: 15px;
}

.gallery-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 5px 0;
}

.gallery-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
}

.gallery-thumb.active {
    border-color: var(--burgundy, #800020);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Modal Info */
.modal-info {
    padding: 40px;
    overflow-y: auto;
    max-height: 90vh;
}

.modal-category {
    display: inline-block;
    background: rgba(128, 0, 32, 0.1);
    color: var(--burgundy, #800020);
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.modal-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: #1A1A1A;
    margin-bottom: 20px;
    line-height: 1.3;
}

.modal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 0.95rem;
}

.meta-item i {
    color: var(--burgundy, #800020);
}

.modal-description {
    color: #555;
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 30px;
}

.modal-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    font-size: 1rem;
}

.modal-cta i {
    transition: transform 0.3s ease;
}

.modal-cta:hover i {
    transform: translateX(5px);
}

/* Portfolio CTA Section */
.portfolio-cta {
    padding: 100px 0;
    background: linear-gradient(135deg, #1A1A1A 0%, #2C2C2C 100%);
    text-align: center;
}

.cta-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: white;
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.btn-lg {
    padding: 18px 40px;
    font-size: 1.05rem;
}

/* Responsive */
@media (max-width: 992px) {
    .modal-body {
        grid-template-columns: 1fr;
    }
    
    .modal-gallery {
        max-height: 50vh;
    }
    
    .gallery-main {
        min-height: 300px;
    }
    
    .modal-info {
        max-height: 40vh;
        padding: 30px;
    }
    
    .modal-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 2.5rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-card-image {
        height: 250px;
    }
    
    .filter-btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .modal-content {
        width: 100%;
        height: 100%;
        max-height: 100vh;
        border-radius: 0;
    }
    
    .modal-gallery {
        padding: 15px;
    }
    
    .modal-info {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .page-hero {
        min-height: 350px;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .portfolio-filters {
        gap: 8px;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
}
