*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    text-decoration: none;
    vertical-align: baseline;
}

:root {
    --primary: #faea31;
    --primary-dim: #c9c31e;
    --bg: #0b0b0b;
    --bg-2: #0f0f0f;
    --card-bg: #141414;
    --border: #252525;
    --border-hover: #3a3a3a;
    --text: #ffffff;
    --text-muted: #888888;
    --text-sub: #cccccc;
    --btn-gradient: linear-gradient(135deg, #e3c425, #faea31);
    --glow: rgba(250, 234, 49, 0.18);
    --glow-strong: rgba(250, 234, 49, 0.35);
    --radius: 16px;
    --radius-sm: 10px;
    --nav-h: 80px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ── NOISE OVERLAY ── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
    opacity: .4;
}

/* ══════════════ NAVBAR ══════════════ */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 100px;
    position: fixed;
    width: 100%;
    height: var(--nav-h);
    top: 0;
    left: 0;
    z-index: 100;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    background: rgba(0, 0, 0, .25);
    border-bottom: 1px solid var(--border);
}

.logo {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.logo img {
    width: 140px;
    height: auto;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 16px;
    align-items: center;
}

.btn-nav {
    background: var(--btn-gradient);
    color: #000;
    padding: 8px 22px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: .85rem;
    cursor: pointer;
    transition: .3s;
    font-family: 'Poppins', sans-serif;
}

.btn-nav:hover {
    transform: scale(1.04);
    box-shadow: 0 0 18px var(--glow-strong);
}

.nav-back {
    color: var(--text-muted);
    font-size: .85rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color .3s;
}

.nav-back:hover {
    color: var(--primary);
}

.nav-back svg {
    transition: transform .3s;
}

.nav-back:hover svg {
    transform: translateX(-3px);
}

/* ══════════════ HERO ══════════════ */
.hero {
    padding-top: calc(var(--nav-h) + 60px);
    padding-bottom: 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* radial glow behind title */
.hero::after {
    content: '';
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 700px;
    height: 300px;
    background: radial-gradient(ellipse, var(--glow) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--card-bg);
    border: 1px solid var(--border-hover);
    border-radius: 50px;
    padding: 6px 18px;
    font-size: .78rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 28px;
    position: relative;
    z-index: 1;
    animation: fadeUp .6s ease both;
}

.hero-label span {
    color: var(--primary);
}

.hero h1 {
    font-size: clamp(2.4rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1px;
    position: relative;
    z-index: 1;
    animation: fadeUp .7s .1s ease both;
}

.hero h1 em {
    font-style: normal;
    color: var(--primary);
}

.hero-sub {
    margin-top: 20px;
    font-size: clamp(.9rem, 1.8vw, 1.15rem);
    color: var(--text-muted);
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    position: relative;
    z-index: 1;
    animation: fadeUp .7s .2s ease both;
}

/* stats row */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 48px;
    position: relative;
    z-index: 1;
    animation: fadeUp .7s .3s ease both;
}

.stat {
    text-align: center;
}

.stat-num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.stat-label {
    font-size: .75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

/* ══════════════ FILTER BAR ══════════════ */
.filter-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0 20px 48px;
    animation: fadeUp .7s .4s ease both;
}

.filter-btn {
    background: var(--card-bg);
    color: var(--text-muted);
    border: 1px solid var(--border);
    padding: 9px 22px;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-size: .82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all .3s;
    white-space: nowrap;
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-btn.active {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
    font-weight: 700;
    box-shadow: 0 0 20px var(--glow);
}

/* ══════════════ GALLERY GRID ══════════════ */
.gallery-wrapper {
    padding: 0 5% 100px;
    position: relative;
    z-index: 1;
}

.gallery-grid {
    columns: 4;
    column-gap: 20px;
}

@media (max-width: 1200px) {
    .gallery-grid {
        columns: 3;
    }
}

@media (max-width: 800px) {
    .gallery-grid {
        columns: 2;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        columns: 1;
    }
}

/* ── PROJECT CARD ── */
.project-card {
    break-inside: avoid;
    margin-bottom: 20px;
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: transform .4s cubic-bezier(.25, .8, .25, 1),
        border-color .3s,
        box-shadow .4s;
    animation: fadeUp .6s ease both;
}

.project-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary-dim);
    box-shadow: 0 12px 40px rgba(0, 0, 0, .6), 0 0 0 1px var(--glow);
}

/* image / placeholder */
.card-img-wrap {
    position: relative;
    overflow: hidden;
    width: 100%;
}

/* image thumbnail with fixed height and cover */
.card-thumb {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

/* empty placeholder – different heights for masonry feel */
.card-placeholder {
    width: 100%;
    background: var(--bg-2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: background .3s;
}

.project-card:hover .card-placeholder {
    background: #1a1a1a;
}

.placeholder-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .3s, box-shadow .3s;
}

.project-card:hover .placeholder-icon {
    background: rgba(250, 234, 49, .12);
    box-shadow: 0 0 20px var(--glow);
}

.placeholder-icon svg {
    opacity: .4;
    transition: opacity .3s;
}

.project-card:hover .placeholder-icon svg {
    opacity: .9;
}

.placeholder-text {
    font-size: .72rem;
    color: var(--border-hover);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: color .3s;
}

.project-card:hover .placeholder-text {
    color: var(--text-muted);
}

/* overlay on hover */
.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, .85) 0%, transparent 60%);
    opacity: 0;
    transition: opacity .4s;
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.project-card:hover .card-overlay {
    opacity: 1;
}

.overlay-zoom {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    transform: scale(0);
    transition: transform .35s .05s cubic-bezier(.34, 1.56, .64, 1);
}

