/* Base Reset and Variables */
:root {
    --bg-color: #f6f6f6;
    --bg-white: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #5f5f5f;
    --text-light: #999999;
    --border-color: #e5e5e5;
    --font-heading: 'Playfair Display', 'Tiro Devanagari Hindi', serif;
    --font-body: 'Roboto', 'Hind', sans-serif;
    --transition-smooth: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* Hide scrollbar for Chrome, Safari and Opera */
*::-webkit-scrollbar {
    display: none;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Navigation */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.85); /* Frosted Glass background */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 15px 0;
    transition: all 0.4s ease;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    z-index: 1001;
}

.logo-image {
    width: 60px;
}

/* Mystique Animated Logo */
.mystique-logo {
    display: inline-block;
    text-decoration: none;
    perspective: 1000px;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-style: italic;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -1px;
    position: relative;
    display: inline-block;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: linear-gradient(45deg, #1a1a1a, #999999, #1a1a1a);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShimmer 4s linear infinite;
}

.logo-dot {
    -webkit-text-fill-color: #f57c00;
    display: inline-block;
    animation: pulseGlow 2s infinite alternate;
}

@keyframes gradientShimmer {
    to { background-position: 200% center; }
}

@keyframes pulseGlow {
    from { 
        text-shadow: 0 0 5px rgba(245, 124, 0, 0.2); 
        transform: scale(1);
    }
    to { 
        text-shadow: 0 0 15px rgba(245, 124, 0, 0.8);
        transform: scale(1.1);
    }
}

.mystique-logo:hover .logo-text {
    letter-spacing: 2px;
    transform: scale(1.05);
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.1));
}

/* Hamburger Menu Button */
.menu-button {
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    cursor: pointer;
    z-index: 1001;
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.menu-button:hover {
    transform: scale(1.1);
}

.hamburger-icon {
    width: 36px;
    height: 20px;
    position: relative;
}

.hamburger-line, .hamburger-line-2, .hamburger-line-3 {
    height: 3px;
    background-color: var(--text-primary);
    position: absolute;
    right: 0;
    border-radius: 10px;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.hamburger-line { 
    top: 0; 
    width: 100%; 
}

.hamburger-line-2 { 
    top: 50%; 
    transform: translateY(-50%); 
    width: 65%; 
}

.hamburger-line-3 { 
    bottom: 0; 
    width: 85%; 
}

/* Hover state when closed */
.menu-button:hover:not(.open) .hamburger-line {
    width: 80%;
}
.menu-button:hover:not(.open) .hamburger-line-2 {
    width: 100%;
    background-color: #f57c00;
}
.menu-button:hover:not(.open) .hamburger-line-3 {
    width: 60%;
}

/* Hamburger Open State */
.menu-button.open .hamburger-line { 
    top: 50%; 
    width: 100%;
    transform: translateY(-50%) rotate(45deg); 
    background-color: #f57c00;
}
.menu-button.open .hamburger-line-2 { 
    width: 0%; 
    opacity: 0; 
    transform: translateY(-50%) translateX(30px);
}
.menu-button.open .hamburger-line-3 { 
    top: 50%;
    bottom: auto; 
    width: 100%;
    transform: translateY(-50%) rotate(-45deg); 
    background-color: #f57c00;
}

/* Hover state when open */
.menu-button.open:hover .hamburger-line {
    transform: translateY(-50%) rotate(135deg);
}
.menu-button.open:hover .hamburger-line-3 {
    transform: translateY(-50%) rotate(45deg);
}

/* Nav Menu Overlay */
.nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-white);
    display: flex;
    padding: 120px 8%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease-in-out;
    z-index: 999;
}

.nav-menu.open {
    opacity: 1;
    visibility: visible;
}

.nav-left {
    flex: 1.2;
    display: flex;
    align-items: center;
    padding-right: 5%;
}

.nav-expanded-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 500;
}

.highlight-text {
    font-style: italic;
    color: var(--text-light);
}

.middle-separator.menu {
    width: 1px;
    background-color: var(--border-color);
    margin: 0 5%;
}

.nav-right {
    flex: 0.8;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    padding-left: 5%;
}

.navlink {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 400;
    color: var(--text-primary);
    transition: color 0.3s ease;
    width: fit-content;
}

.navlink:hover, .navlink.active {
    font-style: italic;
    color: var(--text-secondary);
}

/* Main Layout */
.listing-section {
    padding: 100px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.parallax-container {
    display: flex;
    gap: 80px;
    position: relative;
    padding-bottom: 250px; /* Absorbs JS scroll parallax overflow */
}

.column-left, .column-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 100px; /* Reduced from 150px to prevent excessive vertical empty space */
    padding-bottom: 100px;
}

.column-right {
    margin-top: 200px; 
}

/* Middle Separator */
.middle-seperator-container {
    width: 1px;
    position: relative;
    flex-shrink: 0;
}

.middle-separator {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: var(--border-color);
    left: 50%;
    transform: translateX(-50%);
}

