/* ============================================================
   JOGI - GIRISH RAO HATWAR | Official Website
   Stylesheet · lib/css/style.css
   Designed & Maintained by Vikram I Mirji (www.vikrammirji.in)
   ============================================================ */

:root {
    --gold: #C9A84C;
    --gold-light: #E8C97A;
    --deep-red: #8B1A1A;
    --dark-bg: #0A0A0A;
    --dark-card: #111111;
    --dark-mid: #1A1A1A;
    --cream: #F5F0E8;
    --text-muted-custom: #888;
}

* {
    scroll-behavior: smooth;
}

body {
    background-color: var(--dark-bg);
    color: var(--cream);
    font-family: 'Cormorant Garamond', serif;
    overflow-x: hidden;
}

html[lang="kn"] body {
    font-family: 'Noto Sans Kannada', sans-serif;
}

p {
    font-family: 'Baloo Tamma 2', cursive;
}

/* ===== LOADER ===== */
#loader {
    position: fixed;
    inset: 0;
    background: var(--dark-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.8s ease;
}

#loader .loader-text {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: var(--gold);
    animation: pulse-glow 1.5s ease-in-out infinite;
}

#loader .loader-sub {
    color: var(--text-muted-custom);
    font-size: 1rem;
    margin-top: 0.5rem;
    letter-spacing: 4px;
}

#loader .loader-bar {
    width: 200px;
    height: 2px;
    background: #222;
    margin-top: 2rem;
    border-radius: 2px;
    overflow: hidden;
}

#loader .loader-fill {
    height: 100%;
    background: var(--gold);
    animation: fillBar 2s ease forwards;
}

@keyframes fillBar {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        text-shadow: 0 0 20px rgba(201, 168, 76, 0.4);
    }

    50% {
        text-shadow: 0 0 50px rgba(201, 168, 76, 0.9), 0 0 80px rgba(201, 168, 76, 0.4);
    }
}

/* ===== DAY BANNER ===== */
.day-banner {
    background: linear-gradient(90deg, var(--deep-red), #3A0A0A, var(--deep-red));
    text-align: center;
    padding: 0.5rem;
    font-size: 0.85rem;
    letter-spacing: 2px;
    border-bottom: 1px solid rgba(201, 168, 76, 0.2);
}

.day-banner span {
    color: var(--gold);
}

/* ===== NAVBAR ===== */
.navbar {
    background: rgba(10, 10, 10, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(201, 168, 76, 0.15);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--gold) !important;
    letter-spacing: 2px;
}

.navbar-brand span {
    color: var(--cream);
    font-weight: 300;
}

.nav-link {
    color: var(--cream) !important;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.05rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 0.5rem 1rem !important;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    right: 50%;
    height: 1px;
    background: var(--gold);
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--gold) !important;
}

.nav-link:hover::after {
    left: 1rem;
    right: 1rem;
}

.day-badge {
    background: linear-gradient(135deg, var(--gold), var(--deep-red));
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    letter-spacing: 1px;
    font-family: 'Cormorant Garamond', serif;
}

.navbar-toggler {
    border-color: rgba(201, 168, 76, 0.4);
}

.navbar-toggler-icon {
    filter: invert(1);
}

/* ===== HERO ===== */
#hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #050505 0%, #0F0F0F 50%, #0A0505 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

#hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(139, 26, 26, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(201, 168, 76, 0.08) 0%, transparent 50%);
}

.hero-kannada {
    font-family: 'Noto Sans Kannada', sans-serif;
    font-size: 1rem;
    color: var(--gold);
    letter-spacing: 3px;
    opacity: 0;
    animation: fadeSlideUp 0.8s ease 0.3s forwards;
}

.hero-name {
    font-family: 'Playfair Display', serif;
    font-size: clamp(4rem, 10vw, 9rem);
    font-weight: 900;
    line-height: 0.9;
    background: linear-gradient(135deg, var(--cream) 0%, var(--gold) 50%, var(--cream) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    animation: fadeSlideUp 0.8s ease 0.5s forwards;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--gold-light);
    font-style: italic;
    opacity: 0;
    animation: fadeSlideUp 0.8s ease 0.7s forwards;
}

.hero-desc {
    color: #AAA;
    line-height: 1.9;
    font-size: 1.15rem;
    opacity: 0;
    animation: fadeSlideUp 0.8s ease 0.9s forwards;
}

.hero-stats {
    opacity: 0;
    animation: fadeSlideUp 0.8s ease 1.1s forwards;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--gold);
    display: block;
    font-weight: 900;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted-custom);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-img-wrap {
    position: relative;
    opacity: 0;
    animation: fadeSlideLeft 0.8s ease 0.6s forwards;
}

