/* ==========================================================================
   Design Tokens & CSS Variables — Light Premium Theme
   ========================================================================== */
:root {
    --bg-main: #ffffff;
    --bg-surface: rgba(255, 255, 255, 0.92);
    --bg-card: #f8f9fc;
    --bg-input: #f1f3f8;
    --bg-input-focus: #ffffff;

    --text-primary: #1a1d26;
    --text-secondary: #5a6275;
    --text-muted: #8b93a7;

    --primary: #4f6ef7;
    --primary-hover: #3b57d9;
    --primary-dark: #2d45b8;
    --primary-light: #eef1fe;
    --primary-gradient: linear-gradient(135deg, #4f6ef7 0%, #7c5cf5 100%);
    --accent-gradient: linear-gradient(135deg, #4f6ef7 0%, #c084fc 100%);

    --border-subtle: rgba(0, 0, 0, 0.07);
    --border-hover: rgba(79, 110, 247, 0.3);
    --border-active: var(--primary);

    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-full: 9999px;

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 30px -8px rgba(79, 110, 247, 0.12);
    --shadow-lg: 0 20px 50px -12px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 0 4px rgba(79, 110, 247, 0.12);

    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ==========================================================================
   Base Reset
   ========================================================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Subtle decorative gradients */
body::before {
    content: '';
    position: fixed;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(79, 110, 247, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
}

body::after {
    content: '';
    position: fixed;
    bottom: -150px;
    left: -150px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(124, 92, 245, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
}

/* ==========================================================================
   Navbar Container & Header
   ========================================================================== */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.navbar {
    background: var(--bg-surface);
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 24px rgba(0, 0, 0, 0.03);
    padding: 18px 0 14px 0;
    transition: var(--transition-normal);
}

.container,
.continar {
    width: 92%;
    max-width: 1350px;
    margin: 0 auto;
}

/* ==========================================================================
   Top Row: Logo & Search Box
   ========================================================================== */
.navbar-logo-search {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding-bottom: 16px;
}

/* Brand Link & Logo */
.brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    user-select: none;
    transition: transform var(--transition-fast);
    flex-shrink: 0;
}

.brand-link:hover {
    transform: scale(1.02);
}

.brand-logo {
    width: 44px;
    height: 44px;
    display: block;
    transition: var(--transition-normal);
}

.brand-link:hover .brand-logo {
    transform: rotate(-3deg) scale(1.05);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--text-primary);
    line-height: 1.15;
}

.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-tagline {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 1px;
}

/* ==========================================================================
   Search Box
   ========================================================================== */
.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    max-width: 640px;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.search-icon {
    position: absolute;
    left: 18px;
    color: var(--text-muted);
    pointer-events: none;
    transition: color var(--transition-fast);
}

.search-input-wrapper .search {
    width: 100%;
    padding: 13px 44px 13px 48px;
    background: var(--bg-input);
    border: 1.5px solid transparent;
    border-radius: var(--radius-full);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    transition: var(--transition-normal);
}

.search-input-wrapper .search::placeholder {
    color: var(--text-muted);
    font-size: 0.92rem;
}

.search-input-wrapper .search:focus {
    background: var(--bg-input-focus);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.search-input-wrapper:focus-within .search-icon {
    color: var(--primary);
}

/* Clear Button */
.clear-btn {
    position: absolute;
    right: 14px;
    background: rgba(0, 0, 0, 0.06);
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: none;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-fast);
}

.clear-btn:hover {
    background: rgba(0, 0, 0, 0.12);
    color: var(--text-primary);
}

.clear-btn.visible {
    display: flex;
}

/* Search Submit Button */
.search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 26px;
    background: var(--primary-gradient);
    color: #ffffff;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(79, 110, 247, 0.3);
    transition: var(--transition-fast);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.search-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 60%);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(79, 110, 247, 0.4);
}

.search-btn:hover::before {
    opacity: 1;
}

.search-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(79, 110, 247, 0.25);
}

.search-btn .arrow-icon {
    transition: transform var(--transition-fast);
}

.search-btn:hover .arrow-icon {
    transform: translateX(3px);
}

/* ==========================================================================
   Categories Bar
   ========================================================================== */
.category-wrapper {
    position: relative;
    padding-top: 10px;
    border-top: 1px solid var(--border-subtle);
}

.category-list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 2px 8px 2px;
    scrollbar-width: thin;
    scrollbar-color: rgba(79, 110, 247, 0.2) transparent;
    -webkit-overflow-scrolling: touch;
}

.category-list::-webkit-scrollbar {
    height: 3px;
}

.category-list::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.category-list::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

.category-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 20px;
    background: transparent;
    border: 1.5px solid var(--border-subtle);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--transition-fast);
    position: relative;
}

.category-btn .cat-icon {
    font-size: 0.95rem;
    opacity: 0.8;
    transition: var(--transition-fast);
}

