/* Project Showcase Block Styles */
.project-showcase-section {
    margin: 0;
    padding: 3rem 0;
}

/* Bottom Spacing Options - Using padding instead of margin */
.project-showcase-section.spacing-small {
    padding-bottom: 2rem;
}

.project-showcase-section.spacing-medium {
    padding-bottom: 4rem;
}

.project-showcase-section.spacing-large {
    padding-bottom: 6rem;
}

.project-showcase-section.spacing-x-large {
    padding-bottom: 8rem;
}

.project-showcase-section.spacing-xx-large {
    padding-bottom: 12rem;
}

/* Full Width Support - Match other blocks */
.project-showcase-section.alignfull {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.project-showcase-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
}

.project-showcase-section.alignfull .project-showcase-container {
    max-width: none;
    padding: 0 3rem;
}

/* Layout Styles - Match the image layout */
.project-showcase-section.layout-grid .project-showcase-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 2rem;
}

.project-showcase-section.layout-grid .project-item:first-child {
    grid-column: 1 / -1;
    grid-row: 1;
}

.project-showcase-section.layout-stacked .project-showcase-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.project-showcase-section.layout-masonry .project-showcase-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    align-items: start;
}

/* Individual Project Items */
.project-item {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 20px;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    align-items: flex-start;
    padding: 3rem;
    color: var(--blaze-white);
    opacity: 0;
    transform: translateY(50px) scale(0.95);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.project-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

/* Background image optimization for different sizes */
.project-item.full-width {
    min-height: 430px;
    grid-column: 1 / -1;
    border-radius: 20px;
    /* Optimized for 1920x500 images - very wide landscape */
    background-size: cover;
    background-position: right;
    background-repeat: no-repeat;
}

.project-item:not(.full-width) {
    /* Optimized for 2560x1707 images - more square/portrait */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 400px;
}

@keyframes slideInUpScale {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    50% {
        opacity: 0.8;
        transform: translateY(-10px) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.project-showcase-content {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

/* Enhanced matt glassy effect for white boxes */
.project-info-box {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 15px;
    padding: 2rem;
    max-width: 400px;
    color: var(--blaze-secondary);
    border: 1px solid rgba(255, 255, 255, 0.3);
    opacity: 0;
    transform: translateX(-30px) rotateY(-15deg);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.project-info-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.05) 50%,
        rgba(255, 255, 255, 0.1) 100%
    );
    border-radius: 15px;
    pointer-events: none;
}

.project-info-box:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.9);
}

@keyframes slideInLeftRotate {
    0% {
        opacity: 0;
        transform: translateX(-30px) rotateY(-15deg);
    }
    100% {
        opacity: 1;
        transform: translateX(0) rotateY(0deg);
    }
}

/* Title and arrow layout for non-full-width items */
.project-item:not(.full-width) .project-info-box {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.project-item:not(.full-width) .project-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.project-item:not(.full-width) .project-title {
    margin-bottom: 0;
    flex: 1;
}

.project-item:not(.full-width) .project-link {
    flex-shrink: 0;
    margin-top: 0;
}

.project-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--blaze-secondary);
    opacity: 0;
    transform: translateY(20px);
}

