/* Updated Portfolio Page CSS */

/* --- Hero Section (Matches Services Page) --- */
.portfolio-page .hero {
    position: relative;
    height: 100vh;
    color: var(--white);
    overflow: hidden;
}

.portfolio-page .hero video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.portfolio-page .hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45); /* Dark overlay */
    z-index: -1;
}

.portfolio-page .hero-content {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.portfolio-page .hero-text {
    max-width: 650px;
}

.portfolio-page .hero-text h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.portfolio-page .hero-text p {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    margin-bottom: 2rem;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Ensure header is transparent */
body.portfolio-page header {
    background-color: transparent;
}
body.portfolio-page {
    padding-top: 0 !important;
}

/* --- Video Showcase Section --- */
.video-showcase {
    padding: 3rem 0;
    background-color: #f8f9fa; /* Light gray background */
}

.showreel {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    cursor: pointer;
}

/* Facade image - poster that shows before video loads */
.showreel .facade-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* Video iframe */
.showreel iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    z-index: 1;
}

/* Play Button Styling */
.facade-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background-color: var(--primary); /* Red */
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 0 0 rgba(229, 24, 37, 0.7);
    animation: pulse-red 2s infinite;
    transition: all 0.3s ease;
    z-index: 2;
    padding-left: 5px; /* Visual optical centering of play icon */
}

.showreel:hover .facade-play-btn {
    transform: translate(-50%, -50%) scale(1.1);
    background-color: #ff3344;
}

/* Pulse Animation for Play Button */
@keyframes pulse-red {
    0% {
        transform: translate(-50%, -50%) scale(0.95);
        box-shadow: 0 0 0 0 rgba(229, 24, 37, 0.7);
    }
    70% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 0 20px rgba(229, 24, 37, 0);
    }
    100% {
        transform: translate(-50%, -50%) scale(0.95);
        box-shadow: 0 0 0 0 rgba(229, 24, 37, 0);
    }
}

/* --- Filters & Grid --- */
.filters {
    background-color: #ffffff;
    padding: 1.5rem 0;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    background: transparent;
    border: 2px solid transparent;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    color: #555;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 30px;
}

.filter-btn:hover {
    color: var(--primary);
    background: rgba(229, 24, 37, 0.05);
}

.filter-btn.active {
    color: #fff;
    background-color: var(--primary);
    box-shadow: 0 4px 10px rgba(229, 24, 37, 0.3);
}

.portfolio-section {
    padding: 4rem 0 6rem;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

/* --- Testimonials --- */
.testimonials {
    background-color: #f8f9fa;
    padding: 6rem 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
}

.testimonial {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

.testimonial .quote-icon {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.testimonial blockquote {
    font-style: italic;
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: #333;
}

.testimonial-author h4 {
    font-weight: 700;
    color: #111;
    margin-bottom: 0.2rem;
}

.testimonial-author p {
    font-size: 0.9rem;
    color: #666;
}

/* Responsive */
@media (max-width: 992px) {
    .portfolio-grid, .testimonials-grid {
        grid-template-columns: 1fr;
    }
    .facade-play-btn {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* ===========================
   CTA BANNER SECTION
   =========================== */
.cta-banner {
    background: linear-gradient(135deg, var(--primary) 0%, #ff4444 100%);
    color: var(--white);
    padding: 8rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.cta-banner .container {
    position: relative;
    z-index: 1;
}

.cta-banner h2 {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.cta-banner p {
    font-size: 1.35rem;
    opacity: 0.95;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons-group {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.cta-banner .btn-primary {
    background-color: var(--white);
    color: var(--primary);
    border: 2px solid var(--white);
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.cta-banner .btn-primary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.cta-banner .btn-outline {
    background-color: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.5);
    padding: 1rem 2.5rem;
    min-width: 200px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cta-banner .btn-outline:hover {
    background-color: var(--white);
    color: var(--primary);
    border-color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

@media (max-width: 768px) {
    .cta-banner {
        padding: 5rem 1.5rem;
    }
    
    .cta-buttons-group {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .cta-banner .btn-primary,
    .cta-banner .btn-outline {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
        text-align: center;
    }
}
