:root {
    --primary: #2f4858;
    --accent: #FFD35D;
    --light: #f8f6f0;
    --white: #ffffff;
    --gray: #8a95a0;
    --text: #4a5a66;
    --dark: #1a2d3a;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Manrope', sans-serif;
    background: var(--white) !important;
    color: var(--text);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    color: var(--primary);
}

/* Project Header */
.project-header {
    padding: 9rem 0 3rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    margin-bottom: 2rem;
    transition: all 0.3s;
}

.back-link:hover { color: var(--accent); gap: 0.8rem; }

.badges-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.style-badge {
    background: var(--primary);
    color: var(--accent);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.year-badge {
    background: rgba(255,211,93,0.35);
    color: var(--primary);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-title {
    font-size: clamp(1.9rem, 4.5vw, 3rem);
    max-width: 850px;
    margin-bottom: 1rem;
}

.project-location {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray);
    font-size: 1rem;
}

/* Hero Image */
.hero-img-wrap { display: flex; justify-content: center; padding: 0 0 2rem; }

.hero-img-wrap img {
    height: 400px;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(47,72,88,0.12);
    display: block;
    max-width: 100%;
    object-fit: cover;
}

/* Specs Strip */
.specs-strip {
    padding: 3rem 0;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
}

.spec-card {
    background: var(--light);
    border-radius: 16px;
    padding: 1.3rem 1rem;
    text-align: center;
    transition: all 0.3s;
}

.spec-card:hover {
    background: rgba(255,211,93,0.18);
    transform: translateY(-3px);
}

.spec-card .icon {
    width: 38px; height: 38px;
    margin: 0 auto 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.spec-card .icon svg { width: 26px; height: 26px; color: var(--primary); }

.spec-card .label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray);
    margin-bottom: 0.3rem;
}
.spec-card .value {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary);
}

/* Main Content Layout */
.project-main { padding: 2rem 0 5rem; }

.project-desc { font-size: 1.05rem; line-height: 1.85; }
.project-desc p { margin-bottom: 1.4rem; }

.project-desc h2 {
    font-size: clamp(1.3rem, 3vw, 1.6rem);
    margin: 2.5rem 0 1rem;
    position: relative;
    padding-left: 1.2rem;
}

.project-desc h2::before {
    content: '';
    position: absolute;
    left: 0; top: 0.3rem; bottom: 0.3rem;
    width: 4px;
    background: var(--accent);
    border-radius: 2px;
}

/* Passport Card (sidebar) */
.passport-card {
    background: var(--light);
    border-radius: 24px;
    padding: 2rem;
    position: sticky;
    top: 100px;
}

.passport-title {
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.passport-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(47,72,88,0.08);
    font-size: 0.9rem;
}

.passport-row:last-of-type { border-bottom: none; }
.passport-row .k { color: var(--gray); }
.passport-row .v { font-weight: 700; color: var(--primary); text-align: right; }

.btn-passport {
    width: 100%;
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--primary);
    color: var(--accent);
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Manrope', sans-serif;
}

.btn-passport:hover { background: var(--accent); color: var(--primary); }

/* Gallery */
.gallery-section { padding: 4rem 0; background: var(--light); }

.section-title { font-size: clamp(1.7rem, 3.5vw, 2.2rem); margin-bottom: 0.8rem; }
.section-subtitle { font-size: 1rem; color: var(--gray); max-width: 600px; }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
    margin-top: 2.5rem;
}

.gallery-item {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(47,72,88,0.08);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    display: block;
}

.gallery-item:hover img { transform: scale(1.06); }

.gallery-item .room-label {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    background: rgba(26,45,58,0.85);
    color: var(--white);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    backdrop-filter: blur(4px);
}

.gallery-item .zoom-icon {
    position: absolute;
    top: 1rem; right: 1rem;
    width: 40px; height: 40px;
    background: var(--accent);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.6);
    transition: all 0.3s;
}

.gallery-item:hover .zoom-icon { opacity: 1; transform: scale(1); }

/* Works */
.works-section { padding: 5rem 0; }

.works-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem 2rem;
    margin-top: 2.5rem;
}