.category-btn:hover {
    background: var(--bg-input);
    border-color: var(--border-hover);
    color: var(--text-primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.category-btn:hover .cat-icon {
    opacity: 1;
    transform: scale(1.1);
}

.category-btn.active {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 2px 12px rgba(79, 110, 247, 0.15);
}

.category-btn.active .cat-icon {
    opacity: 1;
}

/* Ripple animation on click */
@keyframes categoryRipple {
    from { box-shadow: 0 0 0 0 rgba(79, 110, 247, 0.3); }
    to   { box-shadow: 0 0 0 8px rgba(79, 110, 247, 0); }
}

.category-btn:active {
    animation: categoryRipple 0.4s ease-out;
}

/* ==========================================================================
   Main Content Placeholder / Showcase
   ========================================================================== */
.main-content {
    padding: 70px 0;
}

.gallery-placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
}

.placeholder-card {
    background: var(--bg-card);
    border: 2px dashed rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-lg);
    padding: 56px 36px;
    text-align: center;
    max-width: 620px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

/* Decorative shimmer effect */
.placeholder-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(79, 110, 247, 0.04) 50%,
        transparent 100%
    );
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%   { left: -100%; }
    100% { left: 100%; }
}

.placeholder-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--primary-light);
    border: 1px solid rgba(79, 110, 247, 0.15);
    border-radius: var(--radius-full);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 0.04em;
    position: relative;
}

.placeholder-card h2 {
    font-size: 1.55rem;
    margin-bottom: 12px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.4;
}

.placeholder-card p {
    color: var(--text-secondary);
    font-size: 0.98rem;
    line-height: 1.7;
}

/* ==========================================================================
   Gallery Grid & Image Cards
   ========================================================================== */
.gallery-section {
    padding: 28px 0 80px;
}

.gallery-grid {
    columns: 3 320px;
    column-gap: 22px;
    padding: 0;
}

.gallery-grid .img-box {
    break-inside: avoid;
    margin-bottom: 22px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.08);
    transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1),
                box-shadow 0.45s cubic-bezier(0.25, 1, 0.5, 1);
}

.gallery-grid .img-box img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.55s cubic-bezier(0.25, 1, 0.5, 1),
                filter 0.4s ease;
}

.gallery-grid .img-box:hover {
    transform: scale(1.03);
    box-shadow: 0 18px 40px -8px rgba(79, 110, 247, 0.22),
                0 8px 20px -4px rgba(15, 23, 42, 0.12);
    z-index: 2;
}

.gallery-grid .img-box:hover img {
    transform: scale(1.06);
}

/* ==========================================================================
   Lightbox
   ========================================================================== */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(10, 14, 26, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 88vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 14px;
    box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.55);
    transform: scale(0.92);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

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

.lightbox-close {
    position: absolute;
    top: 22px;
    right: 28px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 1.8rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background 0.25s ease, transform 0.25s ease;
    z-index: 2010;
}

.lightbox-close:hover {
    background: rgba(239, 68, 68, 0.8);
    transform: scale(1.1);
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-size: 1.4rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s ease, transform 0.25s ease;
    z-index: 2010;
}

.lightbox-arrow.prev {
    left: 24px;
}

.lightbox-arrow.next {
    right: 24px;
}

.lightbox-arrow:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-50%) scale(1.1);
}

/* ==========================================================================
   Selection & Focus States
   ========================================================================== */
::selection {
    background: rgba(79, 110, 247, 0.15);
    color: var(--text-primary);
}

:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* ==========================================================================
   Smooth scroll
   ========================================================================== */
html {
    scroll-behavior: smooth;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 868px) {
    .navbar-logo-search {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .brand-link {
        justify-content: center;
    }

    .search-box {
        max-width: 100%;
    }

    .gallery-grid {
        columns: 2;
        column-gap: 16px;
    }

    .gallery-grid .img-box {
        margin-bottom: 16px;
    }

    .lightbox-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .lightbox-arrow.prev {
        left: 12px;
    }

    .lightbox-arrow.next {
        right: 12px;
    }
}

@media (max-width: 540px) {
    .navbar {
        padding: 12px 0 10px 0;
    }

    .brand-logo {
        width: 38px;
        height: 38px;
    }

    .brand-title {
        font-size: 1.25rem;
    }

    .search-btn {
        padding: 10px 18px;
        font-size: 0.88rem;
    }

    .search-btn span {
        display: none;
    }

    .search-input-wrapper .search {
        padding: 11px 36px 11px 42px;
        font-size: 0.88rem;
    }

    .search-icon {
        left: 14px;
        width: 16px;
        height: 16px;
    }

    .category-list {
        justify-content: flex-start;
    }

    .category-btn {
        padding: 7px 14px;
        font-size: 0.82rem;
    }

    .gallery-grid {
        columns: 1;
        column-gap: 0;
    }

    .gallery-grid .img-box {
        margin-bottom: 14px;
        border-radius: 12px;
    }

    .lightbox-content img {
        max-width: 96vw;
        max-height: 80vh;
        border-radius: 10px;
    }

    .lightbox-close {
        top: 14px;
        right: 14px;
        width: 38px;
        height: 38px;
        font-size: 1.5rem;
    }

    .lightbox-arrow {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .lightbox-arrow.prev {
        left: 8px;
    }

    .lightbox-arrow.next {
        right: 8px;
    }
}

