* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

:root {
    --primary-brown: #2c1e14;
    --accent-blue: #a5d8ff;
    --accent-lime: #adff2f;
    --glass-bg: rgba(44, 30, 20, 0.8);
    --border-lite: rgba(165, 216, 255, 0.15);
}

body {
    background-color: var(--primary-brown);
    color: #FFFFFF;
    font-family: 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}


#nuggetCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    pointer-events: none;
}

.portfolio-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.5) 100%);
    z-index: -1;
    pointer-events: none;
}

/* 3. Header Fix for Layout Shift (CLS) */
.luxury-header {
    min-height: 7.5rem;
    /* Ensure space is reserved even before styles load */
}

.luxury-header {
    position: sticky;
    top: 0;
    width: 100%;
    height: 7.5rem;
    padding-block: 1rem;
    z-index: 1000;
    background-color: var(--primary-brown);
}

.nav-wings {
    border-top: 0.0625rem solid var(--accent-blue);
    position: relative;
}

.step-nav {
    position: absolute;
    left: 50%;
    top: 6rem;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 3rem;
    background: var(--primary-brown);
    padding: 0.6rem 1.8rem;
    border-radius: 0.25rem;
    border-bottom: 0.0625rem solid #a5d8ff;
    border-inline: 1.0625rem solid #a5d8ff;
    z-index: 100;
}

.step-nav a {
    color: var(--accent-blue);
    text-decoration: none;
    font-size: 0.7rem;
    transition: 0.3s;
}

.step-nav a:hover {
    color: var(--accent-lime);
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--accent-lime);
    min-width: 10rem;
    box-shadow: 0rem 0.5rem 1rem 0rem rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.dropdown-content a {
    color: var(--primary-brown);
    padding: 0.75rem 1rem;
    text-decoration: none;
    display: block;
    text-align: center;
    font-size: 0.8rem;
    margin-block: 1rem;
}

.dropdown-content a:hover {
    background-color: var(--glass-bg);
    color: #ffffff;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.nav-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 26rem;
    height: 5rem;
    background: var(--accent-blue);
    clip-path: polygon(0 0, 100% 0, 100% 0%, 80% 100%, 20% 100%, 0 0);
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-notch::before {
    content: "";
    position: absolute;
    inset: 0.0625rem 0.1875rem;
    clip-path: polygon(0 0, 100% 0, 100% 0%, 80% 100%, 20% 100%, 0 0);
    background: rgba(44, 30, 20, 0.95);
    z-index: -1;
}

#forimagine-logo {
    width: 10rem;
    transition: 0.3s;
}

.logo {
    fill: var(--accent-blue);
    transition: 0.3s;
}

#forimagine-logo:hover .logo {
    fill: var(--accent-lime);
}

#welcome {
    background-color: #fff;
    /* border-radius: 1rem; */
    border: 0.1rem solid var(--accent-blue);
    color: #000;
    display: flex;
    flex-direction: column;
    /* letter-spacing: 2rem; */
    margin: 4rem 0rem 1rem 0rem;
    align-content: center;
    padding-block: 1rem;
    padding-left: 2rem;

    p {
        padding: 0rem 10rem 0rem 0rem;
    }
}

#join {
    scroll-margin-top: 8rem;
}

/* 2. Performance: Content Visibility 
   This tells the browser to only render these sections when they are close to the viewport. 
*/

.pricing-section,
.video-archive {
    content-visibility: auto;
    contain-intrinsic-size: 1px 500px;
    /* Placeholder size for smoother scrolling */
}

.video-archive {
    position: relative;
    padding: 5rem 5%;
    display: flex;
    justify-content: center;
    flex-direction: row;
    align-items: center;
    gap: 2.5rem;
    min-height: 80vh;
    overflow: hidden;
}

.vertical-timeline-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6rem;
    width: 100%;
    max-width: 75rem;
    margin: 0 auto;
    overflow: hidden;
}

.v-timeline-track {
    position: sticky;
    top: 6.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    border-left: 0.0625rem solid var(--border-lite);
    padding-left: 2rem;
    min-width: 15.625rem;
}

.v-timeline-item {
    position: relative;
    cursor: pointer;
    padding: 1rem;
    background: rgb(255, 255, 255);
    /* backdrop-filter: blur(0.625rem); */
    border: 0.0625rem solid var(--border-lite);
    border-radius: 0.5rem;
    /* opacity: 0.5; */
    transition: all 0.3s ease;
    pointer-events: all;
}