.work-item {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 1.1rem 1.3rem;
    background: var(--light);
    border-radius: 14px;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.work-item:hover {
    background: rgba(255,211,93,0.18);
    transform: translateX(4px);
}

.work-check {
    width: 22px; height: 22px;
    background: var(--accent);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 0.1rem;
}
.work-check svg { width: 12px; height: 12px; }

/* Review Block */
.review-section { padding: 0 0 5rem; }

.review-card {
    background: var(--primary);
    border-radius: 24px;
    padding: 3rem;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.review-card::before {
    content: '«';
    position: absolute;
    top: -1rem; right: 2rem;
    font-size: 12rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: rgba(255,211,93,0.15);
    line-height: 1;
}

.review-text {
    font-size: 1.15rem;
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 2rem;
    position: relative;
    max-width: 800px;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.review-avatar {
    width: 52px; height: 52px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    flex-shrink: 0;
}

.review-name { font-weight: 700; font-size: 0.95rem; }
.review-role { font-size: 0.8rem; opacity: 0.6; }

/* Prev/Next Navigation */
.project-nav { padding: 0 0 5rem; }

.project-nav-card {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    background: var(--light);
    border-radius: 20px;
    padding: 1.3rem 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
}

.project-nav-card:hover {
    background: var(--white);
    box-shadow: 0 15px 35px rgba(47,72,88,0.1);
    color: inherit;
    transform: translateY(-3px);
}

.project-nav-card img {
    width: 90px;
    height: 70px;
    object-fit: cover;
    border-radius: 12px;
    flex-shrink: 0;
}

.project-nav-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray);
    margin-bottom: 0.2rem;
}

.project-nav-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--primary);
}

.project-nav-card.next { text-align: right; flex-direction: row-reverse; }

/* CTA */
.cta-section { padding: 0 0 5rem; }

.cta-box {
    background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
    border-radius: 24px;
    padding: 3.5rem 3rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    width: 350px; height: 350px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,211,93,0.15) 0%, transparent 70%);
    top: -100px; right: -80px;
}

.cta-box h3 { color: var(--white); font-size: clamp(1.3rem, 2.5vw, 1.7rem); margin-bottom: 0.5rem; position: relative; }
.cta-box p { color: rgba(255,255,255,0.7); margin: 0; font-size: 0.95rem; position: relative; max-width: 520px; }

.btn-cta-accent {
    background: var(--accent);
    color: var(--primary);
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Manrope', sans-serif;
    position: relative;
    white-space: nowrap;
}

.btn-cta-accent:hover { background: var(--white); transform: translateY(-3px); }

/* Lightbox Modal */
.lightbox-modal .modal-content {
    background: transparent;
    border: none;
}

.lightbox-modal .btn-close {
    position: absolute;
    top: -10px; right: -10px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 1;
    z-index: 10;
    padding: 0.9rem;
}

.lightbox-img {
    width: 100%;
    border-radius: 20px;
    display: block;
    box-shadow: 0 25px 70px rgba(0,0,0,0.5);
}

.lightbox-caption {
    text-align: center;
    color: var(--white);
    font-weight: 700;
    margin-top: 1rem;
    font-size: 0.95rem;
}

/* Contact Modal */
.modal-contact .modal-content { border: none; border-radius: 24px; overflow: hidden; }
.modal-contact .modal-header { background: var(--primary); border: none; padding: 2rem 2rem 1.5rem; }
.modal-contact .modal-title { color: var(--white); }
.modal-contact .modal-body { padding: 2rem; }

.form-custom-label { font-weight: 700; font-size: 0.85rem; color: var(--primary); margin-bottom: 0.4rem; }
.form-control-custom {
    border: 2px solid #e8e6df; border-radius: 12px; padding: 0.8rem 1rem;
    font-size: 0.9rem; color: var(--primary); background: var(--light); transition: all 0.3s;
    width: 100%;
    font-family: 'Manrope', sans-serif;
}
.form-control-custom:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255,211,93,0.15); outline: none; }

.btn-form-submit {
    width: 100%; padding: 0.9rem; background: var(--accent); color: var(--primary);
    border: none; border-radius: 12px; font-size: 0.95rem; font-weight: 700;
    cursor: pointer; transition: all 0.3s;
}
.btn-form-submit:hover { background: var(--primary); color: var(--accent); }

.modal-success .modal-content { border: none; border-radius: 24px; text-align: center; padding: 3rem 2rem; }
.success-icon { width: 80px; height: 80px; background: rgba(255,211,93,0.15); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; }
.success-icon svg { width: 40px; height: 40px; color: var(--primary); }

/* Responsive */
@media (max-width: 991.98px) {
    .specs-grid { grid-template-columns: repeat(3, 1fr); }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .passport-card { position: static; margin-top: 2rem; }
}

@media (max-width: 767.98px) {
    .project-header { padding: 7rem 0 2.5rem; }
    .works-grid { grid-template-columns: 1fr; }
    .review-card { padding: 2rem 1.5rem; }
    .cta-box { padding: 2.5rem 1.5rem; text-align: center; justify-content: center; }
    .specs-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-img-wrap img { height: 250px; }
}

@media (max-width: 575.98px) {
    .gallery-grid { grid-template-columns: 1fr; }
    .project-nav-card.next { flex-direction: row-reverse; }
    .project-nav-card { padding: 1rem; }
}

@media (max-width: 374.98px) {
    .project-title { font-size: 1.6rem; }
    .spec-card .value { font-size: 0.85rem; }
}