*,
*::before,
*::after {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

body {
    height: 100vh;
    width: 100vw;
    background-color: black;
    overflow: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul, ol {
    list-style-type: none;
}

.main {
    position: relative;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.logo {
    max-width: 100px;
    max-height: 100px;
    position: fixed;
    top: 18px;
    left: 18px;
    background-color: rgba(255, 255, 255, 1);
}

.drone-view { 
    width: 54px; 
    height: 54px; 
    padding: 8px; 
    border-radius: 50%; 
    position: fixed; 
    top: 24px; 
    right: 140px; 
    z-index: 9; 
    background-color: #ffffff; 
    overflow: hidden; 
}

.bg-image {
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    object-fit: cover;
    opacity: 0.2;
    z-index: -1;
}

.project-details {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    row-gap: 24px;
    color: #ffffff;
    width: 60%;
}

.project-title {
    text-align: center;
    font-size: 48px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    letter-spacing: 2px;
}

.project-description {
    text-align: center;
    font-size: 18px;
    font-family: 'Open Sans', sans-serif;
    line-height: 28px;
    letter-spacing: 1px;
    font-weight: 300;
}

.copyright-wrapper {
    position: fixed;
    bottom: 14px;
    color: #ffffff;
    font-family: 'Open Sans', sans-serif;
    letter-spacing: 1.5px;
    font-weight: 300;
    font-size: 14px;
    text-align: center;
}

.share-container {
    position: fixed;
    display: flex;
    flex-direction: column;
    align-items: center;
    bottom: 18px;
    right: 18px;
}

.share-button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.35);
    box-shadow: 
        inset 0px 0px 0px 1px rgba(255, 255, 255, 0.1),
        inset 0px 0px 7px 1px rgba(255, 255, 255, 0.1),
        0px 0px 7px 0px rgba(0, 0, 0, 0.25);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.share-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.button-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: absolute;
    bottom: 60px;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.share-container.active .button-group {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.social-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.35);
    box-shadow: 
        inset 0px 0px 0px 1px rgba(255, 255, 255, 0.1),
        inset 0px 0px 7px 1px rgba(255, 255, 255, 0.1),
        0px 0px 7px 0px rgba(0, 0, 0, 0.25);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    text-decoration: none;
}

.social-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.interiors-dialog {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border: none;
    padding: 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.35);
    box-shadow: 
        inset 0px 0px 0px 1px rgba(255, 255, 255, 0.1),
        inset 0px 0px 7px 1px rgba(255, 255, 255, 0.1),
        0px 0px 7px 0px rgba(0, 0, 0, 0.25);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.interior-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 999;
    transition: all 0.3s ease;
}

.interior-inner-wrapper {
    display: flex;
    flex-direction: column;
    row-gap: 8px;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.35);
    box-shadow: 
        inset 0px 0px 0px 1px rgba(255, 255, 255, 0.1),
        inset 0px 0px 7px 1px rgba(255, 255, 255, 0.1),
        0px 0px 7px 0px rgba(0, 0, 0, 0.25);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    padding: 12px;
    border-radius: 20px;
}

.interior-close-btn {
    position: absolute;
    top: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.35);
    box-shadow: 
        inset 0px 0px 0px 1px rgba(255, 255, 255, 0.1),
        inset 0px 0px 7px 1px rgba(255, 255, 255, 0.1),
        0px 0px 7px 0px rgba(0, 0, 0, 0.25);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    padding: 4px 6px;
    border-radius: 4px;
    color: #ffffff;
    cursor: pointer;
}

.dialog-title {
    text-align: center;
    font-family: 'DM Sans', sans-serif;
    font-size: 28px;
    color: #ffffff;
    font-weight: 300;
    letter-spacing: 1px;
}

.interiors-cards-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-top: 14px;
    overflow-y: auto;
    height: 254px;
    padding: 14px;
    background: transparent; /* Ensure no white background */
}

.interiors-cards-list::-webkit-scrollbar {
    width: 8px;
}

.interiors-cards-list::-webkit-scrollbar-track {
    background: transparent;
}

.interiors-cards-list::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: padding-box;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.interiors-cards-list:hover::-webkit-scrollbar-thumb {
    opacity: 1;
}