.v-timeline-item:hover {
    background: var(--accent-blue);
}

.v-timeline-item.active {
    opacity: 1;
    background: rgb(255, 255, 255);
    border-color: var(--accent-blue);
    transform: translateX(0.625rem);
}

.v-timeline-item .dot {
    position: absolute;
    left: -2.35rem;
    top: 50%;
    transform: translateY(-50%);
    width: 0.625rem;
    height: 0.625rem;
    background: var(--accent-blue);
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 0 0.625rem var(--accent-blue);
}

.v-timeline-item.active .dot {
    background: var(--accent-lime);
    box-shadow: 0 0 0.9375rem var(--accent-lime);
    transform: translateY(-50%) scale(1.4);
}

.v-timeline-item .date {
    display: block;
    font-size: 0.7rem;
    color: var(--primary-brown);
    margin-bottom: 0.25rem;
    letter-spacing: 0.125rem;
    font-weight: bold;
}

.v-timeline-item .label {
    font-weight: 600;
    font-size: 1rem;
    color: #000;
}

#info-display.content-box {
    flex-grow: 1;
    background: rgb(255, 255, 255);
    backdrop-filter: blur(1.25rem);
    border: 0.0625rem solid var(--border-lite);
    padding: 2rem;
    border-radius: 1rem;
    color: #000000;
    box-shadow: 0 0.625rem 1.875rem rgba(0, 0, 0, 0.3);
}

#info-display h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-brown);
    text-transform: uppercase;
    letter-spacing: 0.125rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 0.0625rem solid var(--border-lite);
}

.video-container iframe {
    width: 100%;
    height: 100%;
    border-radius: 0.5rem;
}

.video-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: none;
    border-radius: 0.5rem;
    overflow: hidden;
    margin-bottom: 1rem;
    border: 0.0625rem solid rgba(255, 255, 255, 0.1);
}

#video-player {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#info-text {
    font-size: 0.95rem;
    color: var(--primary-brown);
}

.timeline-nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
}

.v-prev-btn,
.v-next-btn {
    width: 3.5rem;
    height: 3.5rem;
    background: #ffffff;
    border: 0.0625rem solid var(--primary-brown);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.3s;
}

.v-prev-btn::after,
.v-next-btn::after {
    content: "";
    width: 0.6rem;
    height: 0.6rem;
    border-left: 0.125rem solid var(--primary-brown);
    border-bottom: 0.125rem solid var(--primary-brown);
}

.v-prev-btn::after {
    transform: rotate(135deg) translate(-0.125rem, 0.125rem);
}

.v-next-btn::after {
    transform: rotate(-45deg) translate(-0.125rem, 0.125rem);
}

.v-prev-btn:hover,
.v-next-btn:hover {
    background: var(--accent-blue);
}

.v-prev-btn:hover::after,
.v-next-btn:hover::after {
    border-color: var(--primary-brown);
}



#main-projects {
    padding: 40px 5%;
    background: var(--accent-blue);
    border: 0.1rem solid #ffffff;

}

.main-projects-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.main-projects-header h2 {
    color: var(--primary-brown);
    margin: 0;
}

.slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.slider-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 20px;
    -ms-overflow-style: none;
    scrollbar-width: none;
    transition: all 0.4s ease-in-out;
}

.slider-container::-webkit-scrollbar {
    display: none;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #ffffff;
    color: var(--primary-brown);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    font-size: 18px;
    transition: background-color 0.3s ease;
}

.slider-arrow:hover {
    background: var(--accent-blue);
}

.left-arrow {
    left: -20px;
}

.right-arrow {
    right: -20px;
}

.project-card {
    flex: 0 0 300px;
}

.project-card {
    position: relative;
    min-width: 300px;
    height: 180px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-align: center;
    color: var(--primary-brown);
    font-weight: 600;
}

.project-card img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: contain;
    top: 0;
    left: 0;
    transition: transform 0.4s ease;
}

.project-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: background-color 0.3s ease;
}

/* Text hidden initially */
.project-card span {
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.3s ease;
}

/* Hover effects */
.project-card:hover img {
    transform: scale(1.05);
}

.project-card:hover::after {
    background: #a5d8ff40;
}

.project-card:hover span {
    opacity: 1;
    transform: translateY(0);
}

