/* ========================
CSS RESET & BASE STYLES
======================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a1a1a;
    --secondary-color: #f5f5f5;
    --accent-color: #d4a574;
    --text-dark: #2c2c2c;
    --text-light: #6c6c6c;
    --white: #ffffff;
    --gradient-overlay: linear-gradient(135deg, rgba(26, 26, 26, 0.7), rgba(212, 165, 116, 0.4));
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background: var(--white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.2;
}

.visually-hidden {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================
NAVIGATION BAR
======================== */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgb(30, 138, 175);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h2 {
    font-size: clamp(1.3rem, 4vw, 1.8rem);
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo-accent {
    color: var(--accent-color);
}

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
    padding: 8px 0;
    white-space: nowrap;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.nav-toggle span {
    width: 28px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: var(--transition);
}

/* ========================
HERO SLIDESHOW
======================== */

.hero {
    margin-top: 70px;
    height: calc(100vh - 70px);
    min-height: 400px;
    position: relative;
    overflow: hidden;
}

.slideshow-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    display: none;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    animation: fadeIn 1.5s ease-in-out;
}

.slide.active {
    display: block;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.6), rgba(212, 165, 116, 0.3));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding: 20px;
}

.slide-title {
    font-size: clamp(1.8rem, 6vw, 4rem);
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 4px 20px rgba(0, 0, 0, 0.3);
    animation: slideUp 1s ease-out 0.3s both;
}

.slide-description {
    font-size: clamp(1rem, 3vw, 1.5rem);
    font-weight: 300;
    letter-spacing: 1px;
    animation: slideUp 1s ease-out 0.6s both;
}

.dots-container {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.dot:hover,
.dot.active {
    background: var(--white);
    transform: scale(1.2);
    border-color: var(--accent-color);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================
SECTION COMMON STYLES
======================== */

section {
    padding: 60px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--primary-color);
    margin-bottom: 15px;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    margin: 0 auto 20px;
    border-radius: 2px;
}

.section-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--text-light);
    font-weight: 300;
}

/* ========================
ABOUT SECTION
======================== */

.about {
    background: var(--secondary-color);
}

.about-content {
    display: grid;
    gap: 40px;
    text-align: center;
    font-family: 'Lora';
}

.about-text p {
    margin-bottom: 20px;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--text-dark);
    line-height: 1.8;
    font-family: 'Lora';
}

.about-intro {
    font-size: clamp(1.2rem, 3vw, 1.5rem) !important;
    font-weight: 600;
    color: var(--primary-color);
}

/* ========================
FEATURED GALLERY
======================== */

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 20px;
    grid-auto-flow: dense;
}

.featured-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    height: 300px;
    cursor: pointer;
}

.featured-item.large {
    grid-column: span 1;
    height: 300px;
}

.featured-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.featured-item:hover img {
    transform: scale(1.1);
}

.featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 20px;
    color: var(--white);
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition);
}

.featured-item:hover .featured-overlay {
    transform: translateY(0);
    opacity: 1;
}

.featured-overlay h3 {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    margin-bottom: 5px;
}

.featured-overlay p {
    font-size: clamp(0.85rem, 2vw, 1rem);
    font-weight: 300;
    letter-spacing: 1px;
}

/* ========================
TOP WORKS SECTION
======================== */

.top-works {
    background: var(--secondary-color);
}

.top-works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 30px;
}

.work-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.work-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.work-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.work-card:hover .work-image img {
    transform: scale(1.08);
}

.work-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent-color);
    color: var(--white);
    padding: 6px 15px;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.work-info {
    padding: 25px;
}

.work-info h3 {
    font-size: clamp(1.3rem, 3vw, 1.6rem);
    margin-bottom: 8px;
    color: var(--primary-color);
}

.work-artist {
    color: var(--accent-color);
    font-size: clamp(0.9rem, 2vw, 1rem);
    font-weight: 500;
    margin-bottom: 15px;
}

.work-description {
    color: var(--text-light);
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    line-height: 1.6;
    margin-bottom: 15px;
}

