
:root {
    --background: #121212;
    --sidebar: #080808;
    --surface: #1d1d1d;
    --surface-light: #282828;
    --orange: #ff7400;
    --white: #ffffff;
    --muted: #a7a7a7;
    --border: rgba(255,255,255,0.07);
    --topbar: rgba(18,18,18,.95);
    --image-background: #181818;
    --mobile-nav: #080808;
}

:root[data-theme="light"] {
    --background: #f5f5f5;
    --sidebar: #ffffff;
    --surface: #ffffff;
    --surface-light: #eeeeee;
    --white: #191919;
    --muted: #686868;
    --border: rgba(0,0,0,0.1);
    --topbar: rgba(255,255,255,.95);
    --image-background: #e9e9e9;
    --mobile-nav: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--background);
    color: var(--white);
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    transition: background .25s, color .25s;
}

button, input {
    font-family: inherit;
}

button {
    cursor: pointer;
    border: none;
}

a {
    color: inherit;
    text-decoration: none;
}

.orange {
    color: var(--orange);
}

.app {
    display: flex;
    min-height: 100vh;
}


/* SIDEBAR */

.sidebar {
    width: 245px;
    background: var(--sidebar);
    padding: 28px 18px;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    position: fixed;
    height: 100vh;
    z-index: 20;
    transition: background .25s;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 55px;
}

.brand-logo {
    display: block;
    width: 64px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.side-section {
    margin-bottom: 35px;
}

.side-heading {
    font-size: 10px;
    color: #777;
    font-weight: 600;
    letter-spacing: 2px;
    margin: 0 0 15px 12px;
}

.side-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    color: var(--muted);
    border-radius: 7px;
    font-size: 13px;
    margin-bottom: 5px;
    transition: .2s;
}

.side-link svg {
    width: 19px;
}

.side-link:hover,
.side-link.active {
    color: var(--white);
    background: var(--surface-light);
}

.side-link.active {
    border-left: 3px solid var(--orange);
}

.sidebar-bottom {
    margin-top: auto;
}

.sidebar-promo {
    background: var(--surface);
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 25px;
}

.sidebar-promo > svg {
    color: var(--orange);
    margin-bottom: 12px;
}

.sidebar-promo h4 {
    font-size: 13px;
    margin-bottom: 7px;
}

.sidebar-promo p {
    font-size: 11px;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 15px;
}

.promo-btn {
    display: block;
    background: var(--orange);
    color: #111;
    text-align: center;
    border-radius: 6px;
    padding: 9px;
    font-size: 11px;
    font-weight: 700;
}

.sidebar-footer {
    display: flex;
    flex-direction: column;
    gap: 5px;
    color: var(--muted);
    font-size: 9px;
}


/* MAIN CONTENT */

.main-content {
    margin-left: 245px;
    width: calc(100% - 245px);
    min-height: 100vh;
}

.topbar {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 45px;
    border-bottom: 1px solid var(--border);
    background: var(--topbar);
    position: sticky;
    top: 0;
    z-index: 15;
    backdrop-filter: blur(15px);
}

.search-box:focus-within {
    border-color: var(--orange);
}

.top-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 15px;
}

.theme-toggle {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--surface-light);
    color: var(--white);
    border: 1px solid var(--border);
    transition: .2s;
}

.theme-toggle:hover {
    color: var(--orange);
    transform: rotate(15deg);
}

.theme-toggle svg {
    width: 18px;
    height: 18px;
}

.upload-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--orange);
    color: #111;
    border-radius: 6px;
    padding: 10px 15px;
    font-size: 11px;
    font-weight: 600;
    transition: .2s;
}

.mobile-logo {
    display: none;
}

.upload-btn:hover,
.featured-btn:hover,
.promo-btn:hover {
    background: #ff8d2e;
    transform: translateY(-2px);
}


/* PAGES */

.page {
    display: none;
    padding: 35px 45px 70px;
    max-width: 1600px;
    margin: auto;
}

.page.active-page {
    display: block;
}

.welcome-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 35px 0 45px;
}

.eyebrow {
    color: var(--orange);
    font-size: 9px;
    letter-spacing: 2px;
    font-weight: 600;
    margin-bottom: 12px;
}

.welcome-section h1,
.page-intro h1 {
    font-size: clamp(30px, 4vw, 49px);
    font-weight: 700;
    letter-spacing: -2px;
    line-height: 1.3;
}

.welcome-text,
.page-intro p:last-child {
    color: var(--muted);
    font-size: 12px;
    margin-top: 13px;
    max-width: 550px;
    line-height: 1.8;
}

