/* =====================
   VARIABLES & RESET
   ===================== */

   * {
    font-family: 'Montserrat', sans-serif !important;
}

:root {
    --bg: #ffffff;
    --bg2: #f7f4f9;
    --text: #0f0a1a;
    --text2: #6b6478;
    --accent: #b820e6;
    --accent2: #da7d20;
    --border: rgba(0,0,0,0.08);
    --card-bg: #ffffff;
    --nav-bg: rgba(255,255,255,0.85);
    --overlay: rgba(15,10,26,0.7);
    --radius: 12px;
    --transition: 0.35s cubic-bezier(0.4,0,0.2,1);
}

.dark {
    --bg: #11001f;
    --bg2: #1a0030;
    --text: #f0e8ff;
    --text2: #9b8cae;
    --border: rgba(255,255,255,0.08);
    --card-bg: #1e0038;
    --nav-bg: rgba(17,0,31,0.9);
    --overlay: rgba(0,0,0,0.75);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg);
    color: var(--text);
    transition: background var(--transition), color var(--transition);
    min-height: 100vh;
}

/* =====================
   NAV
   ===================== */
#navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 6%;
    background: var(--nav-bg);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
}

.logo img { width: 100px; display: block; }
.logo .logo-dark { display: none; }
.dark .logo .logo-light { display: none; }
.dark .logo .logo-dark { display: block; }

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text2);
    font-size: 0.9rem;
    font-weight: 400;
    transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
}

.theme-btn .sun { display: none; }
.dark .theme-btn .moon { display: none; }
.dark .theme-btn .sun { display: inline; }

.contact-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 20px;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.85rem;
    text-decoration: none;
    color: var(--text);
    transition: background 0.2s, border-color 0.2s;
}
.contact-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}
.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0; right: -100%;
    width: 260px;
    height: 100vh;
    background: var(--bg2);
    flex-direction: column;
    gap: 1.5rem;
    padding: 5rem 2rem 2rem;
    list-style: none;
    transition: right 0.4s cubic-bezier(0.4,0,0.2,1);
    z-index: 200;
    border-left: 1px solid var(--border);
}

.mobile-menu.open { right: 0; }

.mobile-menu a {
    text-decoration: none;
    color: var(--text);
    font-size: 1.1rem;
}

.close-menu {
    position: absolute;
    top: 1.5rem; right: 1.5rem;
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: var(--text);
}

@media (max-width: 768px) {
    .nav-links, .contact-btn { display: none; }
    .hamburger { display: flex; }
    .mobile-menu { display: flex; }
}

/* =====================
   HERO
   ===================== */
.portfolio-hero {
    padding: 140px 6% 60px;
    text-align: center;
}

.section-label {
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.portfolio-hero h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 300;
    line-height: 1;
    background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.hero-sub {
    color: var(--text2);
    font-size: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

/* =====================
   FILTER BAR
   ===================== */
.filter-bar {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    padding: 0 6% 2.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 7px 20px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text2);
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.25s;
}

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

.filter-btn.active {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    border-color: transparent;
    color: white;
}

/* =====================
   PORTFOLIO GRID
   ===================== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    padding: 0 6% 6rem;
}

@media (max-width: 900px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 540px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* =====================
   PORTFOLIO ITEM
   ===================== */
.portfolio-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 1/1;
    cursor: pointer;
    background: var(--card-bg);
    border: 1px solid var(--border);
    transition: transform var(--transition), box-shadow var(--transition);
}

.portfolio-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(184,32,230,0.2);
}

.item-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.4,0,0.2,1);
}

.portfolio-item:hover .item-img {
    transform: scale(1.07);
}

.item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,0,20,0.85) 0%, transparent 55%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.25rem;
    opacity: 0;
    transition: opacity var(--transition);
}

.portfolio-item:hover .item-overlay {
    opacity: 1;
}

.item-cat {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent2);
    font-weight: 500;
    margin-bottom: 4px;
}

.item-overlay h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    font-weight: 400;
    color: white;
    margin-bottom: 8px;
}

.view-btn {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
    letter-spacing: 0.05em;
}

.portfolio-item.hidden {
    display: none;
}

/* =====================
   LIGHTBOX
   ===================== */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

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

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 0, 15, 0.88);
    backdrop-filter: blur(14px);
}

.lightbox-content {
    position: relative;
    z-index: 10;
    width: min(92vw, 600px);
    background: var(--card-bg);
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--border);
    display: grid;
    grid-template-rows: auto auto;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.92);
    transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
    box-shadow: 0 40px 100px rgba(0,0,0,0.5);
}

.lightbox.open .lightbox-content {
    transform: scale(1);
}

.lb-close {
    position: absolute;
    top: 14px; right: 14px;
    z-index: 20;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
    transition: background 0.2s;
}
.lb-close:hover { background: var(--accent); }

.lb-prev, .lb-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(0,0,0,0.4);
    color: white;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
    transition: background 0.2s;
}
.lb-prev { left: 14px; }
.lb-next { right: 14px; }
.lb-prev:hover, .lb-next:hover { background: var(--accent); }

.lb-slides {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    background: #000;
}

.lb-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.4s;
}

.lb-slide.active {
    opacity: 1;
}

.lb-info {
    padding: 1.5rem 2rem;
}

.lb-cat {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 500;
}

.lb-info h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    font-weight: 400;
    margin: 6px 0 10px;
    color: var(--text);
}

.lb-info p {
    font-size: 0.9rem;
    color: var(--text2);
    line-height: 1.7;
    max-width: 600px;
}

.lb-dots {
    display: flex;
    gap: 6px;
    margin-top: 1rem;
}

.lb-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--border);
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    padding: 0;
}

.lb-dot.active {
    background: var(--accent);
    transform: scale(1.3);
}

@media (max-width: 600px) {
    .lb-info { padding: 1rem 1.25rem; }
    .lb-info h2 { font-size: 1.2rem; }
    .lb-info p { font-size: 0.82rem; }
}
/* =====================
   CONTACT & FOOTER
   ===================== */
#contact {
    max-width: 900px;
    margin: 0 auto;
    padding: 6rem 6% 4rem;
    text-align: center;
}

#contact h4 {
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.75rem;
    font-weight: 500;
}

#contact h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 300;
    background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

#contact > p {
    color: var(--text2);
    font-size: 0.95rem;
    max-width: 500px;
    margin: 0 auto 3rem;
}

#contact form {
    text-align: left;
}

#contact input,
#contact textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--card-bg);
    color: var(--text);
    outline: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    transition: border-color 0.2s;
}

#contact input:focus,
#contact textarea:focus {
    border-color: var(--accent);
}

#contact input::placeholder,
#contact textarea::placeholder {
    color: var(--text2);
}

/* Footer */
footer-wrap {
    mar