/* ====================== */
/* SAHITYA DEDICATED PAGE (V3.1) */
/* ====================== */

:root {
    --sahitya-purple: #9059c5;
    --sahitya-purple-light: #a874d4;
    --sahitya-purple-dark: #7040a8;
    --sahitya-glow: rgba(144, 89, 197, 0.4);
    --transition-smooth: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);

    /* Modal Theme Overrides */
    --modal-accent: var(--sahitya-purple);
    --modal-glow: var(--sahitya-glow);
}

/* Animations / Reveal Utility */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible,
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.model-pic-card,
.gallery-card,
.video-card {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.model-pic-card.loaded,
.gallery-card.loaded,
.video-card.loaded {
    opacity: 1;
}

/* Hero Section */
.sahitya-hero {
    position: relative;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    background: linear-gradient(135deg, #050505 0%, #0a0a0a 50%, #0f0815 100%);
    overflow: hidden;
    padding: 100px 5%;
}

.hero-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(144, 89, 197, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 30%, rgba(144, 89, 197, 0.05) 0%, transparent 40%);
    pointer-events: none;
}

.sahitya-hero .hero-content {
    position: relative;
    z-index: 10;
    padding-right: 50px;
}

.sahitya-hero .hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(144, 89, 197, 0.15);
    border: 1px solid rgba(144, 89, 197, 0.3);
    border-radius: 25px;
    color: var(--sahitya-purple);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 3px;
    margin-bottom: 25px;
}

.sahitya-hero .hero-title {
    font-size: 5rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 12px;
    margin-bottom: 15px;
    text-shadow: 0 0 60px var(--sahitya-glow);
}

.sahitya-hero .hero-tagline {
    font-size: 1.3rem;
    color: var(--sahitya-purple);
    font-style: italic;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.sahitya-hero .hero-desc {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 500px;
}

.sahitya-hero .hero-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
    padding: 25px 30px;
    background: rgba(144, 89, 197, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(144, 89, 197, 0.1);
    width: fit-content;
}

.sahitya-hero .hero-stat {
    text-align: center;
}

.sahitya-hero .stat-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--sahitya-purple);
    font-family: var(--font-heading);
}

.sahitya-hero .stat-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sahitya-hero .hero-buttons {
    display: flex;
    gap: 20px;
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 80%;
    max-height: 80vh;
    object-fit: contain;
    position: relative;
    z-index: 10;
    filter: drop-shadow(0 0 40px rgba(144, 89, 197, 0.3));
}

.hero-image-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(144, 89, 197, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* Buttons */
.btn-sahitya {
    background: linear-gradient(135deg, #9059c5 0%, #7040a8 100%);
    color: #fff;
    padding: 14px 35px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 30px;
    display: inline-block;
    transition: all 0.4s ease;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
}

.btn-sahitya:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(144, 89, 197, 0.4);
}

/* Quick Navigation */
.sahitya-nav {
    background: #0a0a0a;
    border-bottom: 1px solid rgba(144, 89, 197, 0.1);
    position: sticky;
    top: 70px;
    z-index: 100;
}

.nav-tabs {
    display: flex;
    justify-content: center;
    overflow-x: auto;
    scrollbar-width: none;
}

.nav-tab {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 25px;
    color: #999;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.4s ease;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
}

.sahitya-nav .nav-tab:hover,
.sahitya-nav .nav-tab.active {
    color: var(--sahitya-purple);
    border-bottom-color: var(--sahitya-purple);
    background: rgba(144, 89, 197, 0.03);
}

/* Section Styles */
.section-header {
    margin-bottom: 50px;
    text-align: center;
}

.section-label {
    color: var(--sahitya-purple);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 15px;
    display: block;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
}

/* 360° Viewer Area */
.viewer-360 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    margin-bottom: 80px;
    padding: 0 5%;
}

.viewer-main {
    flex: 0 0 400px;
    max-width: 400px;
    background: #111;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(144, 89, 197, 0.2);
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.viewer-main img {
    width: 100%;
    height: auto;
    display: block;
}

/* Gallery Grids */
.model-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 40px;
}

.model-pic-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.4s ease;
}

.model-pic-card.purple-theme:hover {
    transform: scale(1.02);
    border-color: rgba(144, 89, 197, 0.3);
    box-shadow: 0 15px 30px rgba(144, 89, 197, 0.15);
}

.model-pic-card img {
    width: 100%;
    height: auto;
    display: block;
    object-position: top;
    transition: transform 0.6s ease;
}

.model-pic-card:hover img {
    transform: scale(1.1);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.gallery-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.4s ease;
    aspect-ratio: 2/3;
}

.gallery-card.poster-card {
    aspect-ratio: 3/4;
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.6s ease;
    display: block;
}

.gallery-card:hover img {
    transform: scale(1.05);
}

.gallery-card .info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 25px 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.3s ease;
}

.gallery-card:hover .info {
    transform: translateY(0);
    opacity: 1;
}

.gallery-card .title {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 5px;
}

.gallery-card .category {
    color: var(--sahitya-purple);
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Video Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.video-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 16/9;
    cursor: pointer;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.video-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-card:hover .video-card-overlay {
    opacity: 1;
}

.video-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.play-icon {
    width: 60px;
    height: 60px;
    background: var(--sahitya-purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    box-shadow: 0 0 20px var(--sahitya-glow);
}

/* Responsive */
@media (max-width: 968px) {
    .sahitya-hero .hero-title {
        font-size: 3.5rem;
    }

    .viewer-360 {
        flex-direction: column;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}