.interiors-card {
    background: rgba(255, 255, 255, 0.1) !important; /* Force translucent background */
    border: 2px solid rgba(255, 255, 255, 0.35);
    box-shadow: 
        inset 0px 0px 0px 1px rgba(255, 255, 255, 0.1),
        inset 0px 0px 7px 1px rgba(255, 255, 255, 0.1),
        0px 0px 7px 0px rgba(0, 0, 0, 0.25);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: #ffffff;
    padding: 12px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    column-gap: 16px;
    height: 104px;
    width: 250px;
    transition: all 0.3s ease-in-out;
}

.interiors-card:hover {
    border-color: #ffffff;
    transform: scale(1.02);
}

.interiors-card-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.interiors-card-img {
    height: 80px;
    width: 80px;
    object-fit: cover;
    border-radius: 10px;
}

.interiors-card-size {
    display: flex;
    font-size: 32px;
    align-items: end;
    column-gap: 4px;
    font-family: 'DM Sans', sans-serif;
}

.interiors-card-size span {
    font-size: 14px;
    margin-bottom: 9px;
}

.interiors-card-type-orientation {
    font-family: 'Open Sans', sans-serif;
}

.feature-btns-wrapper {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.35);
    box-shadow: 
        inset 0px 0px 0px 1px rgba(255, 255, 255, 0.1),
        inset 0px 0px 7px 1px rgba(255, 255, 255, 0.1),
        0px 0px 7px 0px rgba(0, 0, 0, 0.25);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Open Sans', sans-serif;
    padding: 12px 24px;
    border-radius: 50px;
    max-width: 90%;
    box-sizing: border-box;
}

.feature-btn {
    width: 100%;
    min-width: 120px;
    height: 95px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 1.5px;
    font-weight: 400;
}

.feature-btn .icon-wrapper {
    position: relative;
    width: 60px;
    height: 60px;
    min-width: 60px;
    min-height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.35);
    box-shadow: 
        inset 0px 0px 0px 1px rgba(255, 255, 255, 0.1),
        inset 0px 0px 7px 1px rgba(255, 255, 255, 0.1),
        0px 0px 7px 0px rgba(0, 0, 0, 0.25);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.feature-btn img {
    width: 50px;
    height: 50px;
    min-width: 50px;
    min-height: 50px;
    opacity: 0.9;
    transition: all 0.3s ease;
    border-radius: 50%;
    object-fit: contain;
}

.feature-btn:hover .icon-wrapper {
    border-color: #ffffff;
    transform: scale(1.05);
}

.feature-btn:hover img {
    opacity: 1;
    transform: scale(1.05);
}

.feature-btn.active .icon-wrapper {
    background: rgba(255, 255, 255, 0.2);
    border-color: #ffffff;
}

.spim-logo-wrapper {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 72px;
    height: 72px;
    padding: 8px;
    background-color: #ffffff;
}

.spim-logo {
    width: 100%;
    height: 100%;
}

.full-screen-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 99;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.35);
    box-shadow: 
        inset 0px 0px 0px 1px rgba(255, 255, 255, 0.1),
        inset 0px 0px 7px 1px rgba(255, 255, 255, 0.1),
        0px 0px 7px 0px rgba(0, 0, 0, 0.25);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    height: 36px;
    width: 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 50px;
}

.full-screen-container button {
    border: none;
    cursor: pointer;
    background-color: transparent;
}

.hide {
    display: none;
}

@supports not (backdrop-filter: blur(10px)) {
    .feature-btn .icon-wrapper,
    .share-button,
    .social-button,
    .interiors-dialog,
    .interior-inner-wrapper,
    .interior-close-btn,
    .interiors-card,
    .feature-btns-wrapper,
    .full-screen-container {
        background: rgba(255, 255, 255, 0.1); /* Consistent translucent fallback */
    }
}

@media screen and (max-width: 768px) {
    .interiors-cards-list {
        grid-template-columns: 1fr;
        background: transparent; /* Ensure no white background */
    }

    .feature-btns-wrapper {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 8px;
        padding: 8px 16px;
        max-width: 95%;
    }

    .feature-btn {
        min-width: 100px;
        height: 80px;
        font-size: 12px;
    }

    .feature-btn .icon-wrapper {
        width: 50px;
        height: 50px;
        min-width: 50px;
        min-height: 50px;
    }

    .feature-btn img {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
    }
}

