
/* Hero Section */
.project-hero {
    padding: 6rem 0 3rem 0;
    background: linear-gradient(135deg, rgba(237, 73, 51, 0.1) 0%, rgba(33, 178, 166, 0.1) 100%);
    text-align: center;
}

.project-hero h1 {
    font-size: 3em;
    margin-bottom: 0.5rem;
    color: var(--accent);
}

.project-hero p {
    font-size: 1.1em;
    color: var(--text-dim);
}

/* Visual Grid Layout */
.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 3rem;
    transition: all 0.3s ease;
}

.project-card:hover {
    border-color: var(--accent);
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

/* Large Hero Image */
.project-hero-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
    position: relative;
}

.project-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-hero-image img {
    transform: scale(1.05);
}

/* Image overlay with title */
.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 2rem;
    color: white;
}

.image-overlay h2 {
    font-size: 2em;
    margin: 0 0 0.5rem 0;
    color: white;
}

.image-overlay .meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.8);
}

/* Compact Content Section */
.project-content {
    padding: 2rem;
}

.project-summary {
    font-size: 1.05em;
    line-height: 1.6;
    color: var(--text);
    margin-bottom: 1.5rem;
}

/* Image Gallery Grid */
.project-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.gallery-item {
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.gallery-item:hover {
    border-color: var(--accent);
    transform: scale(1.05);
    z-index: 10;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Compact Tags */
.project-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.project-tag {
    padding: 0.4rem 0.8rem;
    background: rgba(237, 73, 51, 0.1);
    border: 1px solid var(--accent);
    border-radius: 15px;
    font-size: 0.7em;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Compact Highlights */
.quick-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.highlight-item {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-left: 3px solid var(--accent);
    font-size: 0.9em;
}

.highlight-item strong {
    color: var(--cyan);
    display: block;
    margin-bottom: 0.25rem;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
    border: none;
    color: white;
    font-size: 1.5rem;
}

.back-to-top.visible {
    opacity: 1;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(237, 73, 51, 0.4);
}

@media screen and (max-width: 980px) {
    .project-hero-image {
        height: 300px;
    }

    .project-hero h1 {
        font-size: 2em;
    }

    .image-overlay h2 {
        font-size: 1.5em;
    }

    .project-content {
        padding: 1.5rem;
    }

    .project-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}
