/* Projects Page Styles - Professional Card Design */

/* Banner Video Background Styling */
.banner-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Banner Footer Content Styling */
.banner-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.4);
    padding: 40px 20px;
    color: white;
    text-align: center;
    z-index: 2;
}

.banner-footer h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.banner-footer p {
    font-size: 1.1rem;
    margin: 0;
    opacity: 0.95;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.6;
}

/* Responsive: Banner Footer */
@media (max-width: 1024px) {
    .banner-footer {
        padding: 30px 15px;
    }
    
    .banner-footer h2 {
        font-size: 2rem;
    }
    
    .banner-footer p {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .banner-footer {
        padding: 25px 12px;
    }
    
    .banner-footer h2 {
        font-size: 1.6rem;
    }
    
    .banner-footer p {
        font-size: 0.95rem;
    }
}

/* Ensure banner video plays smoothly */
@media (max-width: 768px) {
    .banner-video {
        /* Some mobile devices disable autoplay with video, fallback handled by poster/thumbnail */
    }
}

/* Projects Section Intro */
.projects-intro {
    text-align: center;
    margin-bottom: clamp(50px, 8vw, 70px);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 clamp(15px, 5vw, 40px);
}

.projects-intro h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: clamp(20px, 3vw, 25px);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.projects-intro p {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    color: #555;
    line-height: 1.8;
    font-weight: 400;
}

/* Projects Section Container */
.projects-section {
    background-color: #f5f5f5;
    padding: clamp(60px, 8vw, 80px) 20px;
    min-height: auto;
}

/* Projects Filter Section */
.projects-filter {
    text-align: center;
    margin-bottom: 60px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.filter-container {
    padding: 0 20px;
}

.filter-container h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.filter-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}

.filter-btn {
    padding: 12px 24px;
    border: 2px solid #ddd;
    background: white;
    color: #333;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Poppins', sans-serif;
}

.filter-btn:hover {
    border-color: #4A9EFF;
    color: #4A9EFF;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: #4A9EFF;
    color: white;
    border-color: #4A9EFF;
    box-shadow: 0 4px 12px rgba(74, 158, 255, 0.3);
}

.filter-btn.active:hover {
    background: #2E7FD9;
    border-color: #2E7FD9;
    box-shadow: 0 6px 16px rgba(74, 158, 255, 0.4);
}

.filter-btn:focus {
    outline: 3px solid #4A9EFF;
    outline-offset: 2px;
}

.projects-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 40px;
}

/* Project Card */
.project-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

/* Project Image Container */
.project-image {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
    display: block;
}

.project-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

/* Lazy loading fade-in animation */
.project-image img.lazy-loaded {
    animation: fadeInImage 0.6s ease-out;
}

@keyframes fadeInImage {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Project filter animations */
@keyframes fadeInProject {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOutProject {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* Hidden utility class */
.project-card.hidden {
    display: none;
    opacity: 0;
    pointer-events: none;
}

/* Project Content Container */
.project-card > div:not(.project-image) {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Project Category Tag */
.project-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #008ad2;
    margin-bottom: clamp(10px, 2vw, 15px);
    padding-bottom: clamp(10px, 1.5vw, 12px);
    border-bottom: 2px solid rgba(0, 137, 210, 0.3);
    width: fit-content;
}

/* Project Header */
.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: clamp(15px, 3vw, 20px);
    margin-bottom: clamp(18px, 2vw, 20px);
    flex-wrap: wrap;
    position: relative;
    min-height: 45px;
}

.project-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
    margin: 0;
    flex: 0 1 auto;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Status Badge */
.status-badge {
    position: absolute;
    top: 0;
    right: 0;
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    z-index: 10;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.status-badge.running {
    background-color: #FF8C00;
    color: #ffffff;
}

.status-badge.completed {
    background-color: #28A745;
    color: #ffffff;
}

.project-card:hover .status-badge {
    transform: translateY(-5px);
}

/* Project Client */
.project-client {
    font-weight: 600;
    color: #4A9EFF;
    margin: 0 0 clamp(12px, 2vw, 15px) 0;
    font-size: 0.95rem;
}

/* Project Description */
.project-description {
    color: #555;
    line-height: 1.7;
    margin-bottom: clamp(20px, 3vw, 28px);
    font-size: 0.95rem;
    flex-grow: 1;
    font-weight: 400;
}

/* Project Scope List */
.project-scope {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-top: auto;
    border-top: 2px solid #f0f0f0;
    padding-top: 20px;
}

.project-scope::before {
    content: "Scope of Work:";
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-scope li {
    padding: 6px 0 6px 25px;
    position: relative;
    color: #444;
    font-size: 0.9rem;
    line-height: 1.6;
    font-weight: 400;
    transition: all 0.2s ease;
}

.project-scope li:before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #4A9EFF;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Animation for page load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-card {
    animation: fadeInUp 0.6s ease-out backwards;
}

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }
.project-card:nth-child(4) { animation-delay: 0.4s; }
.project-card:nth-child(5) { animation-delay: 0.5s; }
.project-card:nth-child(6) { animation-delay: 0.6s; }
.project-card:nth-child(7) { animation-delay: 0.7s; }

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.projects-intro {
    animation: fadeInDown 0.6s ease-out;
}

/* Responsive Design - Tablet */
@media (max-width: 1200px) {
    .projects-container {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .projects-section {
        padding: 50px 15px;
    }

    .projects-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .project-image {
        height: 240px;
    }

    .project-card > div:not(.project-image) {
        padding: 25px;
    }

    .project-header h2 {
        font-size: 1.3rem;
        margin-right: 80px;
    }

    .status-badge {
        top: 10px;
        right: 10px;
        padding: 6px 14px;
        font-size: 0.75rem;
    }

    .projects-intro {
        margin-bottom: clamp(40px, 6vw, 50px);
    }

    .projects-intro h2 {
        font-size: clamp(1.8rem, 4vw, 2.2rem);
    }

    /* Filter styles - Mobile */
    .projects-filter {
        margin-bottom: 40px;
    }

    .filter-container h3 {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }

    .filter-buttons {
        gap: 10px;
    }

    .filter-btn {
        padding: 10px 18px;
        font-size: 0.9rem;
        flex: 1 1 45%;
    }
}

/* Responsive Design - Mobile */
@media (max-width: 480px) {
    .projects-section {
        padding: clamp(25px, 5vw, 30px) 15px;
    }

    .projects-container {
        gap: clamp(15px, 3vw, 20px);
    }

    .project-card > div:not(.project-image) {
        padding: 20px;
    }

    .project-header h2 {
        font-size: 1.1rem;
        margin-right: 70px;
    }

    .project-image {
        height: 200px;
    }

    .projects-intro h2 {
        font-size: clamp(1.5rem, 4vw, 2rem);
    }

    .projects-intro p {
        font-size: clamp(0.85rem, 2vw, 0.95rem);
    }

    .status-badge {
        top: 8px;
        right: 8px;
        padding: 5px 12px;
        font-size: 0.7rem;
    }

    .projects-intro {
        margin-bottom: clamp(30px, 5vw, 40px);
    }

    .project-category {
        font-size: 0.65rem;
        letter-spacing: 1px;
    }

    .project-scope::before {
        font-size: 0.9rem;
    }

    .project-scope li {
        font-size: 0.85rem;
    }

    /* Filter styles - Extra small mobile */
    .filter-container h3 {
        font-size: 1rem;
    }

    .filter-btn {
        padding: 8px 14px;
        font-size: 0.85rem;
        flex: 1 1 100%;
    }
}