.welcome-mark {
    color: var(--surface-light);
}

.welcome-mark svg {
    width: 110px;
    height: 110px;
    stroke-width: .7;
}


/* SECTION HEADINGS */

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin: 35px 0 20px;
}

.section-heading h2 {
    font-size: 19px;
    font-weight: 600;
}

.text-link {
    display: flex;
    gap: 6px;
    align-items: center;
    color: var(--muted);
    font-size: 11px;
}

.text-link:hover {
    color: var(--orange);
}

.text-link svg {
    width: 14px;
}


/* FEATURED COLLECTION */

.featured-card {
    position: relative;
    height: 390px;
    overflow: hidden;
    border-radius: 12px;
    background: var(--image-background);
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: .9;
    transition: transform .6s;
}

.featured-card:hover .featured-image {
    transform: scale(1.02);
}

.featured-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: end;
    padding: 35px;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(0,0,0,.8), transparent 90%),
        linear-gradient(0deg, rgba(0,0,0,.7), transparent 75%);
}

.featured-info {
    max-width: 550px;
    pointer-events: auto;
}

.featured-label {
    font-size: 9px;
    letter-spacing: 2px;
    color: var(--orange);
    font-weight: 700;
}

.featured-info h2 {
    font-size: 30px;
    margin: 10px 0;
    color: #ffffff;
}

.featured-info p {
    color: #ccc;
    font-size: 11px;
    margin-bottom: 20px;
}

.featured-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--orange);
    color: #111;
    border-radius: 5px;
    padding: 11px 17px;
    font-size: 11px;
    font-weight: 600;
    transition: .2s;
}


/* CATEGORIES */

.category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.category-chip {
    background: var(--surface-light);
    color: var(--muted);
    padding: 10px 17px;
    border-radius: 25px;
    font-size: 10px;
    transition: .2s;
}

.category-chip:hover,
.category-chip.active {
    background: var(--orange);
    color: #111;
}

.sort-btn {
    background: transparent;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
}

.sort-btn svg {
    width: 15px;
}


/* PHOTO GRID */

.photo-grid {
    columns: 3;
    column-gap: 17px;
}

.photo-card {
    break-inside: avoid;
    margin-bottom: 20px;
    background: transparent;
    position: relative;
}

.photo-image-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: var(--image-background);
    cursor: pointer;
}

.photo-image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform .5s;
}

.photo-image-wrap:hover .photo-image {
    transform: scale(1.025);
}

.photo-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 2px;
}

.photo-meta h3 {
    font-size: 11px;
    font-weight: 500;
}

.photo-meta p {
    font-size: 9px;
    color: var(--muted);
    margin-top: 4px;
}

.empty-state {
    display: none;
    text-align: center;
    padding: 80px 20px;
    color: var(--muted);
}

.empty-state svg {
    color: var(--orange);
    width: 35px;
    margin-bottom: 15px;
}

.empty-state h3 {
    color: var(--white);
    font-size: 17px;
}

.empty-state p {
    font-size: 11px;
    margin-top: 8px;
}


/* PAGE INTRO */

.page-intro {
    padding: 30px 0 40px;
}


/* EXPLORE - PORTRAIT CARDS */

.explore-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.explore-tile {
    aspect-ratio: 4 / 5;
    position: relative;
    overflow: hidden;
    border-radius: 9px;
    cursor: pointer;
    background: var(--image-background);
}

.explore-tile img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .5s;
}

.explore-tile:hover img {
    transform: scale(1.04);
}

.explore-tile div {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 65px 20px 20px;
    background: linear-gradient(transparent, rgba(0,0,0,.9));
    pointer-events: none;
}

.explore-tile h2 {
    font-size: 20px;
    color: #ffffff;
}

.explore-tile span {
    color: #ddd;
    font-size: 10px;
}


/* COLLECTIONS - PORTRAIT CARDS */

.collection-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.collection-card {
    background: var(--surface);
    border-radius: 9px;
    overflow: hidden;
    cursor: pointer;
    transition: transform .25s, background .25s;
}

.collection-card:hover {
    transform: translateY(-5px);
    background: var(--surface-light);
}

.collection-image-wrap {
    width: 100%;
    aspect-ratio: 4 / 5;
    background: var(--image-background);
    overflow: hidden;
}

.collection-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .5s;
}

.collection-card:hover img {
    transform: scale(1.04);
}

.collection-info {
    padding: 20px;
}

.collection-label {
    color: var(--orange);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1.5px;
}