.project-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: var(--blaze-text);
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeInUpBounce {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    60% {
        transform: translateY(-5px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Outline arrow button */
.project-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 35px;
    background: transparent;
    border: 2px solid var(--blaze-secondary);
    border-radius: 9999px; /* Changed from 9% to fully rounded */
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    opacity: 0;
    transform: scale(0.8);
    animation: scaleIn 0.4s ease-out 0.7s forwards;
}

@keyframes scaleInRotate {
    0% {
        opacity: 0;
        transform: scale(0) rotate(-180deg);
    }
    60% {
        transform: scale(1.2) rotate(10deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.project-link:hover {
    background: var(--blaze-secondary);
    color: var(--blaze-white);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.arrow-icon {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--blaze-secondary) !important; /* Force black color to override parent's white */
    transition: color 0.3s ease;
}

.project-link:hover .arrow-icon {
    color: var(--blaze-white);
}

/* Disable hover effect on mobile/tablet to keep arrow visible */
@media (max-width: 1023px) {
    .project-link:hover {
        background: transparent !important;
        color: inherit !important;
        transform: none !important;
        box-shadow: none !important;
    }
    
    .project-link:hover .arrow-icon {
        color: var(--blaze-secondary) !important;
    }
    
    /* Keep info box transparent on hover for mobile */
    .project-info-box:hover {
        background: rgba(255, 255, 255, 0.5) !important;
        transform: none !important;
    }
}

/* On desktop (1024px+), arrow turns white on hover */
@media (min-width: 1024px) {
    .project-link:hover .arrow-icon {
        color: var(--blaze-white) !important;
    }
}

/* Enhanced matt glassy effect for yellow highlight box */
.project-highlight-box {
    background: rgba(255, 215, 0, 0.9);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    color: var(--blaze-secondary);
    padding: 1.5rem 2rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1.2rem;
    max-width: 350px;
    align-self: flex-end;
    margin-top: auto;
    position: relative;
    z-index: 3;
    opacity: 0;
    transform: translateX(30px) scale(0.8);
    box-shadow: 
        0 10px 30px rgba(255, 215, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        0 0 0 1px rgba(255, 215, 0, 0.2);
    transition: all 0.3s ease;
}

.project-highlight-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.05) 50%,
        rgba(255, 255, 255, 0.1) 100%
    );
    border-radius: 10px;
    pointer-events: none;
}

.project-highlight-box:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 15px 40px rgba(255, 215, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        0 0 0 1px rgba(255, 215, 0, 0.3);
    background: rgba(255, 215, 0, 0.95);
}

@keyframes slideInRightScale {
    0% {
        opacity: 0;
        transform: translateX(30px) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.highlight-text {
    display: block;
    line-height: 1.4;
}

/* Empty State */
.project-showcase-empty {
    text-align: center;
    padding: 3rem;
    background: var(--blaze-gray);
    border-radius: 15px;
    color: var(--blaze-text);
}

.project-showcase-empty p {
    font-size: 1.1rem;
    margin: 0;
}

/* Enhanced Responsive Design */

/* Large Tablets and Small Laptops */
@media (max-width: 1200px) {
    .project-showcase-container {
        max-width: 1200px;
        padding: 0 2.5rem;
    }
    
    .project-showcase-section.alignfull .project-showcase-container {
        padding: 0 2.5rem;
    }
    
    .project-item {
        padding: 2.5rem;
        min-height: 350px;
    }
    
    .project-item.full-width {
        min-height: 380px;
    }
    
    .project-info-box {
        max-width: 350px;
        padding: 1.75rem;
    }
    
    .project-title {
        font-size: 1.75rem;
    }
    
    .project-description {
        font-size: 1rem;
    }
}

/* Tablets */
@media (max-width: 1024px) {
    .project-showcase-container {
        padding: 0 2rem;
    }
    
    .project-showcase-section.alignfull .project-showcase-container {
        padding: 0 2rem;
    }
    
    /* Adjust masonry layout for tablets */
    .project-showcase-section.layout-masonry .project-showcase-container {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 1.5rem;
    }
    
    .project-item {
        padding: 2rem;
        min-height: 320px;
    }
    
    .project-item.full-width {
        min-height: 350px;
    }
    
    .project-info-box {
        max-width: 320px;
        padding: 1.5rem;
    }
    
    .project-title {
        font-size: 1.6rem;
    }
    
    .project-description {
        font-size: 0.95rem;
    }
    
    .project-highlight-box {
        max-width: 300px;
        padding: 1.25rem 1.75rem;
        font-size: 1.1rem;
    }
}

/* Large Mobile and Small Tablets */
@media (max-width: 768px) {
    .project-showcase-section {
        padding: 2.5rem 0;
    }
    
    .project-showcase-section.layout-grid .project-showcase-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .project-showcase-section.layout-masonry .project-showcase-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .project-showcase-container {
        padding: 0 1.5rem;
    }
    
    .project-showcase-section.alignfull .project-showcase-container {
        padding: 0 1.5rem;
    }
    
    .project-item {
        padding: 2rem;
        min-height: 350px;
        border-radius: 15px;
        /* Better background positioning for mobile */
        background-position: center top !important;
        background-size: cover !important;
    }
    
    /* Add subtle overlay for better text readability */
    .project-item::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(180deg, 
            rgba(0,0,0,0.4) 0%, 
            rgba(0,0,0,0.2) 50%, 
            rgba(0,0,0,0.4) 100%);
        border-radius: 15px;
        z-index: 1;
    }
    
    .project-item.full-width {
        min-height: 380px;
    }
    
    .project-item:not(.full-width) {
        min-height: 350px;
    }
    
    .project-showcase-content {
        flex-direction: column;
        gap: 1.5rem;
        align-items: stretch;
        position: relative;
        z-index: 2;
    }
    
    .project-info-box {
        max-width: 100%;
        padding: 1.75rem;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.5); /* More transparent to show background image */
        backdrop-filter: blur(10px); /* Softer blur to maintain some readability */
    }
    
    .project-title {
        font-size: 1.75rem;
        margin-bottom: 1rem;
        font-weight: 800;
    }
    
    .project-description {
        font-size: 1rem;
        margin-bottom: 1.25rem;
        line-height: 1.6;
    }
    
    /* Hide highlight box on mobile for cleaner layout */
    .project-highlight-box {
        display: none;
    }
    
    /* Larger touch target for mobile */
    .project-link {
        width: 50px;
        height: 50px;
        border-width: 2.5px;
    }
    
    .arrow-icon {
        font-size: 1.25rem;
    }
    
    /* Better layout for title row on mobile */
    .project-item:not(.full-width) .project-title-row {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
    }
    
    .project-item:not(.full-width) .project-title {
        margin-bottom: 0;
        flex: 1;
    }
    
    .project-item:not(.full-width) .project-link {
        flex-shrink: 0;
    }
}

/* Mobile Devices */
@media (max-width: 480px) {
    .project-showcase-section {
        padding: 2rem 0;
    }
    
    .project-showcase-container {
        padding: 0 1rem;
    }
    
    .project-showcase-section.alignfull .project-showcase-container {
        padding: 0 1rem;
    }
    
    .project-showcase-section.layout-grid .project-showcase-container {
        gap: 1.5rem;
    }
    
    .project-item {
        padding: 1.5rem;
        min-height: 300px;
        border-radius: 12px;
    }
    
    .project-item.full-width {
        min-height: 320px;
    }
    
    .project-item:not(.full-width) {
        min-height: 300px;
    }
    
    .project-info-box {
        padding: 1.5rem;
        border-radius: 10px;
    }
    
    .project-title {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
        font-weight: 700;
    }
    
    .project-description {
        font-size: 0.95rem;
        margin-bottom: 1rem;
        line-height: 1.6;
    }
    
    /* Minimum 44x44px touch target for accessibility */
    .project-link {
        width: 44px;
        height: 44px;
        border-width: 2px;
    }
    
    .arrow-icon {
        font-size: 1.1rem;
    }
    
    /* Maintain good spacing */
    .project-showcase-content {
        gap: 1.25rem;
    }
    
    .project-item:not(.full-width) .project-title-row {
        gap: 0.75rem;
    }
}

/* Small Mobile Devices */
@media (max-width: 360px) {
    .project-showcase-container {
        padding: 0 1rem;
    }
    
    .project-showcase-section.alignfull .project-showcase-container {
        padding: 0 1rem;
    }
    
    .project-item {
        padding: 1.25rem;
        min-height: 280px;
    }
    
    .project-item.full-width {
        min-height: 300px;
    }
    
    .project-info-box {
        padding: 1.25rem;
    }
    
    .project-title {
        font-size: 1.35rem;
        margin-bottom: 0.6rem;
    }
    
    .project-description {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    /* Maintain 44x44px minimum touch target */
    .project-link {
        width: 44px;
        height: 44px;
    }
    
    .arrow-icon {
        font-size: 1rem;
    }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .project-item {
        min-height: 250px;
    }
    
    .project-item.full-width {
        min-height: 280px;
    }
    
    .project-showcase-content {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .project-info-box {
        max-width: 100%;
    }
    
    /* Keep highlight box hidden on landscape mobile too */
    .project-highlight-box {
        display: none;
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .project-item,
    .project-info-box,
    .project-title,
    .project-description,
    .project-link,
    .project-highlight-box {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
} 