.work-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.work-category,
.work-resolution {
    padding: 6px 12px;
    background: var(--secondary-color);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-dark);
}

/* ========================
COLLECTIONS SECTION
======================== */

.collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 25px;
}

.collection-card {
    position: relative;
    height: 350px;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.collection-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.collection-image {
    width: 100%;
    height: 100%;
}

.collection-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.collection-card:hover .collection-image img {
    transform: scale(1.1);
}

.collection-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 30px 20px;
    color: var(--white);
}

.collection-content h3 {
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    margin-bottom: 8px;
}

.collection-content p {
    font-size: clamp(0.9rem, 2vw, 1rem);
    font-weight: 300;
    opacity: 0.9;
}

.collection-arrow {
    position: absolute;
    top: -50px;
    right: 20px;
    font-size: 1.8rem;
    opacity: 0;
    transition: var(--transition);
}

.collection-card:hover .collection-arrow {
    opacity: 1;
    top: 20px;
}

/* ========================
INFO SECTION
======================== */

.info {
    background: var(--secondary-color);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 25px;
}

.info-card {
    background: var(--white);
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    transition: var(--transition);
}

.info-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.12);
}

.info-icon {
    font-size: clamp(2.5rem, 5vw, 3rem);
    margin-bottom: 15px;
}

.info-card h3 {
    font-size: clamp(1.2rem, 2.5vw, 1.4rem);
    color: var(--primary-color);
    margin-bottom: 12px;
}

.info-card p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: clamp(0.85rem, 2vw, 0.95rem);
}

/* ========================
LINKS SECTION
======================== */

.links {
    background: var(--primary-color);
    padding: 60px 0;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
    gap: 35px;
}

.links-column h3 {
    color: var(--accent-color);
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    margin-bottom: 20px;
}

.links-column ul li {
    margin-bottom: 12px;
}

.links-column ul li a {
    color: rgba(255, 255, 255, 0.8);
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    transition: var(--transition);
    display: inline-block;
}

.links-column ul li a:hover {
    color: var(--white);
    transform: translateX(5px);
}

/* ========================
FOOTER
======================== */

.footer {
    background: #0f0f0f;
    padding: 40px 0 25px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.footer-brand {
    text-align: center;
}

.footer-brand h2 {
    color: var(--white);
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    margin-bottom: 10px;
}

.footer-brand span {
    color: var(--accent-color);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    font-size: clamp(0.85rem, 2vw, 0.95rem);
}

.footer-social {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

.footer-social a {
    color: #fff;
    font-size: clamp(18px, 4vw, 22px);
    transition: transform 0.3s ease, color 0.3s ease;
}

.footer-social a:hover {
    color: var(--accent-color);
    transform: scale(1.2);
}

.footer-bottom {
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: clamp(0.8rem, 2vw, 0.9rem);
}

/* ========================
LIGHTBOX STYLES
======================== */

.beautiful-lightbox {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.98), rgba(20, 20, 20, 0.98));
    backdrop-filter: blur(10px);
}

.beautiful-lightbox.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.lb-topbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), transparent);
    z-index: 10;
    flex-wrap: wrap;
    gap: 10px;
}

.lb-counter {
    color: #d4a574;
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    font-weight: 600;
    background: rgba(212, 165, 116, 0.15);
    padding: 8px 20px;
    border-radius: 30px;
    border: 1px solid rgba(212, 165, 116, 0.3);
    backdrop-filter: blur(10px);
}

.lb-controls {
    display: flex;
    gap: 10px;
}

.lb-btn {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lb-btn:hover {
    background: #d4a574;
    border-color: #d4a574;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(212, 165, 116, 0.4);
}

#closeBtn:hover {
    background: #ff4444;
    border-color: #ff4444;
    transform: rotate(90deg) scale(1.1);
}

.lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 300;
}

.lb-prev {
    left: 15px;
}

.lb-next {
    right: 15px;
}

.lb-nav:hover {
    background: #d4a574;
    border-color: #d4a574;
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 10px 35px rgba(212, 165, 116, 0.5);
}