.collection-card h3 {
    font-size: 16px;
    margin-top: 9px;
}

.collection-card p {
    color: var(--muted);
    font-size: 10px;
    margin-top: 7px;
    line-height: 1.7;
}

.collection-link {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 17px;
    color: var(--orange);
    font-size: 10px;
    font-weight: 600;
}

.collection-link svg {
    width: 14px;
}


/* INDIVIDUAL CATALOGUE PAGE */

.catalogue-top {
    padding-top: 10px;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 14px;
    border-radius: 5px;
    background: var(--surface-light);
    color: var(--white);
    font-size: 11px;
    transition: .2s;
}

.back-button:hover {
    background: var(--orange);
    color: #111;
}

.back-button svg {
    width: 16px;
}

.catalogue-intro {
    padding-top: 30px;
    padding-bottom: 15px;
}

.catalogue-count {
    color: var(--muted);
    font-size: 10px;
    margin-bottom: 22px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.catalogue-grid {
    margin-bottom: 40px;
}


/* PHOTO VIEWER */

.photo-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.96);
    z-index: 100;
    justify-content: center;
    align-items: center;
    padding: 30px;
}

.photo-modal.open {
    display: flex;
}

.modal-content {
    display: flex;
    max-width: 1100px;
    max-height: 88vh;
    width: 100%;
    background: #1c1c1c;
    color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
}

.modal-image-wrap {
    flex: 1;
    min-width: 0;
    min-height: 0;
    background: #080808;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image-wrap img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 88vh;
    object-fit: contain;
}

.modal-details {
    width: 300px;
    flex-shrink: 0;
    padding: 25px;
}

.modal-close {
    position: absolute;
    top: 25px;
    right: 30px;
    background: #333;
    color: white;
    padding: 10px;
    border-radius: 50%;
    z-index: 2;
}

.modal-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 35px;
}

.avatar-small {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--orange);
    color: #111;
    display: grid;
    place-items: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

.modal-author strong {
    font-size: 11px;
    display: block;
}

.modal-author span {
    color: #aaa;
    font-size: 9px;
}

.modal-details h2 {
    font-size: 18px;
    margin-bottom: 10px;
}

.modal-details > p {
    color: #aaa;
    font-size: 11px;
    line-height: 1.8;
}

.modal-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    background: var(--orange);
    color: #111;
    padding: 12px;
    border-radius: 5px;
    font-size: 10px;
    font-weight: 600;
    margin-top: 25px;
    transition: .2s;
}

.modal-contact:hover {
    background: #ff8d2e;
}

.modal-contact svg {
    width: 15px;
}


/* LIGHT MODE COMPONENT ADJUSTMENTS */

:root[data-theme="light"] .modal-content {
    background: #ffffff;
    color: #191919;
}

:root[data-theme="light"] .modal-details > p,
:root[data-theme="light"] .modal-author span {
    color: #686868;
}

:root[data-theme="light"] .modal-details h2,
:root[data-theme="light"] .modal-author strong {
    color: #191919;
}


/* MOBILE NAVIGATION */

.mobile-nav {
    display: none;
}


/* TABLET */