.project-detail-view {
    padding: 60px 5%;
    background: none;
}


.dropdown1 {
    position: relative;
    display: inline-block;
}

.dropbtn1 {
    background: var(--primary-brown);
    color: var(--accent-blue);
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
}

.dropbtn1:hover {
    background: var(--glass-bg);
}

.dropdown1-content {
    display: none;
    position: absolute;
    background: var(--accent-lime);
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 40;
}

.dropdown1-content a {
    color: var(--primary-brown);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown1-content a:hover {
    background: var(--glass-bg);
    color: #ffffff;
}

.dropdown1:hover .dropdown1-content {
    display: block;
}

.aspect-16-9-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    background: var(--glass-bg);
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.aspect-16-9-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.aspect-16-9-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}


.pricing-section {
    padding: 6.25rem 4rem;
    background: var(--bg-deep);
    text-align: center;
}

.pricing-grid {
    display: flex;
    justify-content: center;
    gap: 1.875rem;
    flex-wrap: wrap;
}

.price-card {
    background: #ffffff;
    border-color: var(--accent-blue);
    padding: 2.5rem;
    border-radius: 1.25rem;
    width: 20rem;
    display: flex;
    flex-direction: column;
    transition: 0.3s ease;
    position: relative;
}

.price-card.featured {
    border-color: var(--accent-blue);
    transform: scale(1.05);
    background: #ffffff;
    color: var(--primary-brown);
    box-shadow: 0 0.625rem 1.875rem rgba(0, 122, 255, 0.1);
}

.card-tag {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--primary-brown);
    font-weight: 800;
    letter-spacing: 0.0625rem;
    margin-bottom: 0.9375rem;
}

.price-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 0.625rem;
}

.price {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.3125rem;
}

.unit {
    font-size: 0.9rem;
    color: var(--primary-brown);
    font-weight: 400;
}

.target-label {
    color: var(--primary-brown);
    font-size: 0.85rem;
    margin-bottom: 1.5625rem;
    font-style: italic;
}

.features {
    list-style: none;
    text-align: left;
    margin-bottom: 1.875rem;
    flex-grow: 1;
}

.features li {
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: var(--primary-brown);
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.features li i {
    color: var(--primary-brown);
    font-size: 0.8rem;
}

.btn-price {
    text-decoration: none;
    color: var(--primary-brown);
    border: 0.0625rem solid var(--primary-brown);
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-weight: 700;
    transition: 0.3s;
}

.btn-price:hover {
    background: var(--accent-lime);
    border-color: var(--accent-lime);
    color: var(--primary-brown);
}


footer {
    height: 10rem;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--accent-blue);
}

@media screen and (max-width: 64rem) {
    .video-archive {
        padding: 2.5rem 5%;
        min-height: auto;
        gap: 1.25rem;
    }

    .vertical-timeline-wrapper {
        gap: 1rem;
    }

    #info-display.content-box {
        padding: 1.5rem;
    }

    .video-archive {
        flex-direction: column;
        padding: 1.25rem 0.9375rem;
    }

    .vertical-timeline-wrapper {
        justify-content: center;
    }

    .timeline-nav {
        flex-direction: row;
        margin-block: 1rem;
    }

    .v-timeline-track {
        display: none;
    }

    #welcome {

        p {
            padding: 0rem 1rem 0rem 0rem;
        }
    }

}

@media screen and (max-width: 48rem) {
    .nav-notch {
        width: 18rem;
    }

    .step-nav {
        top: 5.5rem;
        gap: 3rem;
        padding: 0.5rem 1rem;
        width: 90%;
        justify-content: center;
    }

    .step-nav a {
        font-size: 0.7rem;
    }

    .video-archive {
        flex-direction: column;
        padding: 1.25rem 0.9375rem;
    }

    .vertical-timeline-wrapper {
        justify-content: center;
    }

    .timeline-nav {
        flex-direction: row;
        margin-block: 1rem;
    }

    .v-timeline-track {
        display: none;
    }

    #welcome {

        p {
            padding: 0rem 1rem 0rem 0rem;
        }
    }

    #main-projects {
        margin-top: 4rem;
    }

    .dropbtn1 {
        margin-right: 1rem;
    }

}

@media screen and (max-width: 30rem) {

    .step-nav {
        top: 5rem;
    }

    .step-nav a {
        font-size: 0.6rem;
    }

}