/* 
   Premium Showcase Styles 
   Webnova Tech - Branding Revamp
*/

/* --- 1. Client Marquee --- */
.marquee-container {
    padding: 60px 0;
    overflow: hidden;
    position: relative;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.marquee-title {
    text-align: center;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    margin-bottom: 40px;
    font-family: var(--font-heading);
}

.marquee-track {
    display: flex;
    white-space: nowrap;
    animation: marquee 30s linear infinite;
    width: max-content;
}

.marquee-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 50px;
    height: 40px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
    cursor: help;
    position: relative;
}

.marquee-item i { margin-right: 15px; font-size: 1.2rem; }

.marquee-item:hover {
    color: var(--primary);
}

/* Tooltip Styles */
.marquee-item::after {
    content: attr(data-tip);
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(11, 11, 15, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 500;
    color: white;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 100;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.marquee-item:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- 2. Bento Grid --- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 350px);
    gap: 24px;
    margin-top: 40px;
}

.bento-item {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
}

.bento-item-large {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-item-medium {
    grid-column: span 2;
}

/* --- 3. Premium Project Card --- */
.project-card-premium {
    height: 100%;
    width: 100%;
    position: relative;
}

.project-card-inner {
    height: 100%;
    width: 100%;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.project-image-wrapper {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.project-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transition: all 0.5s ease;
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, 
        rgba(11, 11, 15, 0.95) 0%, 
        rgba(11, 11, 15, 0.4) 50%, 
        transparent 100%);
    z-index: 2;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.project-badge {
    position: absolute;
    top: 24px;
    left: 24px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 0.75rem;
    color: white;
    font-weight: 600;
    z-index: 3;
}

.project-title-premium {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: white;
}

.project-tags-premium {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.project-tag-pill {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
    opacity: 0.7;
}

.project-cta-premium {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.bento-item:hover {
    transform: translateY(-10px);
    border-color: var(--primary-glow);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px var(--primary-shadow);
}

.bento-item:hover img {
    opacity: 0.8;
    transform: scale(1.05);
}

/* Response */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
        gap: 20px;
    }
    .bento-item-large {
        grid-row: span 1;
    }
    .project-title-premium {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 16px;
    }
    .bento-item {
        height: 350px; /* Fixed height for consistent stacking */
        grid-column: span 1 !important;
        grid-row: span 1 !important;
    }
    .project-title-premium {
        font-size: 1.3rem;
    }
    .project-overlay {
        padding: 24px;
    }
}

/* --- Architecture Visualizer (Elite Hover Effect) --- */
.arch-visualizer {
    position: absolute;
    inset: 0;
    z-index: 5;
    background: rgba(5, 5, 5, 0.85); /* Deep Abyss mask */
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    pointer-events: none;
}

.bento-item:hover .arch-visualizer {
    opacity: 1;
}

.arch-visualizer svg {
    width: 100%;
    height: 100%;
    max-height: 200px;
}

.arch-line {
    fill: none;
    stroke: var(--primary);
    stroke-width: 1.5;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    filter: drop-shadow(0 0 5px var(--primary));
}

.bento-item:hover .arch-line {
    animation: draw-line 2s forwards ease-in-out;
}

.arch-node {
    fill: transparent;
    stroke: var(--secondary);
    stroke-width: 1;
    opacity: 0;
    transition: all 0.3s ease;
    transition-delay: 1s;
}

.bento-item:hover .arch-node {
    opacity: 1;
    fill: var(--text-dim);
}

@keyframes draw-line {
    to { stroke-dashoffset: 0; }
}
