:root {
    --bg: #0d0f12;
    --bg-soft: #15191f;
    --text: #f5f1e8;
    --muted: #a9adb5;
    --accent: #c9a15f;
    --accent-dark: #9d793d;
    --line: rgba(255, 255, 255, 0.12);
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    overflow-x: hidden;
}

a {
    color: var(--accent);
}

.site-nav {
    background: rgba(13, 15, 18, 0.88);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.site-nav .nav-link {
    color: rgba(245, 241, 232, 0.78);
}

.site-nav .nav-link.active,
.site-nav .nav-link:hover {
    color: var(--accent);
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}

.brand-lockup img {
    width: 76px;
    height: 76px;
    object-fit: contain;
    border-radius: 8px;
}

.brand-lockup span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hero-section {
    min-height: 92vh;
    padding: 8rem 0 5rem;
    background:
        linear-gradient(180deg, rgba(13, 15, 18, 0.20), rgba(13, 15, 18, 0.94)),
        url("https://images.unsplash.com/photo-1519741497674-611481863552?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.hero-content {
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.page-hero {
    padding: 9rem 0 4rem;
    background:
        linear-gradient(90deg, rgba(13, 15, 18, 0.96), rgba(13, 15, 18, 0.72)),
        url("https://images.unsplash.com/photo-1511285560929-80b456fea0bc?auto=format&fit=crop&w=1600&q=80") center/cover;
    border-bottom: 1px solid var(--line);
    margin-bottom: 3rem;
}

.section-kicker,
.text-accent {
    color: var(--accent);
    letter-spacing: 0;
}

.btn-accent {
    --bs-btn-color: #16120a;
    --bs-btn-bg: var(--accent);
    --bs-btn-border-color: var(--accent);
    --bs-btn-hover-color: #16120a;
    --bs-btn-hover-bg: #d7b77b;
    --bs-btn-hover-border-color: #d7b77b;
}

.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.category-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
}

.category-filter-card {
    display: block;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--bg-soft);
    color: var(--text);
    text-decoration: none;
}

.category-filter-card.active,
.category-filter-card:hover {
    border-color: var(--accent);
    color: var(--text);
}

.category-filter-card img,
.category-filter-empty {
    width: 100%;
    aspect-ratio: 16 / 10;
}

.category-filter-card img {
    object-fit: cover;
}

.category-filter-empty {
    display: grid;
    place-items: center;
    color: var(--muted);
    background: #0a0c0f;
}

.category-filter-card strong {
    display: block;
    padding: 0.8rem 0.9rem;
}

.home-social-showcase {
    background: linear-gradient(135deg, #090b0d, #17120d);
    border-bottom: 1px solid var(--line);
}

.home-social-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.home-social-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--bg-soft);
}

.home-social-card.featured {
    grid-column: span 2;
    grid-row: span 2;
}

.home-social-media {
    background: #050607;
}

.home-social-media img,
.home-social-media video {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.home-social-card.featured .home-social-media img,
.home-social-card.featured .home-social-media video {
    aspect-ratio: 16 / 10;
}

.home-social-body {
    padding: 1rem;
}

.home-social-body span {
    color: var(--accent);
    font-size: 0.86rem;
    font-weight: 700;
}

.home-social-body h3 {
    margin: 0.35rem 0 0;
    font-size: 1.1rem;
    font-weight: 700;
}

.home-social-card.featured .home-social-body h3 {
    font-size: 1.5rem;
}

.home-social-body p {
    margin: 0.55rem 0 0;
    color: var(--muted);
}

.home-categories {
    background: #090b0d;
    border-bottom: 1px solid var(--line);
}

.home-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 0.8rem;
}

.home-category-card {
    position: relative;
    display: block;
    min-height: 210px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--bg-soft);
    color: var(--text);
    text-decoration: none;
}

.home-category-card:hover {
    color: var(--text);
    border-color: var(--accent);
}

.home-category-card img,
.home-category-empty {
    width: 100%;
    height: 100%;
}

.home-category-card img {
    position: absolute;
    inset: 0;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.home-category-card:hover img {
    transform: scale(1.05);
}

.home-category-empty {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--muted);
    background: #0a0c0f;
}

.home-category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.78));
}

.home-category-content {
    position: absolute;
    right: 0.9rem;
    bottom: 0.9rem;
    left: 0.9rem;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}

.home-category-content strong {
    font-size: clamp(1.05rem, 1.4vw, 1.35rem);
    line-height: 1.1;
}

