/* Janta Diaries - Core Stylesheet & Home Design System */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@400;500;600;700;800;900&display=swap');

:root {
    --bg-color: #090909;
    --primary-color: #E50914;
    --primary-hover: #b2070f;
    --accent-color: #ffffff;
    --text-color: #EAEAEA;
    --text-muted: #a0a0a0;
    --glass-bg: rgba(15, 15, 15, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
    --card-bg: #121212;
    --navbar-height: 70px;
    --transition-speed: 0.3s;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    background-image: linear-gradient(180deg, rgba(9, 9, 9, 0.6) 0%, rgba(9, 9, 9, 0.85) 100%), url('../images/bg.png');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--accent-color);
}

a {
    color: inherit;
    text-decoration: none;
    transition: all var(--transition-speed) ease;
}

ul {
    list-style: none;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
    background: #222;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.text-primary {
    color: var(--primary-color);
}

.section-padding {
    padding: 80px 0;
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--navbar-height);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: background var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    background: rgba(9, 9, 9, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.navbar.scrolled {
    background: rgba(9, 9, 9, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    border-radius: 50%;
}

.logo-text {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #ffffff 50%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-item a {
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

.nav-item a:hover,
.nav-item.active a {
    opacity: 1;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(229, 9, 20, 0.3);
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--accent-color);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(9, 9, 9, 0.5) 0%, rgba(9, 9, 9, 0.95) 100%);
    z-index: -1;
}

#particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    width: 100%;
    text-align: center;
    padding: 0 20px;
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 10px;
    text-transform: uppercase;
    animation: fadeInUp 1s ease;
}

.hero-title span {
    color: var(--primary-color);
    text-shadow: 0 0 20px rgba(229, 9, 20, 0.5);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 30px;
    animation: fadeInUp 1.2s ease;
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    animation: fadeInUp 1.4s ease;
}

.hero-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.hero-badge:hover {
    background: rgba(229, 9, 20, 0.15);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.hero-tagline {
    font-size: 1.1rem;
    color: var(--accent-color);
    margin-bottom: 40px;
    font-weight: 300;
    opacity: 0.9;
    animation: fadeInUp 1.6s ease;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    animation: fadeInUp 1.8s ease;
}

/* Button Component */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: none;
    outline: none;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--accent-color);
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.4);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 9, 20, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--accent-color);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Section Header */
.section-header {
    margin-bottom: 50px;
}

.section-tag {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    display: inline-block;
}

.section-title {
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title span {
    font-weight: 400;
    color: var(--text-muted);
}

/* Mission Section */
.mission-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
    background: radial-gradient(circle at 10% 20%, rgba(229, 9, 20, 0.05) 0%, transparent 50%);
}

.mission-card {
    padding: 50px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.mission-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-color);
}

.mission-lead {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 30px;
    color: var(--accent-color);
    font-family: 'Poppins', sans-serif;
}

.mission-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mission-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.mission-icon-wrap {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-top: 3px;
}

.mission-desc {
    font-size: 1.1rem;
    color: var(--text-color);
}

.mission-desc strong {
    color: var(--accent-color);
}

/* What We Cover Section */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.category-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 30px 20px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: rgba(229, 9, 20, 0.3);
    background: rgba(229, 9, 20, 0.02);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4), 0 0 15px rgba(229, 9, 20, 0.1);
}

.category-icon {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.category-card:hover .category-icon {
    transform: scale(1.1);
}

.category-name {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Latest Reels Grid Section */
.reels-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 30px;
}

.reel-grid-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.3s ease;
    aspect-ratio: 9/16;
}

.reel-grid-card:hover {
    transform: translateY(-5px);
    border-color: rgba(229, 9, 20, 0.3);
    box-shadow: 0 15px 30px rgba(0,0,0,0.6);
}

.reel-thumb-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.reel-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.reel-grid-card:hover .reel-thumb {
    transform: scale(1.05);
}

.reel-thumb-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(9,9,9,0.1) 0%, rgba(9,9,9,0.8) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
}

.reel-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(229, 9, 20, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    font-size: 1.4rem;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 20px rgba(229, 9, 20, 0.5);
}

.reel-grid-card:hover .reel-play-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.reel-meta-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.reel-meta-tag {
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(229, 9, 20, 0.2);
    border: 1px solid rgba(229, 9, 20, 0.3);
    color: #ff4a54;
    padding: 3px 8px;
    border-radius: 12px;
}

.reel-grid-caption {
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--accent-color);
}

.reel-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 15px;
}