.hero-img {
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 0 60px rgba(201, 168, 76, 0.2), 0 0 120px rgba(139, 26, 26, 0.1);
    filter: sepia(20%) contrast(1.1);
    transition: all 0.5s ease;
}

.hero-img:hover {
    filter: sepia(0%) contrast(1.15);
    transform: scale(1.02);
}

.hero-img-frame {
    position: absolute;
    inset: -12px;
    border: 1px solid rgba(201, 168, 76, 0.3);
    border-radius: 6px;
    pointer-events: none;
}

.hero-img-frame::before,
.hero-img-frame::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-color: var(--gold);
    border-style: solid;
}

.hero-img-frame::before {
    top: -1px;
    left: -1px;
    border-width: 2px 0 0 2px;
}

.hero-img-frame::after {
    bottom: -1px;
    right: -1px;
    border-width: 0 2px 2px 0;
}

.hero-placeholder {
    width: 100%;
    height: 500px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a1a1a 50%, #1a1a2a 100%);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(201, 168, 76, 0.2);
}

.hero-placeholder .ph-kannada {
    font-family: 'Playfair Display', serif;
    font-size: 6rem;
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, #F5F0E8, #C9A84C);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-placeholder .ph-name {
    color: var(--gold);
    letter-spacing: 5px;
    font-size: 1.2rem;
}

.hero-placeholder .ph-full {
    color: #555;
    font-size: 0.85rem;
    letter-spacing: 2px;
    margin-top: 1rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator i {
    color: var(--gold);
    font-size: 1.5rem;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

/* ===== SECTION COMMON ===== */
section {
    padding: 6rem 0;
}

.section-eyebrow {
    font-size: 0.8rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.75rem;
    display: block;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
}

.section-divider {
    height: 1px;
    width: 60px;
    background: var(--gold);
    margin: 1.5rem 0;
}

.section-divider.center {
    margin: 1.5rem auto;
}

/* ===== SKELETON LOADER ===== */
.skeleton {
    background: linear-gradient(90deg, #1a1a1a 25%, #222 50%, #1a1a1a 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.skeleton-card {
    height: 340px;
    margin-bottom: 1rem;
}

.skeleton-line {
    height: 16px;
    margin-bottom: 8px;
}

.skeleton-line.short {
    width: 60%;
}

/* ===== ABOUT ===== */
#about {
    background: linear-gradient(180deg, var(--dark-bg) 0%, var(--dark-mid) 100%);
}

.about-card {
    background: var(--dark-card);
    border: 1px solid rgba(201, 168, 76, 0.12);
    border-radius: 4px;
    padding: 2rem;
    height: 100%;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: var(--gold);
    transition: height 0.4s ease;
}

.about-card:hover {
    border-color: rgba(201, 168, 76, 0.35);
    transform: translateY(-4px);
}

.about-card:hover::before {
    height: 100%;
}

.about-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.about-card h4 {
    font-family: 'Playfair Display', serif;
    color: var(--gold-light);
    margin-bottom: 0.75rem;
}

.about-card p {
    color: #999;
    line-height: 1.8;
    font-size: 1rem;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, var(--gold) 0%, transparent 100%);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.4rem;
    top: 0.5rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 10px rgba(201, 168, 76, 0.5);
}

.timeline-year {
    color: var(--gold);
    font-size: 0.85rem;
    letter-spacing: 2px;
}

.timeline-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: var(--cream);
}

.timeline-desc {
    color: #888;
    font-size: 0.95rem;
}

/* ===== BOOKS ===== */
#books {
    background: var(--dark-bg);
}

.book-card {
    background: var(--dark-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    overflow: hidden;
    height: 100%;
    transition: all 0.4s ease;
    position: relative;
}

.book-card:hover {
    transform: translateY(-8px);
    border-color: rgba(201, 168, 76, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.book-img-wrap {
    position: relative;
    overflow: hidden;
    height: 260px;
}

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

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

.book-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 60%);
}

.book-category {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(201, 168, 76, 0.9);
    color: #000;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-family: 'Cormorant Garamond', serif;
    letter-spacing: 1px;
}

.book-body {
    padding: 1.5rem;
}

.book-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--cream);
    margin-bottom: 0.5rem;
}

.book-desc {
    color: #777;
    font-size: 0.92rem;
    line-height: 1.7;
}

.book-icon {
    font-size: 2rem;
    position: absolute;
    bottom: 1rem;
    right: 1.5rem;
    opacity: 0.15;
}

