:root {
    /* Color Palette */
    --color-white: #ffffff;
    --color-soft-grey: #f5f5f7;
    --color-pale-beige: #f1ede1;
    --color-text-dark: #1d1d1f;
    --color-text-muted: rgba(29, 29, 31, 0.75);

    /* Glassmorphism Tokens */
    --glass-bg-nav: rgba(255, 255, 255, 0.35);
    --glass-bg-card: rgba(255, 255, 255, 0.55);
    --glass-blur-nav: 24px;
    --glass-blur-card: 40px;
    --glass-border: rgba(255, 255, 255, 0.7);
    --glass-shadow: rgba(0, 0, 0, 0.04);
    --glass-shadow-dark: rgba(0, 0, 0, 0.08);

    /* Animation */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    font-family: 'Outfit', sans-serif;
    color: var(--color-text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--color-pale-beige);
}

/* Background & Overlays */
.background-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
}

.bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    /* Slight scale to allow for dynamic effect or just perfection */
    animation: slowZoom 20s ease-out forwards;
}

@keyframes slowZoom {
    0% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.glass-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    /* Soft global gradient layer to lighten the background, maintaining focus on architecture but increasing readability */
    background: linear-gradient(135deg, rgba(245, 245, 247, 0.35), rgba(241, 237, 225, 0.15));
    z-index: -1;
}

/* Glassmorphism Utilities */
.glass-panel {
    background: var(--glass-bg-nav);
    backdrop-filter: blur(var(--glass-blur-nav));
    -webkit-backdrop-filter: blur(var(--glass-blur-nav));
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 24px var(--glass-shadow);
}

.glass-card {
    background: var(--glass-bg-card);
    backdrop-filter: blur(var(--glass-blur-card));
    -webkit-backdrop-filter: blur(var(--glass-blur-card));
    border: 1px solid var(--glass-border);
    box-shadow: 0 16px 40px var(--glass-shadow-dark);
    border-radius: 28px;
}

/* Navigation Bar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 3.5rem;
    margin: 2rem auto;
    width: 90%;
    max-width: 1400px;
    border-radius: 100px;
    position: relative;
    z-index: 100;
    animation: fadeDown 1s var(--transition-smooth) forwards;
}

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo {
    text-decoration: none;
    color: var(--color-text-dark);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-text-dark);
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition-smooth);
    position: relative;
    opacity: 0.8;
}

.nav-links a:hover {
    opacity: 1;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-text-dark);
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 2px;
}

.nav-links a:hover::after {
    width: 100%;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: var(--color-text-dark);
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    opacity: 0.7;
    position: relative;
}

.social-links a:hover {
    opacity: 1;
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: calc(100vh - 120px);
    padding: 0 5%;
    max-width: 1500px;
    margin: 0 auto;
}

.hero-content {
    max-width: 700px;
    padding: 4.5rem;
    opacity: 0;
    animation: fadeUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content h1 {
    font-size: 4.5rem;
    font-weight: 300;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    letter-spacing: -1.5px;
}

.hero-content p {
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 3.5rem;
    color: var(--color-text-muted);
    line-height: 1.8;
    max-width: 90%;
}

.cta-group {
    display: flex;
    gap: 1.5rem;
}

.btn {
    padding: 1.1rem 2.8rem;
    border-radius: 100px;
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 500;
    transition: var(--transition-smooth);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    z-index: -1;
}

.btn:hover::before {
    transform: translateX(100%);
}

.btn-primary {
    background-color: var(--color-text-dark);
    color: var(--color-white);
    border: 1px solid var(--color-text-dark);
}

.btn-primary:hover {
    background-color: #333;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-color: #333;
}

.btn-secondary {
    background-color: var(--glass-bg-nav);
    color: var(--color-text-dark);
    border: 1px solid rgba(29, 29, 31, 0.2);
    backdrop-filter: blur(12px);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
    border-color: rgba(29, 29, 31, 0.4);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-content h1 {
        font-size: 4rem;
    }
}

@media (max-width: 992px) {
    .navbar {
        padding: 1.25rem 2.5rem;
        width: 95%;
    }

    .hero-content {
        padding: 3.5rem;
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 1rem 1.5rem;
        flex-direction: column;
        gap: 1rem;
        border-radius: 20px;
        backdrop-filter: blur(32px);
        width: 95%;
    }

    .logo {
        font-size: 1.3rem;
    }

    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
        font-size: 0.95rem;
    }

    .hero-section {
        justify-content: center;
        padding-top: 1rem;
        min-height: calc(100vh - 160px);
    }

    .hero-content {
        padding: 2.5rem 1.5rem;
        text-align: center;
        max-width: 100%;
        margin-top: 1rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .hero-content p {
        max-width: 100%;
        font-size: 1.05rem;
        margin-bottom: 2rem;
    }

    .cta-group {
        justify-content: center;
        flex-direction: column;
        gap: 1rem;
    }

    .btn {
        width: 100%;
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 0.95rem;
    }
}

/* Realizations (Character Selection UI + Gallery) */
.bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}
.bg-layer.active {
    opacity: 1;
}

.realizations-page {
    position: relative;
    width: 100%;
    min-height: 100vh;
}

