.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0a0a;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: opacity .8s ease, visibility .8s ease
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden
}

.preloader-logo {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #c9a96e;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease
}

.preloader-bar {
    width: 200px;
    height: 2px;
    background: rgba(201, 169, 110, .2);
    border-radius: 10px;
    overflow: hidden
}

.preloader-bar::after {
    content: '';
    display: block;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, #c9a96e, #d4b87a);
    border-radius: 10px;
    animation: loading 2s ease-in-out forwards
}

@keyframes loading {
    0% {
        width: 0
    }

    100% {
        width: 100%
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px)
    }

    100% {
        opacity: 1;
        transform: translateY(0)
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden
}

body {
    font-family: 'Inter', sans-serif;
    background: #0a0a0a;
    color: #fff;
    overflow-x: hidden
}

::-webkit-scrollbar {
    width: 8px
}

::-webkit-scrollbar-track {
    background: #0a0a0a
}

::-webkit-scrollbar-thumb {
    background: #c9a96e;
    border-radius: 10px
}

.navbar {
    transition: all .4s cubic-bezier(.4, 0, .2, 1)
}

.navbar.scrolled {
    background: rgba(10, 10, 10, .95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, .5);
    padding-top: .5rem !important;
    padding-bottom: .5rem !important
}

.nav-link {
    position: relative;
    transition: color .3s ease
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #c9a96e;
    transition: width .3s ease
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%
}

.nav-link:hover,
.nav-link.active {
    color: #c9a96e
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(10, 10, 10, .98);
    backdrop-filter: blur(30px);
    z-index: 9998;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    transition: transform .5s cubic-bezier(.4, 0, .2, 1);
    overflow-y: auto
}

.mobile-menu.open {
    transform: translateX(0)
}

.mobile-menu a {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: #fff;
    text-decoration: none;
    padding: 15px 0;
    transition: color .3s ease, transform .3s ease;
    opacity: 0;
    transform: translateY(20px)
}

.mobile-menu.open a {
    opacity: 1;
    transform: translateY(0)
}

.mobile-menu.open a:nth-child(1) {
    transition-delay: .1s
}

.mobile-menu.open a:nth-child(2) {
    transition-delay: .15s
}

.mobile-menu.open a:nth-child(3) {
    transition-delay: .2s
}

.mobile-menu.open a:nth-child(4) {
    transition-delay: .25s
}

.mobile-menu.open a:nth-child(5) {
    transition-delay: .3s
}

.mobile-menu.open a:nth-child(6) {
    transition-delay: .35s
}

.mobile-menu.open a:nth-child(7) {
    transition-delay: .4s
}

.mobile-menu.open a:nth-child(8) {
    transition-delay: .45s
}

.mobile-menu a:hover {
    color: #c9a96e;
    transform: translateX(10px)
}

.hamburger {
    z-index: 9999;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: #fff;
    transition: all .4s cubic-bezier(.4, 0, .2, 1);
    border-radius: 2px
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
    background: #c9a96e
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(20px)
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
    background: #c9a96e
}

.page-hero {
    background: linear-gradient(0deg, rgba(10, 10, 10, 1) 0%, rgba(10, 10, 10, .5) 40%, rgba(10, 10, 10, .3) 100%), url('https://images.unsplash.com/photo-1600585154526-990dced4db0d?w=1920&q=80') center/cover no-repeat;
    min-height: 60vh
}

.section-subtitle {
    letter-spacing: 4px;
    text-transform: uppercase;
    font-size: .75rem
}

.section-divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #c9a96e, #d4b87a)
}

.btn-primary {
    background: linear-gradient(135deg, #c9a96e, #d4b87a);
    color: #0a0a0a;
    transition: all .4s ease;
    position: relative;
    overflow: hidden
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #d4b87a, #e5cc9a);
    transition: left .4s ease;
    z-index: 0
}

.btn-primary:hover::before {
    left: 0
}

.btn-primary span {
    position: relative;
    z-index: 1
}

.btn-outline {
    border: 1px solid #c9a96e;
    color: #c9a96e;
    transition: all .4s ease
}

.btn-outline:hover {
    background: #c9a96e;
    color: #0a0a0a
}

.custom-cursor {
    width: 20px;
    height: 20px;
    border: 2px solid #c9a96e;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 99999;
    transition: transform .15s ease;
    transform: translate(-50%, -50%)
}

.custom-cursor.hover {
    transform: translate(-50%, -50%) scale(2);
    background: rgba(201, 169, 110, .1)
}

@media(max-width:768px) {
    .custom-cursor {
        display: none
    }
}

.back-to-top {
    opacity: 0;
    visibility: hidden;
    transition: all .4s ease
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible
}

/* ARTICLE CONTENT */
.article-content {
    line-height: 1.9;
    color: #b0b0b0
}

.article-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    margin: 2.5rem 0 1rem;
    line-height: 1.3
}

.article-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    margin: 2rem 0 .75rem;
    line-height: 1.3
}