/* Hero Section */
.hero-section {
    display: flex;
    align-items: center;
    gap: 80px;
    margin-bottom: 150px;
    padding-top: 40px;
}
.hero-content {
    flex: 1;
}
.hero-title {
    font-family: var(--font-heading);
    font-size: 5rem;
    line-height: 1.1;
    font-weight: 500;
    margin-bottom: 30px;
    letter-spacing: -1px;
}
.hero-text {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.8;
}
.hero-link {
    display: inline-block;
    padding: 18px 40px;
    background-color: var(--text-primary);
    color: var(--bg-white);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border-radius: 2px;
}
.hero-link:hover {
    background-color: var(--text-secondary);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.hero-image {
    flex: 1;
    overflow: hidden;
    border-radius: 4px;
}
.hero-image img {
    width: 100%;
    height: 700px;
    object-fit: cover;
    display: block;
    transition: transform 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.hero-section:hover .hero-image img {
    transform: scale(1.05);
}

/* Collection Items */
.collection-item {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Staggered entry animation */
.column-left .collection-item.fade-in-up:nth-child(1) { transition-delay: 0.1s; }
.column-left .collection-item.fade-in-up:nth-child(2) { transition-delay: 0.3s; }
.column-right .collection-item.fade-in-up:nth-child(1) { transition-delay: 0.2s; }
.column-right .collection-item.fade-in-up:nth-child(2) { transition-delay: 0.4s; }

.collection-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.listing-content {
    background: transparent;
}

.listing-eyebrow {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 25px;
    display: inline-block;
}

.listing-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    line-height: 1.15;
    font-weight: 500;
    margin-bottom: 35px;
    color: var(--text-primary);
    transition: opacity 0.3s ease;
    letter-spacing: -0.5px;
}

.title-link:hover .listing-title {
    opacity: 0.7;
}

.listing-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-weight: 300;
    line-height: 1.7;
}

.listing-text p {
    margin-bottom: 20px;
}

.listing-image {
    margin-bottom: 35px;
    overflow: hidden;
    border-radius: 4px;
}

.listing-image img {
    width: 100%;
    display: block;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.collection-item:hover .listing-image img {
    transform: scale(1.05);
}

/* Quotes Styling (Exact Replica) */
.quote-content {
    padding: 40px 40px;
    background-color: var(--bg-white);
    position: relative;
    box-shadow: 0 30px 60px rgba(0,0,0,0.02);
}

.quote-block {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 1;
}

.quote-image {
    width: 150px;
    opacity: 0.15;
}

.listing-title.quote {
    font-size: 2.2rem;
    font-style: italic;
    position: relative;
    z-index: 2;
    margin-bottom: 0;
    line-height: 1.4;
}

/* Read More Link Styling (No Underline, with line block) */
.listing-link {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-primary);
    position: relative;
    transition: opacity 0.3s ease;
}

.listing-link:hover {
    opacity: 0.6;
}

.div-block-2 {
    height: 1px;
    width: 30px;
    background-color: var(--text-primary);
    transition: width 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.listing-link:hover .div-block-2 {
    width: 45px;
}

/* Single Page Details (detail.html / detail.php) */
.single-page-layout {
    max-width: 800px;
    margin: 0 auto;
    padding-top: 80px;
    padding-bottom: 120px;
}

.back-container {
    margin-bottom: 80px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.back-container:hover {
    opacity: 1;
}

.item-wrapper-single {
    margin-bottom: 80px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.item-wrapper-single.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.item-wrapper-single .listing-title {
    font-size: 4rem;
    margin-bottom: 50px;
}

.item-wrapper-single .listing-text {
    font-size: 1.25rem;
    line-height: 1.8;
}

.item-wrapper-single .listing-text p {
    margin-bottom: 25px;
}

.social-container {
    display: flex;
    gap: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
    transition-delay: 0.2s;
}

.social-container.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.social-icon a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.social-icon a:hover {
    background-color: var(--text-primary);
}

.social-icon a:hover img {
    filter: invert(1);
}

/* Post Navigation (Prev/Next) */
.post-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}
.nav-prev, .nav-next {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.nav-next {
    text-align: right;
    align-items: flex-end;
}
.nav-prev span, .nav-next span {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-light);
    margin-bottom: 5px;
}
.nav-prev a, .nav-next a {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: all 0.3s ease;
    text-decoration: none;
}
.nav-prev a:hover, .nav-next a:hover {
    color: var(--text-secondary);
    font-style: italic;
}

/* Recommended Posts */
.recommended-section {
    margin-top: 100px;
    margin-bottom: 50px;
}
.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    font-weight: 500;
}
.recommended-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.rec-card {
    display: block;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: var(--bg-white);
    text-decoration: none;
    color: inherit;
}
.rec-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
}
.rec-img {
    height: 180px;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid var(--border-color);
}
.rec-img.fallback {
    background: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--text-light);
    font-style: italic;
}
.rec-content {
    padding: 25px;
}
.rec-eyebrow {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-light);
    display: block;
    margin-bottom: 10px;
}
.rec-content h4 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    line-height: 1.3;
    font-weight: 500;
    color: var(--text-primary);
}

