/* ========================================
   BHAARATHH - MAIN STYLESHEET
   ======================================== */

:root {
    --cream: #faf9f6;
    --deep-maroon: #2a0a0a;
    --gold: #c5a059;
    --neon-saffron: #e65100;
    --charcoal: #111111;
    --text-body: #333333;
    --text-muted: #555555;
    --white: #ffffff;
    --footer-bg: #121212;
    --footer-text: #e0e0e0;
    --paper-texture: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background-color: var(--cream);
    color: var(--charcoal);
    overflow-x: hidden;
    line-height: 1.6;
    background-image: var(--paper-texture);
}

h1, h2, h3, h4, .serif {
    font-family: 'Playfair Display', serif;
}

/* ========================================
   SCROLL PROGRESS BAR
   ======================================== */

#progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: var(--neon-saffron);
    width: 0%;
    z-index: 2000;
    transition: width 0.1s;
    box-shadow: 0 0 10px rgba(230, 81, 0, 0.4);
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */

header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    border-radius: 100px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-color: #ddd;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-icon {
    height: 32px;
    width: 32px;
    fill: var(--white);
    transition: fill 0.4s ease;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: 0px;
    transition: color 0.4s ease;
}

header.scrolled .logo-icon {
    fill: var(--deep-maroon);
}

header.scrolled .logo-text {
    color: var(--deep-maroon);
}

nav {
    display: flex;
    gap: 30px;
}

nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    transition: color 0.4s ease;
}

header.scrolled nav a {
    color: var(--charcoal);
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--neon-saffron);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero-section {
    height: 100vh;
    width: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.7)),
                url('https://image.pollinations.ai/prompt/himalayas%20snow%20peaks%20golden%20sunrise%20india%20cinematic%20wide%20shot?width=1920&height=1080&nologo=true');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding: 20px;
    position: relative;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    display: inline-block;
    font-size: 0.85rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    color: var(--neon-saffron);
    font-weight: 800;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 18px;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-title {
    font-size: clamp(4rem, 10vw, 8rem);
    line-height: 0.95;
    margin-bottom: 2.5rem;
    font-weight: 800;
    letter-spacing: -2px;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-title span {
    font-style: italic;
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    color: #ffca28;
}

.hero-btn {
    padding: 18px 45px;
    background: var(--neon-saffron);
    border: none;
    color: var(--white);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-btn:hover {
    transform: scale(1.05);
    background: var(--white);
    color: var(--neon-saffron);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   ABOUT SECTION
   ======================================== */

.about-section {
    padding: 8rem 2rem;
    background-color: var(--white);
    text-align: center;
}

.about-text {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    color: var(--deep-maroon);
    line-height: 1.3;
    max-width: 1000px;
    margin: 0 auto 2rem;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.about-text em {
    color: var(--neon-saffron);
    font-style: italic;
    font-weight: 600;
}

/* ========================================
   CATEGORIES SECTION
   ======================================== */

.categories-section {
    padding: 4rem 2rem;
}

.section-header h2 {
    font-size: 3rem;
    color: var(--deep-maroon);
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 4rem auto 0;
}

.cat-item {
    position: relative;
    height: 350px;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.4s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    display: block;
    text-decoration: none;
}

.cat-item:hover {
    transform: scale(0.98);
    text-decoration: none;
}

.cat-item:focus-visible {
    outline: 3px solid var(--neon-saffron);
    outline-offset: 4px;
}

.cat-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.cat-item:hover .cat-img {
    transform: scale(1.1);
}

.cat-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 25px;
}

.cat-title {
    color: var(--white);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* ========================================
   GRID & CARDS
   ======================================== */

.grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 30px;
}

.card {
    grid-column: span 4;
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: inherit;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

.card:focus {
    text-decoration: none;
}

.card:focus-visible {
    outline: 3px solid var(--neon-saffron);
    outline-offset: 4px;
}

.card.featured {
    grid-column: span 8;
}

.card.tall {
    grid-column: span 4;
    grid-row: span 2;
}

.card-img-wrap {
    height: 300px;
    overflow: hidden;
    position: relative;
}

.card.tall .card-img-wrap {
    height: 100%;
    min-height: 500px;
}

.card.featured .card-img-wrap {
    height: 450px;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

.vibe-tag {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--white);
    padding: 8px 16px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 50px;
    color: var(--charcoal);
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.card-content {
    padding: 2.5rem;
    background: white;
    flex-grow: 1;
}

.card-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--charcoal);
    margin-bottom: 0.8rem;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.card:hover .card-title {
    color: var(--neon-saffron);
    transition: color 0.3s;
}

.card-excerpt {
    color: var(--text-body);
    font-size: 1.05rem;
    font-weight: 400;
    line-height: 1.6;
}

/* ========================================
   POST STYLING
   ======================================== */

.post-article {
    padding-top: 0;
}

.post-hero {
    height: 80vh;
    position: relative;
    overflow: hidden;
}

.post-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.9) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 6rem;
    text-align: center;
    color: var(--white);
}

.post-heading {
    font-size: clamp(3rem, 6vw, 5.5rem);
    line-height: 1;
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    max-width: 1000px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.post-meta-tag {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--neon-saffron);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 800;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 1.5rem;
}

.post-container {
    max-width: 850px;
    margin: -80px auto 4rem;
    padding: 80px 70px;
    background: var(--white);
    position: relative;
    z-index: 10;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    border-top: 6px solid var(--neon-saffron);
}

.post-container::before,
.post-container::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    border: 2px solid var(--gold);
    transition: all 0.3s ease;
}

.post-container::before {
    top: 20px;
    left: 20px;
    border-right: none;
    border-bottom: none;
}

.post-container::after {
    bottom: 20px;
    right: 20px;
    border-left: none;
    border-top: none;
}

.back-btn {
    display: inline-block;
    margin-bottom: 40px;
    color: var(--neon-saffron);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 2px;
    font-weight: 700;
    border-bottom: 1px solid transparent;
    transition: border 0.3s;
}

.back-btn:hover {
    border-bottom-color: var(--neon-saffron);
}

.tldr-box {
    background: #fff8f0;
    border-left: 6px solid var(--neon-saffron);
    padding: 2.5rem;
    margin-bottom: 4rem;
    border-radius: 4px;
    font-family: 'Space Grotesk', sans-serif;
}

.tldr-label {
    font-weight: 800;
    text-transform: uppercase;
    color: var(--neon-saffron);
    display: block;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    letter-spacing: 1px;
}
.tldr-text {
    font-weight: 500;
    color: var(--charcoal);
    font-size: 1.15rem;
    line-height: 1.6;
    margin: 0;
}

/* ========================================
   POST BODY TYPOGRAPHY
   ======================================== */

.post-body p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    color: #111;
    font-weight: 500;
}