.home-category-content small {
    flex: 0 0 auto;
    padding: 0.25rem 0.55rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.45);
    color: rgba(245, 241, 232, 0.82);
    font-size: 0.8rem;
    font-weight: 700;
}

.gallery-card {
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--bg-soft);
    aspect-ratio: 4 / 3;
    cursor: zoom-in;
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.gallery-card:hover img {
    transform: scale(1.04);
    opacity: 0.82;
}

.gallery-card span {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    padding: 0.35rem 0.7rem;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.62);
    color: var(--text);
    font-weight: 600;
}

.lightbox-image {
    max-height: 78vh;
    object-fit: contain;
}

.empty-state,
.contact-panel,
.social-panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--bg-soft);
    padding: 2rem;
}

.home-contact {
    background: #090b0d;
    border-block: 1px solid var(--line);
}

.home-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.85rem;
}

.contact-link-card,
.icon-text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
}

.contact-link-card {
    min-height: 64px;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--bg-soft);
    color: var(--text);
    text-decoration: none;
}

.contact-link-card:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.contact-link-card i,
.icon-text-link i,
.social-links i {
    font-size: 1.35rem;
}

.album-promo {
    background: linear-gradient(135deg, #101419, #1a1510);
    border-block: 1px solid var(--line);
}

.home-albums {
    background: #0d0f12;
}

.featured-album-card {
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.24);
}

.promo-book {
    position: relative;
    display: block;
    min-height: 360px;
    perspective: 1200px;
}

.promo-book-page {
    position: absolute;
    top: 36px;
    bottom: 36px;
    width: 48%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background-size: cover;
    background-position: center;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

.page-left {
    left: 3%;
    border-radius: 8px 0 0 8px;
    background-image: linear-gradient(rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.42)), url("https://images.unsplash.com/photo-1523438885200-e635ba2c371e?auto=format&fit=crop&w=900&q=80");
    transform: rotateY(8deg);
    transform-origin: right;
}

.page-right {
    right: 3%;
    border-radius: 0 8px 8px 0;
    background-image: linear-gradient(rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.36)), url("https://images.unsplash.com/photo-1511285560929-80b456fea0bc?auto=format&fit=crop&w=900&q=80");
    transform: rotateY(-10deg);
    transform-origin: left;
}

.promo-book-label {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    padding: 0.55rem 1rem;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.62);
    color: var(--text);
    font-weight: 700;
}

.album-card {
    display: block;
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--bg-soft);
    color: var(--text);
    text-decoration: none;
}

.album-card:hover {
    color: var(--text);
}

.album-card img,
.album-card-empty {
    width: 100%;
    aspect-ratio: 4 / 3;
}

.album-card img {
    object-fit: cover;
    transition: transform 0.3s ease;
}

.album-card:hover img {
    transform: scale(1.04);
}

.album-card-empty {
    display: grid;
    place-items: center;
    color: var(--muted);
    background: #0a0c0f;
}

.album-card-body {
    padding: 1.25rem;
}

.album-card-body span {
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 700;
}

.album-card-body p {
    color: var(--muted);
    margin-bottom: 0;
}

.album-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.25rem;
}

.album-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.album-audio {
    width: min(320px, 100%);
    height: 42px;
}

.album-viewer,
.flipbook-shell {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
}

.flipbook-stage {
    position: relative;
    min-height: 68vh;
    perspective: 1600px;
}

.template-dergi .flipbook-stage {
    min-height: 74vh;
}

.template-dergi .flip-page {
    border: 10px solid #f5f1e8;
    background: #f5f1e8;
    box-shadow: 0 26px 80px rgba(0, 0, 0, 0.45);
}

.template-dergi .flip-page img {
    object-fit: contain;
    background: #0d0f12;
}

.template-minimal .flipbook-stage {
    min-height: 64vh;
}

.template-minimal .flip-page {
    border: 0;
    border-radius: 0;
    background: transparent;
}

.template-minimal .flip-page img {
    object-fit: contain;
    background: #050607;
}

.flip-page {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--bg-soft);
    opacity: 0;
    transform: rotateY(22deg) scale(0.96);
    transform-origin: left center;
    transition: transform 0.45s ease, opacity 0.35s ease;
    pointer-events: none;
}

.flip-page.active {
    opacity: 1;
    transform: rotateY(0) scale(1);
    pointer-events: auto;
    z-index: 3;
}