@media screen and (max-width: 1024px) {
    .project-title {
        display: none;
    }

    .project-description {
        display: none;
    }

    .copyright-wrapper {
        display: none;
    }

    .feature-btns-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 8px 16px;
        max-width: 95%;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: rgba(255, 255, 255, 0.1) !important; /* Force translucent background */
        -webkit-backdrop-filter: blur(10px) !important;
        backdrop-filter: blur(10px) !important;
    }

    .logo {
        max-width: 80px;
        max-height: 80px;
    }

    .interiors-dialog {
        background: rgba(255, 255, 255, 0.1) !important; /* Force translucent background */
        -webkit-backdrop-filter: blur(10px) !important;
        backdrop-filter: blur(10px) !important;
    }

    .interior-inner-wrapper {
        background: rgba(255, 255, 255, 0.1) !important; /* Force translucent background */
        -webkit-backdrop-filter: blur(10px) !important;
        backdrop-filter: blur(10px) !important;
    }

    .interiors-cards-list {
        background: transparent !important; /* Ensure no white background */
    }

    .interiors-card {
        background: rgba(255, 255, 255, 0.1) !important; /* Force glassy effect */
        -webkit-backdrop-filter: blur(10px) !important;
        backdrop-filter: blur(10px) !important;
    }

    .share-button {
        background: rgba(255, 255, 255, 0.1) !important; /* Force translucent background */
        -webkit-backdrop-filter: blur(10px) !important;
        backdrop-filter: blur(10px) !important;
    }

    .social-button {
        background: rgba(255, 255, 255, 0.1) !important; /* Force translucent background */
        -webkit-backdrop-filter: blur(10px) !important;
        backdrop-filter: blur(10px) !important;
    }

    .full-screen-container {
        background: rgba(255, 255, 255, 0.1) !important; /* Force translucent background */
        -webkit-backdrop-filter: blur(10px) !important;
        backdrop-filter: blur(10px) !important;
    }

    .interior-close-btn {
        background: rgba(255, 255, 255, 0.1) !important; /* Force translucent background */
        -webkit-backdrop-filter: blur(10px) !important;
        backdrop-filter: blur(10px) !important;
    }

    /* Fallback for browsers without backdrop-filter support */
    @supports not (backdrop-filter: blur(10px)) {
        .feature-btns-wrapper,
        .interiors-dialog,
        .interior-inner-wrapper,
        .interiors-card,
        .share-button,
        .social-button,
        .full-screen-container,
        .interior-close-btn {
            background: rgba(255, 255, 255, 0.1) !important; /* Consistent translucent fallback */
        }
    }
}

@media screen and (min-width: 1025px) {
    .feature-btns-wrapper {
        bottom: 54px;
        top: auto;
        transform: translateX(-50%);
    }
}

.loader-container {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    background-color: #000000;
}

.loader {
    max-width: 350px;
    max-height: 350px;
}

.hidden-loader {
    display: none;
}

.spim-logo-wrapper {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 72px;
  height: 72px;
  padding: 8px;
  background-color: #ffffff;
}

svg {
    background: transparent;
    width: 100%;
    height: 100%;
}

path, rect, polygon {
    fill: transparent;
    stroke: #ffffff;
    stroke-width: 10;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-opacity: 1;
    stroke-dasharray: 10000; 
    stroke-dashoffset: 0;
    filter: 
        drop-shadow(0px 0px 1px rgba(255, 255, 255, 0.75))
        drop-shadow(0px 0px 5px rgba(255, 255, 255, 0.75));
    transform-origin: center;
    transition: 
        stroke 0.3s ease-in-out,
        stroke-width 0.3s ease-in-out,
        stroke-dashoffset 0.4s ease-in-out,
        stroke-opacity 0.3s ease-in-out;
}

.cls-1 {
  fill: none;
  stroke: #ffffff;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.path-reveal {
  stroke-dasharray: 10000; /* Large enough to match the full length */
  stroke-dashoffset: 10000;
  animation: draw 10s ease-in-out infinite;
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}