/* ============================================
   DESIGN DETAIL PAGE STYLES
   ============================================ */

.design-detail-page {
    background: #0a0a0a;
    overflow-x: hidden;
}

/* Navbar always visible on design detail pages */
.design-detail-page .unique-nav {
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* Ensure menu overlay is above everything when active */
.design-detail-page .menu-overlay.active {
    z-index: 100001 !important;
}

.design-detail-page .overlay-close {
    z-index: 100003 !important;
}

/* ============================================
   DESIGN HERO
   ============================================ */

.design-hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.design-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    transform: scale(1.1);
    animation: imageFloat 20s ease-in-out infinite;
}

@keyframes imageFloat {
    0%, 100% {
        transform: scale(1.1) translateY(0);
    }
    50% {
        transform: scale(1.15) translateY(-20px);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(10,10,10,0.6) 0%, rgba(10,10,10,1) 100%);
}

.design-hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 2rem;
    max-width: 1200px;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50px;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(30px);
}

.hero-title {
    font-size: clamp(3rem, 10vw, 8rem);
    font-weight: 100;
    line-height: 1;
    letter-spacing: -0.03em;
    color: #fff;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(50px);
}

.title-accent {
    color: #c90000;
    font-weight: 300;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.5rem);
    font-weight: 300;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.6);
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(30px);
}

.hero-scroll {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    transform: translateY(20px);
}

.hero-scroll span {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.8), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

/* ============================================
   DESIGN INFO
   ============================================ */

.design-info {
    padding: 8rem 5vw;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.info-container {
    max-width: 1400px;
    margin: 0 auto;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    opacity: 0;
    transform: translateY(30px);
}

.info-label {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
}

.info-value {
    font-size: 1.25rem;
    font-weight: 300;
    color: #fff;
    line-height: 1.6;
}

/* ============================================
   DESIGN ABOUT
   ============================================ */

.design-about {
    padding: 10rem 5vw;
}

.about-container {
    max-width: 1000px;
    margin: 0 auto;
}

.section-title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 100;
    letter-spacing: -0.02em;
    color: #fff;
    margin-bottom: 4rem;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.about-text {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    font-weight: 300;
    line-height: 1.8;
    color: rgba(255,255,255,0.7);
    opacity: 0;
    transform: translateY(30px);
}

/* ============================================
   DESIGN GALLERY SIMPLE (No Overlay Text)
   ============================================ */

.design-gallery-simple {
    padding: 5rem 5vw;
}

.gallery-container {
    max-width: 1400px;
    margin: 0 auto;
    column-count: 4;
    column-gap: 1.5rem;
}

.gallery-row {
    margin-bottom: 1.5rem;
    break-inside: avoid;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.gallery-row.visible {
    opacity: 1;
    transform: translateY(0);
}

.gallery-row img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-row:hover img {
    transform: scale(1.03);
}

/* ============================================
   DESIGN GALLERY FULL (Masonry)
   ============================================ */

.design-gallery-full {
    padding: 5rem 5vw;
}

.gallery-intro {
    max-width: 800px;
    margin: 0 auto 5rem;
    text-align: center;
}

.gallery-intro-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 100;
    letter-spacing: -0.02em;
    color: #fff;
    margin-bottom: 1.5rem;
}

.gallery-intro-text {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    font-weight: 300;
    line-height: 1.8;
    color: rgba(255,255,255,0.6);
}

/* Masonry Grid */
.masonry-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(100px, auto);
    gap: 1.5rem;
    max-width: 1600px;
    margin: 0 auto;
}

.masonry-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    background: #1a1a1a;
}

.masonry-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Item Sizes - Based on natural image aspect ratio */
.masonry-item.item-large {
    grid-column: span 2;
    grid-row: span 2;
}

.masonry-item.item-large img[src*="cover"] {
    grid-row: span 2;
}

.masonry-item.item-medium {
    grid-column: span 2;
    grid-row: span 1;
}

.masonry-item.item-small-vertical {
    grid-column: span 1;
    grid-row: span 2;
}

.masonry-item.item-small-square {
    grid-column: span 1;
    grid-row: span 1;
}

.masonry-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    display: block;
}

.masonry-item:hover img {
    transform: scale(1.05);
}

.masonry-item-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.masonry-item:hover .masonry-item-info {
    transform: translateY(0);
}

.masonry-item-info h3 {
    font-size: 1.5rem;
    font-weight: 400;
    color: #fff;
    margin-bottom: 0.5rem;
}

.masonry-item-info p {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
}

/* ============================================
   DESIGN STATS
   ============================================ */

.design-stats {
    padding: 8rem 5vw;
    background: linear-gradient(to bottom, rgba(201,0,0,0.05), transparent);
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 4rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    opacity: 0;
    transform: translateY(30px);
}

.stat-number {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 100;
    line-height: 1;
    color: #c90000;
}

.stat-suffix {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 100;
    color: #c90000;
    margin-left: -0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
}

/* ============================================
   DESIGN CTA
   ============================================ */

.design-cta {
    padding: 10rem 5vw;
    text-align: center;
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: clamp(2rem, 6vw, 5rem);
    font-weight: 100;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(30px);
}

.cta-text {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 300;
    color: rgba(255,255,255,0.6);
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(30px);
}

.cta-button-large {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 3rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50px;
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    letter-spacing: 0.05em;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    transform: translateY(30px);
}

.cta-button-large:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.4);
    transform: translateY(-5px);
}

.cta-button-large svg {
    transition: transform 0.3s ease;
}

.cta-button-large:hover svg {
    transform: translateX(8px);
}

/* ============================================
   DESIGN FOOTER
   ============================================ */

.design-footer {
    padding: 4rem 5vw;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-back {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

.footer-back:hover {
    color: #fff;
}

.footer-back svg {
    transition: transform 0.3s ease;
}

.footer-back:hover svg {
    transform: translateX(-5px);
}

.footer-nav {
    display: flex;
    gap: 3rem;
}

.footer-link {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-decoration: none;
    color: rgba(255,255,255,0.6);
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #c90000;
}

.link-label {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.link-title {
    font-size: 1.5rem;
    font-weight: 300;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1200px) {
    .masonry-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .masonry-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .masonry-item.item-large,
    .masonry-item.item-medium {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .masonry-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 400px;
    }
    
    .masonry-item.item-large,
    .masonry-item.item-medium,
    .masonry-item.item-small-vertical,
    .masonry-item.item-small-square {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .gallery-intro {
        margin-bottom: 3rem;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-nav {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .footer-link {
        align-items: center;
    }
}

/* ============================================
   IMAGE LIGHTBOX
   ============================================ */

.image-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 999999;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: zoom-out;
}

.image-lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: lightboxZoom 0.3s ease;
}

@keyframes lightboxZoom {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, color 0.3s ease;
}

.lightbox-close:hover {
    color: #ba0000;
    transform: scale(1.1);
}

.lightbox-close svg {
    width: 40px;
    height: 40px;
}

/* Navigation arrows */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1000000;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-nav.prev {
    left: 30px;
}

.lightbox-nav.next {
    right: 30px;
}

.lightbox-nav svg {
    width: 30px;
    height: 30px;
}

/* Hide arrows on mobile */
@media (max-width: 768px) {
    .lightbox-nav {
        width: 50px;
        height: 50px;
    }

    .lightbox-nav.prev {
        left: 10px;
    }

    .lightbox-nav.next {
        right: 10px;
    }

    .lightbox-close {
        top: 15px;
        right: 15px;
    }

    .lightbox-close svg {
        width: 30px;
        height: 30px;
    }
}
