/* Project Page Specific Styles */

/* General Link Styles */
a {
    color: #0f819b;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #ffffff;
}

/* Microsite Link Styles */
.info-item .value a {
    color: #ffffff;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.info-item .value a:hover {
    color: #3b7f98;
}

/* Project Navigation */
.project-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid #333333;
}

.project-nav .nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.project-nav .logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.project-nav .logo-icon {
    height: 50px;
    width: auto;
}

.project-nav .logo h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    margin: 0;
    color: #ffffff;
    font-weight: 600;
}

.project-nav .logo h1 .thin {
    font-weight: 300;
}

.back-btn {
    color: #ffffff;
    text-decoration: none;
    padding: 8px 20px;
    border: 1px solid #333333;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.back-btn:hover {
    border-color: #0f819b;
    background: rgba(15, 129, 155, 0.1);
}

/* Project Hero */
.project-hero {
    padding: 120px 0 80px;
    background: #111111;
}

.project-intro {
    max-width: 800px;
    margin-bottom: 3rem;
}

.project-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #888888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff, #888888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.project-client {
    font-size: 1.5rem;
    color: #cccccc;
    margin-bottom: 2rem;
    font-weight: 300;
}

.project-description {
    font-size: 1.25rem;
    line-height: 1.6;
    color: #cccccc;
    max-width: 600px;
}

.project-hero-image {
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    height: 400px;
}

.project-hero-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
}

.hero-background-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center -50px;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

/* Project Details */
.project-details {
    padding: 80px 0;
    background: #000000;
}

.details-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}

.details-content h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #ffffff;
}

.details-content h3 {
    font-size: 1.5rem;
    margin: 3rem 0 1rem;
    color: #ffffff;
}

.details-content p {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #cccccc;
}

/* Sidebar Cards */
.project-info-card,
.project-services-card {
    background: #1a1a1a;
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid #333333;
    margin-bottom: 2rem;
}

.project-info-card h4,
.project-services-card h4 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
    border-bottom: 1px solid #333333;
    padding-bottom: 0.5rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #2a2a2a;
}

.info-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.info-item .label {
    color: #888888;
    font-weight: 500;
}

.info-item .value {
    color: #ffffff;
}

.services-list {
    list-style: none;
    padding: 0;
}

.services-list li {
    color: #cccccc;
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

.services-list li::before {
    content: '•';
    color: #ffffff;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Project Gallery */
.project-gallery-section {
    padding: 80px 0;
    background: #111111;
}

.project-gallery-section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #ffffff;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 200px);
    gap: 1rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    transition: all 0.3s ease;
}

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

.gallery-item.wide {
    grid-column: span 2;
}

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

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

.gallery-item:hover {
    transform: translateY(-5px);
}

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

.gallery-item:hover .gallery-background-video {
    transform: scale(1.05);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: #ffffff;
    padding: 1rem;
    font-size: 0.9rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

/* Next Project */
.next-project {
    padding: 60px 0;
    background: #000000;
    border-top: 1px solid #333333;
}

.next-project-content {
    text-align: center;
}

.next-project h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #888888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.next-project-link {
    display: inline-flex;
    align-items: center;
    gap: 2rem;
    text-decoration: none;
    color: #ffffff;
    padding: 2rem;
    border: 1px solid #333333;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.next-project-link:hover {
    border-color: #0f819b;
    transform: translateX(10px);
}

.next-project-info h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.next-project-info p {
    color: #888888;
    margin: 0;
}

.next-project-arrow {
    font-size: 2rem;
    transition: transform 0.3s ease;
}

.next-project-link:hover .next-project-arrow {
    transform: translateX(10px);
}

/* Project Footer */
.project-footer {
    background: #1a1a1a;
    padding: 3rem 0 1rem;
    border-top: 1px solid #333333;
}

.project-footer .footer-brand {
    display: flex;
    flex-direction: column;
}

.footer-brand-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.footer-logo {
    height: 40px;
    width: auto;
}

.project-footer .footer-brand h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    margin: 0;
    color: #ffffff;
    font-weight: 600;
}

.project-footer .footer-brand h3 .thin {
    font-weight: 300;
}

.project-footer .footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-actions {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.contact-btn {
    background: transparent;
    border: 2px solid #ffffff;
    color: #ffffff;
    padding: 12px 30px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    background: #0f819b;
    color: #ffffff;
}

.project-footer .footer-social {
    display: flex;
    gap: 1rem;
}

.project-footer .footer-social a {
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid #333333;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.project-footer .footer-social a:hover {
    border-color: #0f819b;
    background: #0f819b;
    color: #ffffff;
}

/* Timeline Section */
.timeline-section {
    padding: 80px 0;
    background: #111;
}

.timeline {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

/* Vertical line connecting years */
.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, rgba(15, 129, 155, 0.5) 5%, rgba(15, 129, 155, 0.5) 95%, transparent);
    transform: translateX(-50%);
}

.timeline-item {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 40px;
    padding: 40px 0;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    position: relative;
}

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

.timeline-home {
    width: 400px;
    height: 250px;
    overflow: hidden;
    border-radius: 4px;
    position: relative;
}

.timeline-home::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    pointer-events: none;
    transition: background-color 0.3s ease;
}