.post-body h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--deep-maroon);
    margin-top: 4rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    position: relative;
    padding-bottom: 15px;
}

.post-body h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 4px;
    background: var(--neon-saffron);
}

.post-body h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--charcoal);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.dropcap {
    float: left;
    font-size: 6rem;
    line-height: 0.7;
    padding-right: 20px;
    padding-top: 8px;
    color: var(--neon-saffron);
    font-family: 'Playfair Display', serif;
    font-weight: 800;
}

.pull-quote {
    margin: 4rem -40px 4rem 0;
    padding: 2.5rem;
    background: var(--charcoal);
    color: #f4f1ea;
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-style: italic;
    border-left: 6px solid var(--gold);
    box-shadow: 15px 15px 0px var(--neon-saffron);
    line-height: 1.4;
}

.context-box {
    background: #faf9f6;
    border: 2px dashed var(--gold);
    padding: 2.5rem;
    margin: 3rem 0;
    border-radius: 12px;
}

.context-box h3 {
    font-family: 'Space Grotesk', sans-serif;
    text-transform: uppercase;
    font-size: 0.9rem;
    color: var(--neon-saffron);
    font-weight: 800;
    margin-bottom: 0.8rem;
    letter-spacing: 1px;
}

.context-box p {
    font-family: 'Space Grotesk', sans-serif !important;
    font-size: 1.1rem !important;
    margin-bottom: 0 !important;
    color: #333 !important;
    line-height: 1.6 !important;
}

.inline-img-wrap {
    margin: 4rem -40px;
}