.selection-stage {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 150px);
    padding-top: 5rem;
}

.stage-cards {
    position: relative;
    width: 100%;
    max-width: 1200px;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    align-items: center;
    justify-content: flex-start;
    padding-left: 5%;
}

.model-card {
    grid-column: 1;
    grid-row: 1;
    max-width: 480px;
    padding: 3rem;
    opacity: 0;
    transition: opacity 1.2s ease-in-out, transform 1.2s ease-in-out;
    transform: translateX(-20px);
    pointer-events: none;
    z-index: 1;
}

.model-card.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: all;
    z-index: 2;
}

.info-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.model-card h2 {
    font-size: 3.5rem;
    font-weight: 300;
    line-height: 1;
    color: var(--color-text-dark);
}

.badge {
    background: var(--color-text-dark);
    color: var(--color-white);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.specs {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--color-text-dark);
}

.spec-item i {
    width: 20px;
    height: 20px;
    opacity: 0.8;
}

.model-card p {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--color-text-muted);
}

.stage-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--glass-bg-nav);
    backdrop-filter: blur(var(--glass-blur-nav));
    -webkit-backdrop-filter: blur(var(--glass-blur-nav));
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--color-text-dark);
    transition: var(--transition-smooth);
    z-index: 10;
}

.stage-arrow:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: translateY(-50%) scale(1.05);
}

.stage-arrow.prev { left: 4%; }
.stage-arrow.next { right: 4%; }

.stage-bottom {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
}

.indicators {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.indicator {
    width: 60px;
    height: 4px;
    background: rgba(29, 29, 31, 0.2);
    border-radius: 2px;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
}

.indicator::after {
    content: '';
    position: absolute;
    top: -10px;
    bottom: -10px;
    left: 0;
    right: 0;
}

.indicator:hover {
    background: rgba(29, 29, 31, 0.4);
}

.indicator.active {
    background: var(--color-text-dark);
}

/* Gallery Section */
.gallery-stage {
    padding: 6rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-title {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 3rem;
    text-align: left;
    color: var(--color-text-dark);
}
.gallery-title span {
    font-weight: 500;
}

.model-gallery, .model-plans {
    display: none;
    animation: fadeUp 1s ease forwards;
}

.model-gallery.active, .model-plans.active {
    display: block;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.gallery-item {
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition-smooth);
    padding: 0; /* Override glass-panel padding if applicable */
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px var(--glass-shadow-dark);
}

.gallery-img-wrapper {
    width: 100%;
    height: 100%;
    background-color: rgba(29, 29, 31, 0.05); /* Placeholder color */
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    font-size: 1rem;
    transition: var(--transition-smooth);
}
.gallery-item:hover .gallery-img-wrapper {
    background-color: rgba(29, 29, 31, 0.1);
}

/* Lightbox Modal */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(241, 237, 225, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.lightbox-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox-close {
    position: absolute;
    top: 40px;
    right: 60px;
    font-size: 3rem;
    color: var(--color-text-dark);
    cursor: pointer;
    transition: var(--transition-smooth);
    z-index: 1001;
}

.lightbox-close:hover {
    transform: scale(1.1);
}

.lightbox-content {
    max-width: 90vw;
    max-height: 85vh;
    padding: 0.5rem;
    border-radius: 12px;
}

.lightbox-content img {
    max-width: 100%;
    max-height: calc(85vh - 1rem);
    object-fit: contain;
    border-radius: 8px;
    display: block;
}

@media (max-width: 992px) {
    .stage-cards {
        padding-left: 0;
        justify-items: center;
    }
    .model-card {
        max-width: 90%;
        transform: translateY(20px);
    }
    .model-card.active {
        transform: translateY(0);
    }
    .stage-arrow { width: 48px; height: 48px; }
    .stage-arrow.prev { left: 2%; }
    .stage-arrow.next { right: 2%; }
    .gallery-title { font-size: 2rem; text-align: center; }
}

@media (max-width: 768px) {
    .selection-stage {
        padding-top: 1rem;
        padding-bottom: 5rem;
    }
    .stage-cards {
        width: 100%;
    }
    .model-card {
        padding: 2rem 1.5rem;
        max-width: 100%;
        border-radius: 20px;
    }
    .model-card h2 {
        font-size: 2.25rem;
    }
    .specs {
        gap: 0.75rem;
        padding-bottom: 1rem;
        margin-bottom: 1.5rem;
        flex-direction: column;
        align-items: flex-start;
    }
    .spec-item {
        font-size: 0.95rem;
    }
    .model-card p {
        font-size: 1rem;
    }
    .stage-arrow {
        top: auto;
        bottom: 20px;
        transform: none;
    }
    .stage-arrow:hover {
        transform: scale(1.05);
    }
    .stage-arrow.prev { left: 10%; }
    .stage-arrow.next { right: 10%; }
    .stage-bottom {
        bottom: 30px;
    }
    .indicator {
        width: 40px;
    }
    .gallery-stage {
        padding: 3rem 5%;
    }
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 1rem;
    }
    .lightbox-close {
        top: 20px;
        right: 20px;
        font-size: 2.5rem;
    }
}