.timeline-home:hover::after {
    background-color: rgba(0, 0, 0, 0.3);
}

.timeline-home-overlay {
    position: absolute;
    bottom: 15px;
    left: 15px;
    z-index: 2;
    color: #fff;
    pointer-events: none;
}

.timeline-home-location {
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    opacity: 0.5;
}

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

.timeline-home:hover img {
    transform: scale(1.05);
}

.timeline-year {
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #0f819b;
    text-align: center;
    min-width: 100px;
    background: #111;
    padding: 10px 20px;
    position: relative;
    z-index: 1;
}

.timeline-thumbs {
    display: flex;
    gap: 15px;
}

.timeline-thumbs img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.timeline-thumbs img:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

/* Alternate positions: odd rows - home left, thumbs right */
.timeline-item:nth-child(odd) .timeline-home {
    grid-column: 1;
    grid-row: 1;
    justify-self: end;
}

.timeline-item:nth-child(odd) .timeline-year {
    grid-column: 2;
    grid-row: 1;
}

.timeline-item:nth-child(odd) .timeline-thumbs {
    grid-column: 3;
    grid-row: 1;
    justify-content: flex-start;
}

/* Alternate positions: even rows - thumbs left, home right */
.timeline-item:nth-child(even) .timeline-home {
    grid-column: 3;
    grid-row: 1;
    justify-self: start;
}

.timeline-item:nth-child(even) .timeline-year {
    grid-column: 2;
    grid-row: 1;
}

.timeline-item:nth-child(even) .timeline-thumbs {
    grid-column: 1;
    grid-row: 1;
    justify-content: flex-end;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .timeline-home {
        width: 300px;
        height: 200px;
    }
    
    .timeline-thumbs img {
        width: 150px;
        height: 150px;
    }
    
    .timeline-item {
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .project-nav .logo-icon {
        height: 36px;
    }
    
    .project-nav .logo h1 {
        font-size: 1.25rem;
    }
    
    .timeline-section {
        padding: 50px 0;
    }
    
    .timeline::before {
        display: none;
    }
    
    .timeline-item {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }
    
    .timeline-year {
        order: -1;
        font-size: 1.5rem;
        padding: 5px 15px;
    }
    
    .timeline-home {
        width: 100%;
        height: auto;
        aspect-ratio: 16/9;
    }
    
    .timeline-thumbs {
        justify-content: center;
    }
    
    .timeline-thumbs img {
        width: 140px;
        height: 140px;
    }
    
    /* Reset grid positions on mobile - stack everything */
    .timeline-item:nth-child(odd) .timeline-home,
    .timeline-item:nth-child(even) .timeline-home {
        grid-column: 1;
        grid-row: auto;
        justify-self: center;
        order: 1;
    }
    
    .timeline-item:nth-child(odd) .timeline-year,
    .timeline-item:nth-child(even) .timeline-year {
        grid-column: 1;
        grid-row: auto;
        order: 0;
    }
    
    .timeline-item:nth-child(odd) .timeline-thumbs,
    .timeline-item:nth-child(even) .timeline-thumbs {
        grid-column: 1;
        grid-row: auto;
        justify-self: center;
        order: 2;
    }
    
    .hero-background-video {
        object-position: center 0px !important;
    }
    
    .project-hero-image img {
        object-position: center 60px !important;
    }
    
    .project-hero-image img.hero-img-yellowstone,
    .project-hero-image img.hero-img-cointreau,
    .project-hero-image img.hero-img-ghirardelli,
    .project-hero-image img.hero-img-olli {
        object-position: center 0px !important;
    }
    
    .project-hero-image img.hero-img-morgan {
        object-position: center 32px !important;
        transform: scale(1.4) !important;
    }
    
    .footer-logo {
        height: 32px;
    }
    
    .footer-brand-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .project-title {
        font-size: 2.5rem;
    }
    
    .project-hero {
        padding: 100px 0 60px;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    
    .gallery-item.large,
    .gallery-item.wide {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .gallery-olli-wide img {
        object-position: center -116px !important;
    }
    
    .gallery-item {
        height: 250px;
    }
    
    .project-footer .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .next-project-link {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .project-title {
        font-size: 2rem;
    }
    
    .project-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .project-hero-image {
        height: 250px;
    }
    
    .project-hero-image img {
        height: 250px;
    }
    
    .project-info-card,
    .project-services-card {
        padding: 1.5rem;
    }
}

/* Thumbnail Modal */
.thumbnail-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.thumbnail-modal.active {
    display: flex;
    opacity: 1;
}

.thumbnail-modal-content {
    position: relative;
    width: 800px;
    max-width: 90vw;
    background: #1a1a1a;
    padding: 20px;
    border-radius: 8px;
}

.thumbnail-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    z-index: 10;
}

.thumbnail-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.thumbnail-modal-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    color: #fff;
    margin: 0 0 20px 0;
    padding-right: 50px;
}

.thumbnail-modal-image {
    width: 100%;
    height: auto;
    max-height: 800px;
    object-fit: contain;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .thumbnail-modal-content {
        width: 95vw;
        padding: 15px;
    }
    
    .thumbnail-modal-title {
        font-size: 1.25rem;
    }
    
    .thumbnail-modal-close {
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
}
