:root {
    --white: #ffffff;
    --text-primary: #000000;
    --text-secondary: #333333;
    --text-light: #999999;
    --accent: #000000;
    --border: #e8e8e8;
    --bg-light: #f5f5f5;
    --nav-bar-bg: #2d3748;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Work Sans', sans-serif;
    background: var(--white);
    color: var(--text-primary);
    font-weight: 400;
    line-height: 1.6;
    overflow-x: hidden;
}

a, button, .portfolio-item { cursor: pointer; }

html { scroll-behavior: smooth; }

/* ========== NAVIGATION ========== */
nav {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    animation: fadeInDown 0.8s ease forwards;
}

nav .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--text-primary);
    text-decoration: none;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover { color: var(--text-primary); }

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    z-index: 999;
    flex-direction: column;
    padding: 1rem 0;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    padding: 1rem 2rem;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-bottom: 1px solid var(--border);
}

.mobile-menu a:hover {
    background: var(--bg-light);
    color: var(--text-primary);
}

/* ========== SECTIONS ========== */
.section-page {
    display: none;
    min-height: 100vh;
}

.section-page.active {
    display: block;
}

/* Section Header */
.section-header {
    text-align: center;
    padding: 4rem 2rem 2rem;
}

.section-header h1 {
    font-size: 3rem;
    font-weight: 500;
    letter-spacing: 0.05em;
}

/* ========== HERO / ABOUT SECTION ========== */
.hero {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 4rem 2rem;
}

.hero-large {
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 4rem 4rem;
}

.hero-content { text-align: center; }

.hero h1, .hero-large h1 {
    font-size: 4.5rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.about-container {
    padding: 0 4rem 2rem;
}

.about-content-large {
    max-width: 700px;
    margin: 3rem auto 0;
    text-align: center;
    padding: 2rem;
}

.about-content-large p {
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.portfolio-section {
    padding: 0 0 4rem;
}

.section-title {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    margin: 2rem 4rem;
    text-align: center;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.section-title::before,
.section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
    max-width: 200px;
}

.about-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: 2rem;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.about-image {
    margin-top: 2rem;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* ========== CATEGORY TABS ========== */
.category-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0 2rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.category-tab {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 1px solid var(--border);
    font-family: 'Work Sans', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-secondary);
}

.category-tab:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
}

.category-tab.active {
    background: var(--text-primary);
    border-color: var(--text-primary);
    color: var(--white);
}

/* ========== CONTACT ========== */
.contact-links {
    display: flex;
    gap: 4rem;
    justify-content: center;
    margin-top: 2rem;
}

.contact-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    border-bottom: 2px solid var(--text-primary);
    padding-bottom: 0.3rem;
    transition: all 0.3s ease;
}

.contact-link:hover {
    color: var(--text-secondary);
    border-color: var(--text-secondary);
}

.commissions-text {
    margin-top: 3rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
}

/* ========== GALLERY GRID ========== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.gallery-grid .portfolio-item {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.gallery-grid .portfolio-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.gallery-grid .portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-grid .portfolio-item:hover img { transform: scale(1.08); }

/* Empty State */
.empty-gallery {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
}

.empty-gallery p {
    font-size: 1rem;
    letter-spacing: 0.05em;
}

/* Sketch Badge */
.sketch-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* ========== FOOTER ========== */
footer {
    padding: 4rem 2rem;
    text-align: center;
    border-top: 1px solid var(--border);
}

.footer-contact {
    margin-bottom: 3rem;
}

.contact-links {
    display: flex;
    gap: 4rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.contact-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    border-bottom: 2px solid var(--text-primary);
    padding-bottom: 0.3rem;
    transition: all 0.3s ease;
}

.contact-link:hover {
    color: var(--text-secondary);
    border-color: var(--text-secondary);
}

.commissions-text {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
}

.copyright {
    color: var(--text-light);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ========== LIGHTBOX ========== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.lightbox.active { display: flex; }

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 40px;
    height: 40px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 2001;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: var(--accent);
    color: var(--white);
    transform: rotate(90deg);
}

/* Navigation Arrows */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 2001;
    transition: all 0.3s ease;
}

.lightbox-nav:hover {
    background: var(--accent);
    color: var(--white);
}

.lightbox-prev { left: 2rem; }
.lightbox-next { right: 2rem; }

/* Main Content */
.lightbox-main {
    display: flex;
    align-items: stretch;
    max-width: 1200px;
    width: 90%;
    max-height: 80vh;
    background: var(--white);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border);
}

/* Image Container */
.lightbox-image-container {
    flex: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    min-height: 500px;
    position: relative;
    overflow: hidden;
    cursor: zoom-in;
}

.lightbox-image-container.zoomed {
    cursor: zoom-out;
    overflow: auto;
}

.lightbox-image-container img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.lightbox-image-container.zoomed img {
    max-width: none;
    max-height: none;
    transform: scale(2);
    cursor: grab;
}

.lightbox-image-container.zoomed.dragging img {
    cursor: grabbing;
}