.flip-page.turned-left {
    transform: rotateY(-28deg) scale(0.94);
}

.flip-page.turned-right {
    transform: rotateY(28deg) scale(0.94);
}

.flip-page img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.flip-control {
    width: 48px;
    height: 48px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--bg-soft);
    color: var(--text);
    font-size: 2rem;
    line-height: 1;
}

.flip-control:disabled {
    opacity: 0.35;
}

.flipbook-status {
    text-align: center;
    color: var(--muted);
}

.contact-panel {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    align-items: center;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 42px;
    padding: 0.55rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    text-decoration: none;
}

.social-links a:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.about-photo {
    min-height: 430px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background:
        linear-gradient(180deg, rgba(13, 15, 18, 0.05), rgba(13, 15, 18, 0.35)),
        url("https://images.unsplash.com/photo-1520854221256-17451cc331bf?auto=format&fit=crop&w=1100&q=80") center/cover;
}

.site-footer {
    border-top: 1px solid var(--line);
    background: #090b0d;
    color: var(--muted);
}

@media (max-width: 768px) {
    .site-nav .container {
        gap: 0.75rem;
    }

    .navbar-collapse {
        margin-top: 0.75rem;
        padding: 0.75rem 0;
        border-top: 1px solid var(--line);
    }

    .site-nav .nav-link {
        padding: 0.7rem 0;
    }

    .brand-lockup img {
        width: 58px;
        height: 58px;
    }

    .brand-lockup span {
        max-width: 48vw;
    }

    .hero-section {
        min-height: 72vh;
        padding: 7rem 0 3rem;
        background-position: center top;
    }

    .hero-content .display-3 {
        font-size: clamp(2.35rem, 12vw, 3.4rem);
    }

    .hero-content .lead {
        font-size: 1.02rem;
    }

    .home-categories,
    .home-social-showcase,
    .album-promo,
    .home-albums,
    .home-contact,
    .container.py-5 {
        padding-top: 2.6rem !important;
        padding-bottom: 2.6rem !important;
    }

    .home-categories .h1,
    .home-social-showcase .h1,
    .album-promo .h1,
    .home-albums .h1,
    .home-contact .h1,
    .container.py-5 .h1 {
        font-size: clamp(1.7rem, 8vw, 2.25rem);
    }

    .home-social-grid {
        grid-template-columns: 1fr;
    }

    .home-social-card.featured {
        grid-column: auto;
        grid-row: auto;
    }

    .home-social-media img,
    .home-social-media video,
    .home-social-card.featured .home-social-media img,
    .home-social-card.featured .home-social-media video {
        aspect-ratio: 4 / 5;
    }

    .home-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.65rem;
    }

    .home-category-card {
        min-height: 170px;
    }

    .home-category-content {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.5rem;
    }

    .home-category-content small {
        font-size: 0.74rem;
    }

    .promo-book-page {
        top: 24px;
        bottom: 34px;
    }

    .album-card-body {
        padding: 1rem;
    }

    .home-contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-link-card {
        min-height: 56px;
        padding: 0.85rem;
    }

    .contact-panel {
        grid-template-columns: 1fr;
    }

    .page-hero {
        padding-top: 7rem;
    }

    .promo-book {
        min-height: 260px;
    }

    .album-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .album-actions {
        justify-content: stretch;
    }

    .album-actions .btn,
    .album-audio {
        width: 100%;
    }

    .album-viewer,
    .flipbook-shell {
        grid-template-columns: 1fr;
    }

    .flipbook-stage {
        min-height: 56vh;
    }

    .flip-control {
        width: 100%;
        border-radius: 8px;
    }

    .site-footer .container {
        text-align: center;
    }
}

@media (max-width: 420px) {
    .brand-lockup {
        gap: 0.45rem;
    }

    .brand-lockup img {
        width: 50px;
        height: 50px;
    }

    .brand-lockup span {
        max-width: 42vw;
        font-size: 1rem;
    }

    .home-category-card {
        min-height: 145px;
    }

    .home-category-content {
        right: 0.7rem;
        bottom: 0.7rem;
        left: 0.7rem;
    }

    .home-category-content strong {
        font-size: 0.98rem;
    }

    .promo-book {
        min-height: 220px;
    }

    .btn-lg {
        --bs-btn-padding-y: 0.65rem;
        --bs-btn-padding-x: 1rem;
        --bs-btn-font-size: 1rem;
    }
}