.project-card:hover .overlay-zoom {
    transform: scale(1);
}

/* card info */
.card-info {
    padding: 14px 16px 16px;
}

.card-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(250, 234, 49, .08);
    border: 1px solid rgba(250, 234, 49, .18);
    color: var(--primary);
    font-size: .68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 3px 10px;
    border-radius: 50px;
    margin-bottom: 8px;
}

.card-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--primary);
    flex-shrink: 0;
}

.card-title {
    font-size: .9rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.4;
}

.card-location {
    font-size: .75rem;
    color: var(--text-muted);
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ══════════════ LIGHTBOX ══════════════ */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(0, 0, 0, .92);
    backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s;
    padding: 20px;
}

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

.lightbox-inner {
    max-width: 900px;
    width: 100%;
    background: var(--card-bg);
    border: 1px solid var(--border-hover);
    border-radius: 20px;
    overflow: hidden;
    transform: scale(.95) translateY(20px);
    transition: transform .4s cubic-bezier(.34, 1.56, .64, 1);
    position: relative;
}

.lightbox.open .lightbox-inner {
    transform: scale(1) translateY(0);
}

.lightbox-img-area {
    width: 100%;
    min-height: 340px;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.lightbox-img-area img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lightbox-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 60px;
}

.lightbox-placeholder svg {
    opacity: .25;
}

.lightbox-placeholder p {
    color: var(--border-hover);
    font-size: .85rem;
    letter-spacing: 1px;
}

.lightbox-body {
    padding: 28px 32px 32px;
}

.lightbox-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(250, 234, 49, .08);
    border: 1px solid rgba(250, 234, 49, .2);
    color: var(--primary);
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 14px;
    border-radius: 50px;
    margin-bottom: 14px;
}

.lightbox-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
}

.lightbox-desc {
    font-size: .9rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 22px;
}

.lightbox-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--btn-gradient);
    color: #000;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: .9rem;
    padding: 12px 26px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: transform .25s, box-shadow .25s;
    border: none;
}

.lightbox-cta:hover {
    transform: scale(1.04);
    box-shadow: 0 0 22px var(--glow-strong);
}

.lightbox-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, .5);
    border: 1px solid var(--border-hover);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: all .25s;
    z-index: 10;
}

.lightbox-close:hover {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
}

/* ══════════════ EMPTY STATE ══════════════ */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    display: none;
}

.empty-state svg {
    opacity: .15;
    margin-bottom: 20px;
}

.empty-state p {
    color: var(--text-muted);
    font-size: .95rem;
}

/* ══════════════ CTA SECTION ══════════════ */
.cta-section {
    margin: 0 5% 80px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 56px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 200px;
    background: radial-gradient(ellipse, var(--glow) 0%, transparent 70%);
    pointer-events: none;
}

.cta-section h2 {
    font-size: clamp(1.6rem, 4vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 14px;
    position: relative;
}

.cta-section h2 em {
    font-style: normal;
    color: var(--primary);
}

.cta-section p {
    color: var(--text-muted);
    font-size: .95rem;
    max-width: 480px;
    margin: 0 auto 30px;
    line-height: 1.7;
}

.btn-cta-main {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--btn-gradient);
    color: #000;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    padding: 16px 34px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: transform .3s, box-shadow .3s;
    border: none;
}

.btn-cta-main:hover {
    transform: scale(1.05);
    box-shadow: 0 0 28px var(--glow-strong);
}

/* ══════════════ FOOTER ══════════════ */
footer {
    text-align: center;
    padding: 30px;
    color: #444;
    font-size: .8rem;
    border-top: 1px solid var(--border);
}

/* ══════════════ ANIMATIONS ══════════════ */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

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

/* stagger cards */
.project-card:nth-child(1) {
    animation-delay: .05s;
}

.project-card:nth-child(2) {
    animation-delay: .10s;
}

.project-card:nth-child(3) {
    animation-delay: .15s;
}

.project-card:nth-child(4) {
    animation-delay: .20s;
}

.project-card:nth-child(5) {
    animation-delay: .25s;
}

.project-card:nth-child(6) {
    animation-delay: .30s;
}

.project-card:nth-child(7) {
    animation-delay: .35s;
}

.project-card:nth-child(8) {
    animation-delay: .40s;
}

.project-card:nth-child(9) {
    animation-delay: .45s;
}

.project-card:nth-child(10) {
    animation-delay: .50s;
}

.project-card:nth-child(11) {
    animation-delay: .55s;
}

.project-card:nth-child(12) {
    animation-delay: .60s;
}

/* ══════════════ RESPONSIVE ══════════════ */
@media (max-width: 1500px) {
    .lightbox-inner{
        max-width: 600px;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0 10px;
        height: 68px;
    }

    .logo img {
        width: 145px;
    }

    .hero {
        padding-top: calc(68px + 40px);
        padding-bottom: 40px;
    }

    .hero-stats {
        gap: 28px;
    }

    .stat-num {
        font-size: 1.5rem;
    }

    .filter-bar {
        padding: 0 16px 36px;
        gap: 8px;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: .78rem;
    }

    .gallery-wrapper {
        padding: 0 16px 80px;
    }

    .cta-section {
        margin: 0 16px 60px;
        padding: 40px 24px;
    }

    .lightbox-body {
        padding: 20px 22px 26px;
    }

    .lightbox-title {
        font-size: 1.2rem;
    }
}

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

    .hero-stats {
        flex-wrap: wrap;
        gap: 24px 36px;
    }

    .btn-nav {
        display: none;
    }
}