.inline-img {
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.img-caption {
    display: block;
    text-align: center;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    color: #555;
    margin-top: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* ========================================
   FLOATING ACTION BUTTON
   ======================================== */

.fab-share {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 64px;
    height: 64px;
    background: var(--neon-saffron);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    box-shadow: 0 10px 30px rgba(230, 81, 0, 0.5);
    cursor: pointer;
    transition: transform 0.3s;
    z-index: 100;
}

.fab-share:hover {
    transform: scale(1.1) rotate(15deg);
}

/* ========================================
   FOOTER
   ======================================== */

footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 6rem 2rem 4rem;
    border-radius: 60px 60px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 40px;
}

.footer-col p {
    color: #aaa;
    line-height: 1.6;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--neon-saffron);
}

.newsletter input {
    padding: 20px;
    background: #252525;
    border: 1px solid #444;
    color: white;
    width: 100%;
    border-radius: 12px;
    margin-bottom: 10px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
}

.newsletter button {
    padding: 20px;
    width: 100%;
    background: var(--neon-saffron);
    border: none;
    color: white;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1rem;
    letter-spacing: 1px;
}

.newsletter button:hover {
    background: var(--gold);
}

.copyright {
    text-align: center;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #333;
    color: #666;
    font-size: 0.9rem;
}

/* ========================================
   ANIMATIONS & REVEALS
   ======================================== */

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    header {
        width: 95%;
        padding: 1rem;
        top: 10px;
        border-radius: 30px;
    }

    header.scrolled {
        width: 95%;
        top: 10px;
    }

    nav {
        gap: 15px;
    }

    nav a {
        font-size: 0.7rem;
        letter-spacing: 0.5px;
    }

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

    .post-heading {
        font-size: 2.8rem;
    }

    .grid {
        display: flex;
        flex-direction: column;
    }

    .card,
    .card.featured,
    .card.tall {
        width: 100%;
        grid-column: auto;
        grid-row: auto;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .cat-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .cat-item {
        height: 250px;
    }

    .cat-title {
        font-size: 1.2rem;
    }

    .post-container {
        padding: 40px 25px;
        margin-top: 0;
        border-radius: 0;
    }

    .post-container::before,
    .post-container::after {
        display: none;
    }

    .pull-quote {
        margin-left: 0;
        margin-right: 0;
        font-size: 1.5rem;
        padding: 1.5rem;
        box-shadow: 10px 10px 0px var(--neon-saffron);
    }

    .inline-img-wrap {
        margin-left: 0;
        margin-right: 0;
    }

    .dropcap {
        font-size: 4rem;
    }

    .back-btn {
        position: static;
        display: inline-block;
    }

    .fab-share {
        bottom: 100px;
        right: 20px;
        width: 56px;
        height: 56px;
        font-size: 1.4rem;
    }

    .about-text {
        font-size: 1.8rem;
    }

    .post-body p {
        font-size: 1.25rem;
    }

    .post-body h2 {
        font-size: 1.8rem;
        margin-top: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    header {
        width: 100%;
        border-radius: 0;
        top: 0;
        left: 0;
        transform: none;
    }

    header.scrolled {
        width: 100%;
    }

    nav {
        gap: 10px;
    }

    nav a {
        font-size: 0.6rem;
    }

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

    .hero-btn {
        padding: 12px 30px;
        font-size: 0.8rem;
    }

    .grid {
        gap: 15px;
    }

    .card-content {
        padding: 1.5rem;
    }

    .card-title {
        font-size: 1.5rem;
    }

    .card-excerpt {
        font-size: 0.9rem;
    }

    .post-heading {
        font-size: 2rem;
    }

    .post-container {
        margin: -30px auto 2rem;
        padding: 20px;
    }

    .post-body p {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }

    .post-body h2 {
        font-size: 1.5rem;
        margin-top: 1.5rem;
    }

    .tldr-box {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }

    .fab-share {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 10px;
        font-size: 1.2rem;
    }

    footer {
        padding: 3rem 1rem 2rem;
        border-radius: 30px 30px 0 0;
    }

    .newsletter input,
    .newsletter button {
        padding: 15px;
        font-size: 0.9rem;
    }
}
