/* Reference Hero Section */
.reference-hero {
    position: relative;
    height: 425px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 91px;
}

.reference-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.reference-hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reference-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.reference-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.reference-hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: 56px;
    font-weight: 700;
    line-height: 1.2;
    color: #FFFFFF;
    text-align: center;
}

.reference-hero-arrow {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 46px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease;
    z-index: 10;
}

.reference-hero-arrow:hover {
    transform: translateX(-50%) scale(1.1);
}

.reference-expand-arrow {
    width: 46px;
    height: 25px;
    object-fit: contain;
    display: block;
}

/* Reference Projects Section */
.reference-projects {
    padding: 112px 0 0 0;
    background: #FFFFFF;
}

.reference-grid {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 60px;
}

.reference-project {
    display: flex;
    align-items: center;
    gap: 0;
    width: 100%;
    padding: 0;
    box-sizing: border-box;
}

.reference-project:nth-child(even) {
    flex-direction: row-reverse;
}

.project-image {
    flex: 1;
    position: relative;
    overflow: hidden;
    border-radius: 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 50%;
}

.project-img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-overlay-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-image:hover .project-overlay {
    opacity: 1;
}

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

.project-content {
    flex: 1;
    max-width: 400px;
    margin-left: 288px;
    margin-right: 0;
    padding: 0;
}

.reference-project:nth-child(even) .project-content {
    margin-left: 0;
    margin-right: 300px;
}

.project-title {
    font-family: 'Roboto', sans-serif;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.1;
    color: #000000;
    margin-bottom: 34px;
    white-space: nowrap;
    transition: letter-spacing 0.3s ease;
}

.project-title:hover {
    letter-spacing: 1px;
}

.project-description {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.5;
    color: #000000;
    margin-bottom: 32px;
}

/* Reference Responsive Design */
@media (max-width: 1200px) {
    .project-content {
        margin-left: 20px;
    }
    .reference-project:nth-child(even) .project-content {
        margin-right: 20px;
    }
    .reference-project {
        gap: 0;
        padding: 0;
    }
    
    .project-img {
        height: 350px;
    }
    
    .project-content {
        padding: 0 20px;
    }
    .reference-grid {
        gap: 48px;
    }
}

@media (max-width: 768px) {
    .reference-hero-title {
        font-size: 42px;
    }
    
    .reference-project {
        flex-direction: column;
        gap: 0;
        padding: 0;
        text-align: center;
        width: 100%;
    }
    
    .reference-project:nth-child(even) {
        flex-direction: column;
    }
    
    .project-image {
        max-width: 100%;
        width: 100%;
        order: 1;
        margin: 0;
        padding: 0;
    }
    
    .project-img {
        height: 300px;
        width: 100%;
    }
    
    .project-content,
    .reference-project:nth-child(even) .project-content {
        max-width: none;
        text-align: center;
        margin: 0;
        padding: 40px 20px 0 20px;
        order: 2;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .project-title {
        white-space: nowrap;
    }
    .reference-grid {
        gap: 32px;
    }
}

@media (max-width: 480px) {
    .reference-hero-title {
        font-size: 36px;
    }
    
    .reference-project {
        padding: 0;
        flex-direction: column;
        gap: 0;
        text-align: center;
        width: 100%;
    }
    
    .reference-project:nth-child(even) {
        flex-direction: column;
    }
    
    .project-image {
        order: 1;
        width: 100%;
        margin: 0;
        padding: 0;
    }
    
    .project-content {
        order: 2;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 30px 20px 0 20px;
    }
    
    .project-title {
        font-size: 16px;
        white-space: nowrap;
    }
    
    .project-description {
        font-size: 12px;
    }
    .project-img {
        height: 200px;
        width: 100%;
    }
} 

/* Instagram Button Section */
.instagram-button-section {
    padding: 7px 0 60px 0;
    background: #FFFFFF;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Instagram Section */
.instagram-section {
    padding: 20px 0;
    background: #FFFFFF;
}

/* Desktop version - Button */
.instagram-desktop {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    text-align: center;
    padding: 0 20px;
    box-sizing: border-box;
}

.btn-instagram {
    background: transparent;
    color: #000000;
    border: 2px solid #000000;
    padding: 8px 20px;
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    font-weight: 400;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0 auto;
}

.btn-instagram::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: #000000;
    transition: height 0.3s ease;
    z-index: -1;
}

.btn-instagram:hover::before {
    height: 100%;
}

.btn-instagram:hover {
    color: #FFFFFF;
}

.instagram-icon-btn {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
    transition: filter 0.3s ease;
}

.btn-instagram:hover .instagram-icon-btn {
    filter: brightness(0) invert(1);
}

/* Mobile version - Text and Pictures */
.instagram-mobile {
    display: none;
}

.instagram-title {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 32px;
    text-align: center;
}

.instagram-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 400px;
    margin: 0 auto;
}

.instagram-item {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

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

/* Responsive Design for Instagram Section */
@media (max-width: 768px) {
    .instagram-desktop {
        display: none;
    }
    
    .instagram-mobile {
        display: block;
    }
    
    .instagram-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        max-width: 300px;
    }
    
    .instagram-title {
        font-size: 20px;
        margin-bottom: 24px;
    }
}

@media (max-width: 480px) {
    .instagram-section {
        padding: 60px 0;
    }
    
    .instagram-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        max-width: 250px;
    }
    
    .instagram-title {
        font-size: 18px;
        margin-bottom: 20px;
    }
} 

/* Instagram Feed Loading and Integration */
.instagram-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: #666;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #000000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.instagram-fallback {
    display: none;
}

.instagram-feed-item {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.instagram-feed-item:hover {
    transform: scale(1.05);
}

.instagram-feed-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.instagram-feed-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.instagram-feed-item:hover .instagram-feed-overlay {
    opacity: 1;
}

.instagram-feed-overlay-icon {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
} 