.article-content p {
    margin-bottom: 1.25rem;
    font-size: .95rem
}

.article-content strong {
    color: #fff
}

.article-content a {
    color: #c9a96e;
    text-decoration: underline;
    transition: color .3s ease
}

.article-content a:hover {
    color: #d4b87a
}

.article-content ul,
.article-content ol {
    margin: 1rem 0 1.5rem 1.5rem
}

.article-content li {
    margin-bottom: .5rem;
    font-size: .95rem
}

.article-content blockquote {
    border-left: 4px solid #c9a96e;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    background: rgba(201, 169, 110, .05);
    border-radius: 0 4px 4px 0;
    font-style: italic;
    color: #d0d0d0;
    font-size: 1.05rem
}

.article-content img {
    width: 100%;
    border-radius: 4px;
    margin: 2rem 0
}

.article-content .highlight-box {
    background: linear-gradient(145deg, rgba(42, 42, 58, .3), rgba(26, 26, 46, .5));
    border: 1px solid rgba(201, 169, 110, .15);
    border-radius: 4px;
    padding: 1.5rem;
    margin: 2rem 0
}

/* READING PROGRESS */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #c9a96e, #d4b87a);
    z-index: 9995;
    transition: width .1s linear;
    width: 0
}

/* SIDEBAR */
.sidebar-card {
    background: linear-gradient(145deg, rgba(42, 42, 58, .3), rgba(26, 26, 46, .5));
    border: 1px solid rgba(201, 169, 110, .1);
    border-radius: 4px
}

/* TOC */
.toc-link {
    transition: all .3s ease;
    border-left: 2px solid transparent;
    padding-left: .75rem
}

.toc-link:hover,
.toc-link.active {
    color: #c9a96e;
    border-left-color: #c9a96e;
    padding-left: 1rem
}

/* SHARE */
.share-btn {
    transition: all .3s ease
}

.share-btn:hover {
    transform: translateY(-3px)
}

/* TAG */
.tag {
    background: rgba(201, 169, 110, .08);
    color: #c9a96e;
    transition: all .3s ease;
    border: 1px solid rgba(201, 169, 110, .1)
}

.tag:hover {
    background: rgba(201, 169, 110, .2);
    border-color: rgba(201, 169, 110, .3)
}

/* COMMENT */
.comment-card {
    background: linear-gradient(145deg, rgba(42, 42, 58, .15), rgba(26, 26, 46, .3));
    border: 1px solid rgba(201, 169, 110, .06);
    border-radius: 4px;
    transition: all .3s ease
}

.comment-card:hover {
    border-color: rgba(201, 169, 110, .15)
}

.form-input {
    background: rgba(42, 42, 58, .3);
    border: 1px solid rgba(201, 169, 110, .1);
    transition: all .3s ease
}

.form-input:focus {
    border-color: rgba(201, 169, 110, .5);
    outline: none;
    box-shadow: 0 0 0 3px rgba(201, 169, 110, .1)
}

/* RELATED */
.related-card {
    overflow: hidden;
    transition: all .5s ease;
    background: linear-gradient(145deg, rgba(42, 42, 58, .2), rgba(26, 26, 46, .4));
    border: 1px solid rgba(201, 169, 110, .08);
    border-radius: 4px
}

.related-card:hover {
    border-color: rgba(201, 169, 110, .25);
    transform: translateY(-8px)
}

.related-card .rel-img {
    overflow: hidden
}

.related-card .rel-img img {
    transition: transform .6s ease
}

.related-card:hover .rel-img img {
    transform: scale(1.08)
}

/* POST NAV */
.post-nav {
    background: linear-gradient(145deg, rgba(42, 42, 58, .2), rgba(26, 26, 46, .4));
    border: 1px solid rgba(201, 169, 110, .08);
    border-radius: 4px;
    transition: all .4s ease
}

.post-nav:hover {
    border-color: rgba(201, 169, 110, .25);
    transform: translateY(-3px)
}

/* NEWSLETTER */
.newsletter-input {
    background: rgba(42, 42, 58, .3);
    border: 1px solid rgba(201, 169, 110, .1);
    transition: all .3s ease
}

.newsletter-input:focus {
    border-color: rgba(201, 169, 110, .5);
    outline: none
}

/* CTA */
.cta-bg {
    background: linear-gradient(135deg, rgba(10, 10, 10, .85) 0%, rgba(26, 26, 46, .7) 100%), url('https://images.unsplash.com/photo-1618221195710-dd6b41faaea6?w=1920&q=80') center/cover no-repeat fixed
}

@media(max-width:768px) {
    .cta-bg {
        background-attachment: scroll
    }
}

@supports(-webkit-touch-callout:none) {
    .cta-bg {
        background-attachment: scroll
    }
}

/* AUTHOR BIO */
.author-card {
    background: linear-gradient(145deg, rgba(42, 42, 58, .3), rgba(26, 26, 46, .5));
    border: 1px solid rgba(201, 169, 110, .1);
    border-radius: 4px
}