/* =====================================
   PROJECTS PAGE SPECIFIC STYLES
   ===================================== */

/* Body margin adjustment for fixed header */
body {
    margin-top: 80px;
}

/* Projects Header Section */
.projects-header {
    background: #fff;
    padding: 40px 0 10px 0;
}

/* Projects Hero */
.projects-hero {
    position: relative;
    height: 50vh;
    /* Increased height for impact */
    min-height: 400px;
    display: flex;
    align-items: center;
    /* Center content vertically */
    justify-content: center;
    overflow: hidden;
}

.projects-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    /* Slight zoom for depth */
}

.projects-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6));
    /* More dramatic gradient */
    backdrop-filter: blur(2px);
    /* Subtle blur */
}

.projects-hero .container {
    position: relative;
    z-index: 2;
    text-align: center;
}

.projects-hero-title {
    color: #fff;
    font-size: clamp(3rem, 6vw, 5rem);
    /* Larger title */
    font-weight: 800;
    /* Extra bold */
    letter-spacing: -0.02em;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    margin-bottom: 10px;
}

/* Projects Main Section */
.projects-main {
    padding: 60px 0 100px 0;
    background: #f9f9f9;
    /* Light background for contrast */
}

.projects-showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

/* Modern Project Card */
.project-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    /* Deeper shadow */
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: #fff;
    height: 500px;
    /* Fixed height for consistency */
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.project-card .project-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

.project-card:hover .project-image {
    transform: scale(1.1);
    /* Zoom effect */
}

.project-card .project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.85) 0%,
            rgba(0, 0, 0, 0.4) 50%,
            rgba(0, 0, 0, 0) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    opacity: 1;
    /* Always visible but enhanced on hover */
    transition: opacity 0.3s ease;
}

.project-card .project-info {
    width: 100%;
    color: #fff;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.project-card:hover .project-info {
    transform: translateY(0);
}

.projects-main .project-card .project-category {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
    display: block;
}

.projects-main .project-card .project-info h3 {
    color: #fff;
    font-size: clamp(1.5rem, 2vw, 2rem);
    font-weight: 700;
    margin: 0 0 20px 0;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Glassmorphism Button */
.projects-main .project-card .project-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    opacity: 0;
    /* Hidden initially */
    transform: translateY(10px);
}

.project-card:hover .project-link {
    opacity: 1;
    transform: translateY(0);
}

.projects-main .project-card .project-link:hover {
    background: #fff;
    color: #000;
}

/* Subheaders for sections */
.projects-subheader {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #d3a748;
    /* Accent color */
    margin: 40px 0 24px 0;
    display: inline-block;
    border-bottom: 2px solid #d3a748;
    padding-bottom: 5px;
}

.projects-subheader.completed {
    margin-top: 60px;
}

/* Responsive columns */
@media (max-width: 1024px) {
    .projects-showcase-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .projects-showcase-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .project-card {
        height: 400px;
    }

    .project-card .project-info {
        transform: translateY(0);
    }

    .projects-main .project-card .project-link {
        opacity: 1;
        transform: translateY(0);
    }
}