/* Street View Component Styles */
.street-view {
    background-color: var(--light-gray);
    padding: 4rem 2rem;
    min-height: calc(100vh - 100px);
    position: relative;
    margin-top: 100px;
    background-image: url('../../assets/img/streetsbg.svg');
    background-size: inherit;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.projects .projects__gallery.projects__gallery--mobile {
    display: none;
}

.street-view__content {
    max-width: 1170px;
    margin: 0 auto;
}

.street-view__title {
    font-size: 65px;
    font-weight: 900;
    color: var(--dark-gray);
    text-align: center;
    margin-bottom: 4rem;
    text-transform: uppercase;
    font-style: italic;
    letter-spacing: -0.04em;
}

.street-view__process {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 300px 1fr;
    grid-template-rows: 1fr 1fr 1fr;
    gap: 4rem;
    align-items: flex-start;
    justify-items: center;
    min-height: 600px;
}

/* Phone Placeholder */
.street-view__phone {
    grid-column: 2;
    grid-row: 1 / 4;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    opacity: 0;
    transform: scale(0.8);
    animation: phoneAppear 0.8s ease forwards;
    animation-delay: 0.4s;
    background: transparent;
}

@keyframes phoneAppear {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.street-view__phone-placeholder {
    width: 200px;
    height: 400px;
    background: linear-gradient(135deg, #2E3230 0%, #242725 20%, #171918 100%);
    border-radius: 25px;
    padding: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    position: relative;
}

.street-view__phone-placeholder::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--dark-gray);
    border-radius: 2px;
}

.street-view__phone-screen {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 15px;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.street-view__phone-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    display: block;
    background: transparent;
    opacity: 1;
}


/* Process Steps */
.street-view__step {
    background: var(--dark-gray);
    border-radius: 15px;
    padding: 1.5rem;
    max-width: 370px;
    width: 100%;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 263px;
    opacity: 0;
    transform: translateY(50px);
    animation: slideInUp 0.8s ease forwards;
}

.street-view__step--01 {
    animation-delay: 0.1s;
}

.street-view__step--02 {
    animation-delay: 0.2s;
}

.street-view__step--03 {
    animation-delay: 0.3s;
}

.street-view__step--04 {
    animation-delay: 0.4s;
}

.street-view__step--05 {
    animation-delay: 0.5s;
}

.street-view__step--bottom-left {
    animation-delay: 0.6s;
}

.street-view__step--bottom-right {
    animation-delay: 0.7s;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.street-view__step:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.street-view__step-number {
    position: absolute;
    width: 120px;
    height: 120px;
    top: -50px;
    left: 50%;
    transform: translate(-50%, 0px);
    background: linear-gradient(135deg, #2E3230 0%, #242725 80%, #171918 100%);
    border: 10px solid var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 900;
    color: var(--primary-green);
    margin-bottom: 1rem;
    font-style: italic;
}
.street-view__step-content {
    margin-top: 65px;
}

.street-view__step-content h3 {
    font-size: 22px;
    font-weight: 900;
    color: var(--light-gray);
    margin-bottom: 1rem;
    font-style: italic;
    text-align: center;
    z-index: 2;
    position: relative;
}

.street-view__step-content h3::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% + 47px);
    height: 20px;
    background: var(--dark-gray);
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.street-view__step-content h3::before {
    content: '';
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% + 47px);
    height: 20px;
    background: var(--primary-green);
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.street-view__step-content p {
    font-size: 22px;
    display: block;
    font-weight: 400;
    line-height: 92px;
    color: var(--light-gray);
    line-height: 1;
    margin-bottom: 0.5rem;
    margin-top: 60px;
    text-align: center;
}

.street-view__step-content ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0 0;
}

.street-view__step-content li {
    font-size: 0.85rem;
    color: var(--light-gray);
    line-height: 1.3;
    margin-bottom: 0.3rem;
    position: relative;
    padding-left: 1rem;
}

.street-view__step-content li::before {
    content: '•';
    color: var(--primary-green);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Step Positioning */
.street-view__step--01 {
    grid-column: 1;
    grid-row: 1;
    justify-self: end;
}

.street-view__step--02 {
    grid-column: 3;
    grid-row: 1;
    justify-self: start;
}

.street-view__step--03 {
    margin-top: 20px;
    grid-column: 1;
    grid-row: 2;
    justify-self: end;
}

.street-view__step--04 {
    margin-top: 20px;
    grid-column: 3;
    grid-row: 2;
    justify-self: start;
}

.street-view__step--05 {
    width: 370px;
    grid-column: 2;
    grid-row: 3;
    justify-self: center;
}
.street-view__step--bottom-left {
    grid-column: 1;
    grid-row: 3;
    justify-self: end;
    margin-top: -40px;
    height: 100%
}

.street-view__step-content-text {
    color: var(--light-gray);
    font-size: 22px;
    font-weight: 400;
    line-height: 1.2;
    padding: 15px 5px 42px 15px;
}
.street-view__step--bottom-right {
    grid-column: 3;
    grid-row: 3;
    justify-self: start;
}

/* Projects Section */
.projects {
    margin: 10px;
    background-color: var(--dark-gray);
    padding: 4rem 2rem;
    border-radius: 10px;
}

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

.projects__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.projects__button {
    background: white;
    color: var(--dark-gray);
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 22px;
    font-weight: 900;
    font-style: italic;
    letter-spacing: -1px;
    transition: all 0.3s ease;
    width: 100%;
    height: 120px;
    flex-shrink: 0;
}

.projects__button:hover {
    background: var(--primary-green);
    color: var(--dark-gray);
    transform: translateY(-2px);
}

.projects__navigation {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.projects__nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    margin-bottom: 10px;
}

.projects__nav-arrow {
    background: transparent;
    border: 2px solid var(--light-gray);
    color: var(--light-gray);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.projects__nav-arrow:hover {
    background: rgba(122, 255, 179, 0.1);
    border-color: var(--primary-green);
    color: var(--primary-green);
    transform: scale(1.1);
}

.projects__nav-arrow:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.projects__nav-arrow:disabled:hover {
    background: transparent;
    border-color: var(--light-gray);
    color: var(--light-gray);
    transform: none;
}

.projects__title {
    color: var(--light-gray);
    font-size: 1.2rem;
    font-weight: 600;
}

.projects__gallery {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    grid-template-rows: repeat(10, 1fr);
    grid-column-gap: 0px;
    grid-row-gap: 0px;
    max-width: 1170px;
    margin: 0 auto;
    height: 570px;
    margin-top: 2rem;
    gap: 30px;
}

.projects__main-image {
    grid-area: 1 / 6 / 11 / 11;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.projects__main-image:has(.projects__iframe) {
    cursor: default;
}

.projects__iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
    display: block;
    pointer-events: auto;
}

.projects__controls {
    grid-area: 1 / 1 / 5 / 6;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.projects__thumbnail {
    border: 1px solid #F0F0F0;
}

.projects__thumbnail--large {
    grid-area: 5 / 1 / 11 / 4;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.projects__thumbnail--small {
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.projects__thumbnail--small:nth-of-type(3) {
    grid-area: 5 / 4 / 8 / 6;
}

.projects__thumbnail--small:nth-of-type(4) {
    grid-area: 8 / 4 / 11 / 6;
}

.projects__thumbnail--small:nth-of-type(5) {
    grid-area: 5 / 4 / 8 / 6;
}

.projects__thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: block;
}

.projects__thumbnail:hover {
    /* border-color: var(--primary-green); */
    transform: scale(1.02);
}

.projects__thumbnail:hover img {
    transform: scale(1.05);
}

.projects__thumbnail--active {
    border-color: var(--primary-green);
}

.projects__main-image {
    border: 1px solid #F0F0F0;
}

.projects__main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.projects__main-image:hover img {
    transform: scale(1.02);
}

.projects__loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--light-gray);
    z-index: 10;
}

.footer--street-view {
    margin-top: 10px;
}

.footer--street-view .footer__content {
    border-radius: 10px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--medium-gray);
    border-top: 3px solid var(--primary-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

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

.projects__loading.hidden {
    display: none;
}

.image-modal__loading.hidden {
    display: none !important;
}

/* Image Modal Styles */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.image-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.image-modal__content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    box-sizing: border-box;
}

.image-modal__close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 1001;
}

.image-modal__close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--primary-green);
    color: var(--primary-green);
    transform: scale(1.1);
}