.reel-stat-item {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.reel-stat-item i {
    color: var(--primary-color);
}

.reel-watch-btn {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    gap: 5px;
}

.reel-watch-btn i {
    transition: transform 0.3s ease;
}

.reel-grid-card:hover .reel-watch-btn i {
    transform: translateX(3px);
}

/* ── Have a Story? Form Section ─────────────────────────────────────────── */
.story-form-section {
    padding: 80px 0;
    background: rgba(9, 9, 9, 0.6);
}

.story-form-box {
    max-width: 740px;
    margin: 0 auto;
    background: rgba(18, 18, 18, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 50px 48px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.story-form-header {
    text-align: center;
    margin-bottom: 36px;
}

.story-form-title {
    font-size: 2.2rem;
    font-weight: 900;
    font-family: 'Poppins', sans-serif;
    color: #ffffff;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.story-form-subtitle {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 400;
}

.story-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.story-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.story-input-group {
    width: 100%;
}

.story-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px 20px;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    outline: none;
}

.story-input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.story-input:focus {
    border-color: var(--primary-color);
    background: rgba(229, 9, 20, 0.04);
    box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.12);
}

.story-textarea {
    resize: none;
    min-height: 130px;
    line-height: 1.6;
}

.story-form-submit {
    display: flex;
    justify-content: center;
    margin-top: 6px;
}

.btn-story-submit {
    background: var(--primary-color);
    color: #ffffff;
    border: none;
    border-radius: 30px;
    padding: 16px 44px;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 20px rgba(229, 9, 20, 0.45);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    letter-spacing: 0.3px;
}

.btn-story-submit:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(229, 9, 20, 0.6);
}

.btn-story-submit:active {
    transform: translateY(0);
}

/* Alert feedback banners */
.story-alert {
    border-radius: 12px;
    padding: 14px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}

.story-alert-success {
    background: rgba(0, 200, 100, 0.1);
    border: 1px solid rgba(0, 200, 100, 0.3);
    color: #00e676;
}

.story-alert-error {
    background: rgba(229, 9, 20, 0.1);
    border: 1px solid rgba(229, 9, 20, 0.3);
    color: #ff4a54;
}

/* Responsive */
@media (max-width: 640px) {
    .story-form-box {
        padding: 32px 20px;
    }

    .story-form-row {
        grid-template-columns: 1fr;
    }

    .story-form-title {
        font-size: 1.7rem;
    }
}
/* ─────────────────────────────────────────────────────────────────────────── */


.cta-voice {
    background: linear-gradient(180deg, #A8000A 0%, #000000 100%);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-voice-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    z-index: 2;
    position: relative;
}

.cta-voice-title {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: 1px;
    color: #ffffff;
    margin-bottom: 20px;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
}

.cta-voice-subtitle {
    font-size: 1.25rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 35px;
    line-height: 1.5;
}

.btn-tag {
    background: #ffffff;
    color: #000000;
    padding: 16px 40px;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.25);
    background: #f2f2f2;
}

/* Footer */
.footer-new {
    background-color: #000000;
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-new-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-new-logo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-new-brand h4 {
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    margin: 0;
}

.footer-new-brand p {
    font-size: 0.75rem;
    color: #888888;
    font-weight: 500;
    margin: 0;
}

.footer-center {
    font-size: 0.85rem;
    color: #888888;
}

.footer-center p {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.api-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #888888;
    margin-left: 8px;
    font-weight: 500;
}

.api-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #00E676;
    display: inline-block;
    box-shadow: 0 0 8px #00E676;
    animation: apiPulse 2s infinite;
}

@keyframes apiPulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(0, 230, 118, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 230, 118, 0); }
}

.footer-right {
    display: flex;
    justify-content: flex-end;
}

.footer-new-social {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #121212;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.footer-new-social:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(229, 9, 20, 0.3);
}

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

/* Responsive Grid and Mobile Optimizations */
@media (max-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .reels-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 0; /* Sticky navbar overlay is fine */
    }
    
    .nav-links {
        display: none; /* Can map simple responsive menu or keep minimal on bottom-nav for feed */
    }
    
    .nav-toggle {
        display: block;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        letter-spacing: 2px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .categories-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 15px;
    }
    
    .category-card {
        padding: 15px 5px;
    }
    
    .category-name {
        font-size: 0.75rem;
    }
    
    .category-icon {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }
    
    .reels-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: none;
        margin: 0;
        gap: 15px;
    }
    
    .cta-voice-title {
        font-size: 2.2rem;
    }
    
    .cta-voice-subtitle {
        font-size: 1.05rem;
    }
    
    .footer-new-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-left {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }
    
    .footer-right {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.3rem;
    }
    
    .hero-badge {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .mission-card {
        padding: 25px 20px;
    }
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
  /* Reduce hero height to account for navbar */
  .hero {
    height: calc(100vh - var(--navbar-height));
  }
  /* Show toggle button */
  .nav-toggle {
    display: block;
  }
  /* Hide nav links by default */
  .nav-links {
    flex-direction: column;
    position: absolute;
    top: var(--navbar-height);
    right: 0;
    background: var(--glass-bg);
    width: 200px;
    display: none;
    padding: 1rem;
    gap: 1rem;
  }
  .nav-links li {
    margin: 0;
  }
  .navbar.active .nav-links {
    display: flex;
  }
}