/* Theme Presets */
.theme-centered-elegant .single-page-layout {
    text-align: center;
}
.theme-centered-elegant .item-wrapper-single .listing-title {
    font-size: 4.5rem;
    font-style: italic;
    font-weight: 400;
}
.theme-centered-elegant .item-wrapper-single .listing-text {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    line-height: 2.2;
    margin: 0 auto;
    max-width: 600px;
}
.theme-centered-elegant .listing-image img {
    max-width: 80%;
    margin: 0 auto 40px auto;
}

.theme-dark-mode {
    background-color: #121212 !important;
    color: #e0e0e0 !important;
}
.theme-dark-mode .listing-title,
.theme-dark-mode .listing-text {
    color: #fff !important;
}
.theme-dark-mode .div-block-2 {
    background-color: #fff !important;
}
.theme-dark-mode .listing-link {
    color: #fff !important;
}
.theme-dark-mode .quote-content {
    background-color: #1a1a1a !important;
    box-shadow: none !important;
}

.theme-minimalist .item-wrapper-single .listing-title {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 3.5rem;
    text-transform: lowercase;
    letter-spacing: -1px;
}
.theme-minimalist .listing-eyebrow {
    display: none;
}
.theme-minimalist .item-wrapper-single .listing-text {
    font-weight: 300;
}

/* Truncation & Read More/Less Styles */
.truncate-text {
    display: inline;
}

.moreellipses {
    color: var(--text-light);
}

/* Search Bar */
.search-form {
    display: flex;
    align-items: center;
    border-bottom: 2px solid var(--text-primary);
    padding-bottom: 5px;
    margin-bottom: 40px;
    width: 100%;
    max-width: 400px;
}

.search-input {
    border: none;
    outline: none;
    font-size: 2rem;
    font-family: var(--font-heading);
    font-style: italic;
    width: 100%;
    background: transparent;
    color: var(--text-primary);
}

.search-input::placeholder {
    color: var(--border-color);
}

.search-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.search-btn:hover {
    transform: scale(1.1);
}

/* Pagination */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.page-numbers {
    display: flex;
    gap: 10px;
}

.page-link, .page-number {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    border-radius: 50%;
    color: var(--text-primary);
    font-weight: 500;
    transition: all 0.3s ease;
}

.page-link {
    border-radius: 30px;
    padding: 0 20px;
    gap: 10px;
    border: 1px solid var(--border-color);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.page-number:hover, .page-link:hover {
    background-color: var(--border-color);
}

.page-number.active {
    background-color: var(--text-primary);
    color: var(--bg-white);
}

/* Footer & Author Profile */
.site-footer {
    background-color: var(--bg-white);
    padding: 80px 40px 40px;
    margin-top: 100px;
    border-top: 1px solid var(--border-color);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.author-profile {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 80px;
    max-width: 800px;
}

.author-avatar {
    width: 140px;
    height: 140px;
    flex-shrink: 0;
    overflow: hidden;
    animation: morphWave 8s ease-in-out infinite;
    box-shadow: inset 0 0 0 5px rgba(255,255,255,0.3);
    border: 3px solid rgba(0,0,0,0.1);
    background-color: var(--border-color);
}

@keyframes morphWave {
    0% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
    100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.author-info h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.author-info p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: 300;
}

.author-socials a {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    margin-right: 20px;
    position: relative;
}

.author-socials a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--text-primary);
    transition: width 0.3s ease;
}

.author-socials a:hover::after {
    width: 100%;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.go-top-btn {
    background: none;
    border: 1px solid var(--border-color);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.go-top-btn:hover {
    background: var(--text-primary);
    color: var(--bg-white);
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .nav-expanded-title {
        font-size: 3rem;
    }
    .navlink {
        font-size: 2.8rem;
    }
    .parallax-container {
        gap: 50px;
    }
    .listing-title {
        font-size: 2.2rem;
    }
    .quote-content {
        padding: 40px 30px;
    }
}

@media (max-width: 768px) {
    .parallax-container {
        flex-direction: column;
        gap: 80px;
    }
    
    .column-right {
        margin-top: 0;
    }

    .column-left, .column-right {
        gap: 80px;
        padding-bottom: 0;
    }

    .middle-seperator-container {
        display: none;
    }

    .nav-menu {
        flex-direction: column;
        padding: 120px 30px 40px;
        overflow-y: auto;
    }

    .nav-left {
        padding-right: 0;
        margin-bottom: 50px;
        text-align: center;
    }
    
    .nav-expanded-title {
        font-size: 2.5rem;
    }

    .middle-separator.menu {
        width: 100%;
        height: 1px;
        margin: 0 0 50px 0;
    }

    .nav-right {
        padding-left: 0;
        align-items: center;
        gap: 25px;
    }

    .navlink {
        font-size: 2.2rem;
    }

    .listing-section {
        padding: 60px 25px;
    }

    .hero-section {
        flex-direction: column;
        margin-bottom: 80px;
        gap: 40px;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .hero-image img {
        height: 400px;
    }

    .post-navigation {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .nav-next {
        text-align: center;
        align-items: center;
    }

    .recommended-grid {
        grid-template-columns: 1fr;
    }

    .author-profile {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .author-socials a {
        margin: 0 10px;
    }
}