.image-modal__navigation {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    pointer-events: none;
    z-index: 1001;
}

.image-modal__nav {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    pointer-events: auto;
}

.image-modal__nav:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--primary-green);
    color: var(--primary-green);
    transform: scale(1.1);
}

.image-modal__nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.image-modal__nav:disabled:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
    transform: none;
}

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

.image-modal__image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    transition: opacity 0.3s ease;
}

.image-modal__loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
}

.image-modal__info {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: white;
    background: rgba(0, 0, 0, 0.7);
    padding: 1rem 2rem;
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

.image-modal__info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
    color: var(--primary-green);
}

.image-modal__info p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Modal responsive styles */
@media (max-width: 768px) {
    .image-modal__content {
        padding: 1rem;
    }
    
    .image-modal__close {
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .image-modal__navigation {
        padding: 0 1rem;
    }
    
    .image-modal__nav {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .image-modal__image-container {
        max-width: 95%;
        max-height: 70%;
    }
    
    .image-modal__info {
        bottom: 1rem;
        padding: 0.8rem 1.5rem;
    }
    
    .image-modal__info h3 {
        font-size: 1rem;
    }
    
    .image-modal__info p {
        font-size: 0.8rem;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .street-view {
        padding: 10px;
        margin-top: 100px;
    }
    .street-view__title {
        font-size: 32px;
        margin-bottom: 2rem;
    }

    .street-view__process {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 80px;
    }
    .street-view__step--03 {
        margin-top: 0;
    }
    .street-view__step--04 {
        margin-top: 0;
    }
    .street-view__step--05 {
        margin-top: 0;
    }
    .street-view__step--bottom-left {
        margin-top: -70px;
    }
    .street-view__step--bottom-right {
        height: 100%;
        margin-top: -70px;
    }

    .street-view__step--bottom-right .street-view__step-content-text {
        padding-bottom: 10px;
    }

    .projects .projects__gallery.projects__gallery--mobile {
        height: 100%;
    }

    .street-view__phone {
        grid-column: 1;
        grid-row: auto;
        order: 1;
    }

    .street-view__phone-placeholder {
        width: 150px;
        height: 300px;
    }

    .street-view__step {
        max-width: 100%;
        order: 2;
    }

    .street-view__step--01,
    .street-view__step--02,
    .street-view__step--03,
    .street-view__step--04,
    .street-view__step--05 {
        width: 100%;
    }

    /* Mobile step ordering */
    .street-view__phone {
        order: 1;
    }
    .street-view__step--01 { order: 2; }
    .street-view__step--02 { order: 3; }
    .street-view__step--03 { order: 4; }
    .street-view__step--bottom-left { order: 5; } /* After step 03 */
    .street-view__step--04 { order: 6; }
    .street-view__step--05 { order: 7; }
    .street-view__step--bottom-right { order: 8; } /* After step 05 */


    .projects__header {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .projects__gallery {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .projects__thumbnails {
        grid-template-rows: 1fr 1fr 1fr;
        height: 200px;
        gap: 0.5rem;
    }

    .projects__main-image {
        height: 250px;
    }

    .projects .projects__gallery.projects__gallery--mobile {
        display: flex;
        flex-direction: column;
        margin-top: 0;
        gap: 10px;
    }

    .projects .projects__gallery.projects__gallery--mobile .projects__button {
        height: 82px;
    }

    .projects .projects__gallery.projects__gallery--mobile .projects__title {
        font-size: 14px;
    }
    

    .projects .projects__gallery.projects__gallery--mobile  .projects__main-image {
        margin-top: unset;
        flex-shrink: 0;
    }

    .projects .projects__gallery.projects__gallery--mobile .projects__thumbnail--large {
        flex-shrink: 0;
        height: 350px;
    }

    .projects .projects__gallery.projects__gallery--mobile .projects__thumbnail--small {
        width: 50%;
        height: 170px;
    }

    .projects .projects__gallery.projects__gallery--desktop {
        display: none;
    }

    .projects__thumbnail--small-conatiner {
        display: flex;
        gap: 10px;
    }
}

@media (max-width: 480px) {

    .street-view__title {
        font-size: 32px;
    }

    .street-view__phone-placeholder {
        width: 120px;
        height: 240px;
    }

    .projects {
        padding: 10px;
    }

    .projects__thumbnails {
        height: 150px;
        gap: 0.3rem;
    }

    .projects__main-image {
        height: 200px;
    }
}