.lb-image-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 85%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lb-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.7);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: grab;
    user-select: none;
}

.lb-image.zoomed {
    cursor: move;
}

.lb-info-panel {
    position: absolute;
    right: -100%;
    top: 100px;
    width: 320px;
    max-width: calc(100% - 40px);
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(212, 165, 116, 0.2);
    border-radius: 20px;
    padding: 25px;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -15px 15px 60px rgba(0, 0, 0, 0.6);
    max-height: 70vh;
    overflow-y: auto;
}

.lb-info-panel.show {
    right: 20px;
}

.info-art-name {
    color: #d4a574;
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    margin-bottom: 12px;
    font-weight: 600;
    line-height: 1.3;
}

.info-artist {
    color: rgba(255, 255, 255, 0.8);
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    margin-bottom: 20px;
    font-weight: 500;
    font-style: italic;
}

.info-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    line-height: 1.7;
}

.lb-zoom-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(212, 165, 116, 0.15);
    backdrop-filter: blur(10px);
    color: #d4a574;
    padding: 8px 20px;
    border-radius: 25px;
    border: 1px solid rgba(212, 165, 116, 0.3);
    font-weight: 600;
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lb-zoom-indicator.show {
    opacity: 1;
}

/* Cursor for clickable images */
.featured-item img,
.work-image img,
.gallery-item img,
.slide img {
    cursor: pointer;
}

/* ========================
RESPONSIVE MEDIA QUERIES
======================== */

/* Tablets and above */
@media (min-width: 768px) {
    .container {
        padding: 0 30px;
    }
    
    .nav-container {
        padding: 20px 30px;
    }
    
    section {
        padding: 80px 0;
    }
    
    .hero {
        margin-top: 80px;
        height: calc(100vh - 80px);
        min-height: 500px;
    }
    
    .featured-item.large {
        grid-column: span 2;
        height: 400px;
    }
    
    .featured-item {
        height: 350px;
    }
    
    .work-image {
        height: 280px;
    }
    
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .footer-brand {
        text-align: left;
    }
    
    .lb-info-panel {
        width: 350px;
    }
    
    .lb-info-panel.show {
        right: 30px;
    }
    
    .lb-topbar {
        padding: 25px 40px;
    }
    
    .lb-nav {
        width: 60px;
        height: 60px;
        font-size: 2.3rem;
    }
    
    .lb-prev {
        left: 25px;
    }
    
    .lb-next {
        right: 25px;
    }
    
    .lb-btn {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
}

/* Desktop and large screens */
@media (min-width: 1024px) {
    .container {
        padding: 0 40px;
    }
    
    .nav-container {
        padding: 20px 40px;
    }
    
    section {
        padding: 100px 0;
    }
    
    .nav-menu {
        gap: 40px;
    }
    
    .hero {
        min-height: 600px;
    }
    
    .work-image {
        height: 300px;
    }
    
    .lb-nav {
        width: 65px;
        height: 65px;
        font-size: 2.5rem;
    }
    
    .lb-prev {
        left: 30px;
    }
    
    .lb-next {
        right: 30px;
    }
}

/* Mobile Navigation */
@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 40px 0;
        gap: 20px;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }
}

/* Small Mobile Screens */
@media (max-width: 480px) {
    .lb-info-panel {
        width: calc(100% - 30px);
        right: -100%;
        top: auto;
        bottom: -100%;
        border-radius: 20px 20px 0 0;
        max-height: 60vh;
    }
    
    .lb-info-panel.show {
        right: 0;
        bottom: 0;
        left: 0;
        width: 100%;
    }
    
    .lb-nav {
        width: 45px;
        height: 45px;
        font-size: 1.6rem;
    }
    
    .lb-prev {
        left: 10px;
    }
    
    .lb-next {
        right: 10px;
    }
    
    .dots-container {
        bottom: 15px;
        gap: 8px;
    }
    
    .dot {
        width: 8px;
        height: 8px;
    }
}