/* ===== WRITINGS ===== */
#writings {
    background: var(--dark-mid);
}

.writing-pill {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    border: 1px solid rgba(201, 168, 76, 0.3);
    border-radius: 30px;
    color: var(--gold-light);
    font-size: 0.95rem;
    margin: 0.3rem;
    transition: all 0.3s ease;
    cursor: default;
}

.writing-pill:hover {
    background: rgba(201, 168, 76, 0.1);
    border-color: var(--gold);
    transform: scale(1.05);
}

.publication-card {
    background: rgba(255, 255, 255, 0.03);
    border-left: 2px solid var(--gold);
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    border-radius: 0 4px 4px 0;
    transition: all 0.3s ease;
}

.publication-card:hover {
    background: rgba(201, 168, 76, 0.05);
    transform: translateX(4px);
}

/* ===== AWARDS ===== */
#awards {
    background: var(--dark-bg);
}

.award-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--dark-card);
    border: 1px solid rgba(201, 168, 76, 0.1);
    border-radius: 4px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.award-item:hover {
    border-color: rgba(201, 168, 76, 0.35);
    transform: translateX(6px);
}

.award-icon-wrap {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--deep-red));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.3rem;
}

.award-title {
    font-family: 'Playfair Display', serif;
    color: var(--cream);
}

.award-desc {
    color: #777;
    font-size: 0.92rem;
}

/* ===== QUOTE SECTION ===== */
#quote-section {
    background: linear-gradient(135deg, #0A0A0A 0%, #150A0A 100%);
    border-top: 1px solid rgba(201, 168, 76, 0.1);
    border-bottom: 1px solid rgba(201, 168, 76, 0.1);
    padding: 5rem 0;
    text-align: center;
}

.big-quote {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-style: italic;
    color: var(--cream);
    line-height: 1.5;
    position: relative;
}

.big-quote::before {
    content: '\201C';
    position: absolute;
    top: -2rem;
    left: -1rem;
    font-size: 8rem;
    color: rgba(201, 168, 76, 0.1);
    font-family: serif;
    line-height: 1;
}

/* ===== FILMS ===== */
#films {
    background: var(--dark-mid);
}

.film-card {
    background: var(--dark-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    padding: 2rem;
    height: 100%;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.film-card::after {
    content: '🎬';
    position: absolute;
    bottom: 1rem;
    right: 1.5rem;
    font-size: 2.5rem;
    opacity: 0.08;
}

.film-card:hover {
    border-color: rgba(201, 168, 76, 0.3);
    transform: translateY(-4px);
}

.film-title {
    font-family: 'Playfair Display', serif;
    color: var(--gold-light);
    font-size: 1.3rem;
}

.film-award {
    display: inline-block;
    background: rgba(201, 168, 76, 0.15);
    border: 1px solid rgba(201, 168, 76, 0.3);
    padding: 0.2rem 0.7rem;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--gold);
    margin-top: 0.5rem;
}

/* ===== FOOTER ===== */
footer {
    background: #050505;
    border-top: 1px solid rgba(201, 168, 76, 0.15);
    padding: 3rem 0 1.5rem;
}

.footer-brand {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--gold);
    font-weight: 900;
}

.footer-tagline {
    color: #555;
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(201, 168, 76, 0.3);
    border-radius: 50%;
    color: var(--gold);
    margin: 0 0.3rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--gold);
    color: #000;
    transform: translateY(-3px);
}

.footer-link {
    color: #666;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.footer-link:hover {
    color: var(--gold);
}

.footer-credit {
    color: #444;
    font-size: 0.85rem;
}

.footer-credit a {
    color: var(--gold);
    text-decoration: none;
}

.footer-credit a:hover {
    text-decoration: underline;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeSlideLeft {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.7s ease;
}

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

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.7s ease;
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ===== PARTICLES ===== */
#particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 168, 76, 0.6), transparent);
    animation: float linear infinite;
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* ===== MORE BOOKS LIST ===== */
.more-books-list {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #888;
    font-size: 0.92rem;
    padding: 0.3rem 0;
}

.more-books-dot {
    color: var(--gold);
    font-size: 0.6rem;
}

/* ===== AJAX CONTENT SPINNER ===== */
.ajax-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 0;
    gap: 1rem;
}

.ajax-spinner .spinner-ring {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(201, 168, 76, 0.15);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.ajax-spinner p {
    color: #555;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {
    .hero-name {
        font-size: 3.5rem;
    }

    section {
        padding: 4rem 0;
    }
}