/* Zoom Hint */
.zoom-hint {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.lightbox-image-container:hover .zoom-hint {
    opacity: 1;
}

.lightbox-image-container.zoomed .zoom-hint {
    display: none;
}

/* Info Panel */
.lightbox-info {
    flex: 0.8;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3rem;
    min-width: 300px;
    max-width: 400px;
}

.lightbox-info-content {
    flex: 1;
}

.lightbox-title {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.lightbox-description {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* Dots Indicator */
.lightbox-indicator {
    display: none;
    justify-content: center;
    gap: 8px;
    padding-top: 2rem;
    margin-top: auto;
}

.lightbox-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
    cursor: pointer;
    transition: all 0.3s ease;
}

.lightbox-dot:hover { background: var(--text-secondary); }

.lightbox-dot.active {
    background: var(--text-primary);
    transform: scale(1.2);
}

/* Admin Edit Fields */
.admin-edit-fields {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.admin-edit-fields input,
.admin-edit-fields textarea {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border);
    font-family: 'Work Sans', sans-serif;
    font-size: 0.9rem;
}

.admin-edit-fields textarea {
    min-height: 100px;
    resize: vertical;
}

.admin-edit-fields button {
    width: 100%;
    padding: 0.75rem;
    background: var(--accent);
    color: var(--white);
    border: none;
    font-family: 'Work Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: background 0.3s ease;
}

.admin-edit-fields button:hover { background: #333; }

/* ========== ADMIN STYLES ========== */
.admin-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-modal-content {
    background: #fff;
    padding: 3rem;
    border: 1px solid var(--border);
    max-width: 400px;
    width: 90%;
    text-align: center;
}

.admin-modal-content h2 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.admin-modal-content input {
    width: 100%;
    padding: 0.9rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border);
    font-family: 'Work Sans', sans-serif;
}

.admin-modal-content button {
    width: 100%;
    padding: 0.9rem;
    background: #000;
    color: #fff;
    border: none;
    font-family: 'Work Sans', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    cursor: pointer;
}

.admin-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.5rem;
    cursor: pointer;
}

.error-msg {
    color: #ff0000;
    font-size: 0.8rem;
    margin-top: 1rem;
}

/* Admin Panel */
.admin-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 1rem 2rem;
}

.admin-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.admin-bar button {
    background: transparent;
    border: 1px solid var(--border);
    padding: 0.5rem 1rem;
    font-family: 'Work Sans', sans-serif;
    font-size: 0.7rem;
    text-transform: uppercase;
    cursor: pointer;
}

.admin-bar button:hover {
    background: #000;
    color: #fff;
}

.admin-upload-bar {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.admin-upload-bar select {
    padding: 0.75rem;
    border: 1px solid var(--border);
    font-family: 'Work Sans', sans-serif;
    font-size: 0.85rem;
    min-width: 180px;
}

.admin-upload-bar input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--border);
    font-family: 'Work Sans', sans-serif;
}

.admin-upload-bar button {
    background: #000;
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    font-family: 'Work Sans', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
}

body.admin-active { padding-top: 110px; }
body.admin-active nav { top: 110px; position: fixed; }
body.admin-active .section-page { padding-top: 190px; }

/* Admin Controls */
.admin-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    padding: 0.75rem;
    display: none;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.portfolio-item:hover .admin-controls { display: flex; }

.admin-controls button {
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid var(--border);
    font-size: 0.7rem;
    text-transform: uppercase;
    cursor: pointer;
}

.admin-controls button:hover {
    background: #000;
    color: #fff;
}

.admin-controls button.delete {
    color: #ff0000;
    border-color: #ff0000;
}

.admin-controls button.delete:hover {
    background: #ff0000;
    color: #fff;
}

/* Animations */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
    .hero h1 { font-size: 3rem; }
    .section-header h1 { font-size: 2.5rem; }
}

@media (max-width: 768px) {
    nav .container {
        padding: 1rem 1.5rem;
    }
    
    .nav-links { display: none; }
    
    .mobile-menu-btn { display: block; }
    
    .hero, .hero-large { 
        padding: 3rem 2rem 2rem; 
        min-height: 40vh;
    }
    
    .hero-large {
        min-height: 70vh;
    }
    
    .hero h1, .hero-large h1 { font-size: 2rem; }
    
    .about-content-large {
        padding: 1rem;
    }
    
    .about-content-large p {
        font-size: 1rem;
    }
    
    .section-header {
        padding: 3rem 1.5rem 1.5rem;
    }
    .section-header h1 { font-size: 2rem; }
    
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    
    .about-container { padding: 0 2rem 2rem; }
    
    .section-title {
        margin: 1.5rem 2rem;
    }
    
    .category-tabs {
        padding: 0 1rem 1.5rem;
        gap: 0.4rem;
    }
    
    .category-tab {
        padding: 0.6rem 1rem;
        font-size: 0.7rem;
    }
    
    .contact-links {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .contact-links {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    /* Lightbox Mobile */
    .lightbox-main {
        flex-direction: column;
        max-height: 95vh;
        overflow-y: auto;
    }
    
    .lightbox-image-container { min-height: 300px; }
    
    .lightbox-info {
        min-width: 100%;
        max-width: 100%;
        padding: 2rem;
    }
    
    .lightbox-nav { display: none !important; }
    
    /* Admin Mobile */
    .admin-upload-bar { 
        flex-direction: column; 
    }
    
    .admin-upload-bar select {
        width: 100%;
    }
    
    body.admin-active { padding-top: 160px; }
    body.admin-active nav { top: 160px; position: fixed; }
    body.admin-active .section-page { padding-top: 240px; }
    
    /* Page nav bar mobile */
    .page-nav-bar {
        padding: 0 0.5rem;
    }
    
    .page-nav-btn {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 480px) {
    .gallery-grid { grid-template-columns: 1fr; }
    
    .hero h1, .hero-large h1 { font-size: 1.75rem; }
    .section-header h1 { font-size: 1.5rem; }
    
    .category-tab {
        padding: 0.5rem 0.75rem;
        font-size: 0.65rem;
    }
}