@media(max-width: 1100px) {

    .photo-grid {
        columns: 2;
    }

    .page {
        padding-left: 30px;
        padding-right: 30px;
    }

    .topbar {
        padding: 0 30px;
    }

    .welcome-mark {
        display: none;
    }

    .featured-card {
        height: 350px;
    }

    .explore-grid,
    .collection-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* MOBILE */

@media(max-width: 700px) {

    .sidebar {
        display: none;
    }

    .main-content {
        margin-left: 0;
        width: 100%;
        padding-bottom: 75px;
    }

    .topbar {
        height: auto;
        min-height: 65px;
        padding: 12px 18px;
        flex-wrap: wrap;
        gap: 12px;
    }

    .mobile-logo {
        display: flex;
        align-items: center;
        max-width: 55%;
    }

    .mobile-logo .brand-logo {
        width: 52px;
    }

    .top-actions {
        gap: 10px;
        margin-left: auto;
    }

    .upload-btn {
        padding: 9px 12px;
    }

    .page {
        padding: 20px 16px 40px;
    }

    .welcome-section {
        padding: 30px 0;
    }

    .welcome-section h1,
    .page-intro h1 {
        font-size: 32px;
    }

    .featured-card {
        height: 300px;
    }

    .featured-overlay {
        padding: 18px;
    }

    .featured-info h2 {
        font-size: 22px;
    }

    .featured-info p {
        font-size: 10px;
    }

    .section-heading h2 {
        font-size: 16px;
    }

    .photo-grid {
        columns: 2;
        column-gap: 10px;
    }

    .photo-card {
        margin-bottom: 13px;
    }

    .photo-meta h3 {
        font-size: 10px;
    }

    .photo-meta p {
        font-size: 8px;
    }

    .explore-grid,
    .collection-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .explore-tile div {
        padding: 45px 12px 12px;
    }

    .explore-tile h2 {
        font-size: 14px;
    }

    .explore-tile span {
        font-size: 9px;
    }

    .collection-info {
        padding: 13px;
    }

    .collection-card h3 {
        font-size: 13px;
    }

    .collection-card p {
        font-size: 9px;
    }

    .collection-label {
        font-size: 8px;
    }

    .catalogue-intro {
        padding-top: 25px;
    }

    .photo-modal {
        padding: 15px;
    }

    .modal-content {
        flex-direction: column;
        max-height: 90vh;
        overflow-y: auto;
    }

    .modal-image-wrap {
        flex: none;
        height: 55vh;
    }

    .modal-image-wrap img {
        max-height: 55vh;
    }

    .modal-details {
        width: 100%;
        padding: 18px;
    }

    .modal-author {
        margin-bottom: 15px;
    }

    .modal-close {
        top: 20px;
        right: 20px;
    }

    .mobile-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 65px;
        background: var(--mobile-nav);
        border-top: 1px solid var(--border);
        display: flex;
        justify-content: space-around;
        align-items: center;
        z-index: 30;
    }

    .mobile-nav a {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        color: var(--muted);
        font-size: 9px;
    }

    .mobile-nav a svg {
        width: 19px;
    }

    .mobile-nav a.active {
        color: var(--orange);
    }

    .text-link {
        font-size: 9px;
    }

    }


/* SMALL MOBILE */

@media(max-width: 380px) {

    .photo-grid {
        columns: 1;
    }

    .featured-info h2 {
        font-size: 19px;
    }

    .explore-grid,
    .collection-grid {
        grid-template-columns: 1fr;
    }

    .explore-tile h2 {
        font-size: 17px;
    }
}


/* CONTACTS PAGE */
.contact-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:42px}
.contact-card{min-width:0;min-height:245px;display:flex;flex-direction:column;align-items:flex-start;padding:26px;border:1px solid var(--border);border-radius:12px;background:var(--surface);transition:transform .2s,border-color .2s}
.contact-card:hover{transform:translateY(-4px);border-color:var(--orange)}
.contact-icon{width:42px;height:42px;display:grid;place-items:center;margin-bottom:24px;border-radius:9px;color:var(--orange);background:var(--surface-light)}
.contact-icon svg{width:20px;height:20px}
.contact-label{color:var(--orange);font-size:9px;font-weight:600;letter-spacing:2px}
.contact-card h2{margin-top:9px;font-size:17px}
.contact-card p{margin-top:8px;color:var(--muted);font-size:11px;overflow-wrap:anywhere}
.contact-action{display:flex;align-items:center;gap:7px;margin-top:auto;padding-top:25px;color:var(--white);font-size:11px;font-weight:600}
.contact-action svg{width:14px;color:var(--orange)}
@media(max-width:900px){.contact-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.contact-grid{grid-template-columns:1fr;gap:12px;margin-top:28px}.contact-card{min-height:205px;padding:21px}}


/* CONTACT BRAND ICONS */
.contact-icon.whatsapp-icon{color:#25D366}
.contact-icon.whatsapp-icon svg{width:25px;height:25px}
.contact-icon.facebook-icon svg{width:25px;height:25px}


/* KEEP COLLECTION PHOTO NUMBERS IN LEFT-TO-RIGHT ROW ORDER */
.catalogue-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    columns: unset;
}

.catalogue-grid .photo-card {
    break-inside: auto;
    margin-bottom: 0;
}

@media(max-width: 1100px) {
    .catalogue-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media(max-width: 380px) {
    .catalogue-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
}


/* HOMEPAGE: KEEP EACH COLLECTION IN ITS OWN COLUMN, STARTING AT 01 */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-count: initial;
    column-gap: 20px;
    align-items: start;
}

.photo-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.photo-column .photo-card {
    margin-bottom: 0;
    break-inside: auto;
}

@media(max-width: 1100px) {
    .photo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media(max-width: 700px) {
    .photo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .photo-column {
        gap: 13px;
    }
}

@media(max-width: 380px) {
    .photo-grid {
        grid-template-columns: 1fr;
    }
}
