body {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

* {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.top-hero {
    position: relative;
    overflow: hidden;
    max-height: 500px;

    transition:
        max-height 0.45s ease,
        opacity 0.3s ease,
        transform 0.3s ease;
}

.post-body {
    overflow: hidden;
}

.post-body.expanded {
    background: #fff;
}

.animate-fade-in {
    animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.modal-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-content {
    display: flex;
    flex-direction: column;
}

.modal-content>.modal-body {
    overflow-y: auto;
    flex: 1;
}

.modal-checkbox:checked~body {
    overflow: hidden;
}

.top-hero {
    will-change: max-height, opacity, transform;
}

.top-hero.is-hidden {
    max-height: 0;
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
}

#posts-container {
    transition: opacity 0.25s ease, transform 0.25s ease;
}


/* Category strip spacing */
.category-strip {
    backdrop-filter: blur(10px);
}

.glass-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.fga-section {
    position: relative;
    overflow: hidden;
}

.particles-js-canvas-el {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
}

.count-particles {
    position: relative;
    z-index: 1;
}

.heading {
    color: white;
    font-weight: 700;
    margin-bottom: 1rem;
}

.heading1 {
    font-weight: 600;
}

.heading-padd {
    padding: 2rem 0;
}

.category-pill {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 10px;
    padding: 10px 10px;
    margin: 10px 10px;
    cursor: pointer;
    font-weight: 500;
    position: relative;
}


.category-pill:hover {
    background: rgba(99, 102, 241, 0.08);
    color: #6366f1;
    transform: translateY(-1px);
}

.category-pill.active {
    background: linear-gradient(135deg,
            #3730a3 0%,
            /* indigo-800 */
            #4338ca 100%
            /* indigo-700 */
        );
    color: white;
    box-shadow:
        0 4px 12px rgba(55, 48, 163, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}


.content-card {
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: white;
    overflow: hidden;
}

.content-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    border-color: #cbd5e1;
}

.content-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
            #4f46e5,
            #6366f1);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.content-card:hover::before {
    opacity: 1;
}

.tag-badge {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.premium-card {
    background: linear-gradient(135deg,
            #1e293b 0%,
            /* slate-800 */
            #312e81 55%,
            /* indigo-900 */
            #3730a3 100%
            /* indigo-800 */
        );
    border-radius: 16px;
    padding: 32px;
    color: #f8fafc;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 5px 10px rgba(15, 23, 42, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.05)
}


.premium-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.company-link {
    transition: all 0.25s ease;
    padding: 5px 0;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 500;
}

.company-link:hover {
    padding-left: 12px;
    color: #6366f1;
    background: rgba(99, 102, 241, 0.03);
    border-radius: 8px;
    border-bottom-color: transparent;
}

.company-link::after {
    content: '→';
    opacity: 0;
    transform: translateX(-8px);
    transition: all 0.25s ease;
}

.company-link:hover::after {
    opacity: 1;
    transform: translateX(0);
}

.nav-link {
    transition: color 0.2s ease;
    font-weight: 500;
}

.nav-link:hover {
    color: #6366f1;
}

.sidebar-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.btn-primary {
    background: linear-gradient(135deg,
            #4f46e5 0%,
            /* indigo-600 */
            #4338ca 100%
            /* indigo-700 */
        );
    color: white;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.25);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(79, 70, 229, 0.35);
}

.icon-wrapper {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}

.metadata-icon {
    width: 16px;
    height: 16px;
    opacity: 0.6;
}

.typewriter-box {
    background: linear-gradient(135deg, #3730a3 0%, #4338ca 100%);
    padding: 6px 10px;
    border-radius: 8px;
    display: inline-block;
}

.typewriter-text {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
    padding-right: 4px;
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    50%,
    100% {
        border-color: transparent;
    }

    25%,
    75% {
        border-color: rgba(255, 255, 255, 0.7);
    }
}

/* cursor */
.typewriter-text::after {
    content: "|";
    margin-left: 4px;
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    50%,
    100% {
        opacity: 1;
    }

    25%,
    75% {
        opacity: 0;
    }
}

.modal-checkbox {
    display: none;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-checkbox:checked+.modal-overlay {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    transform: scale(0.9) translateY(-20px);
    transition: transform 0.3s ease;
}

.modal-checkbox:checked+.modal-overlay .modal-content {
    transform: scale(1) translateY(0);
}

.modal-gradient {
    background: linear-gradient(135deg, #3730a3 0%, #4338ca 100%);
}

.input-field {
    transition: all 0.3s ease;
}

.input-field:focus {
    outline: none;
    border-color: #4338ca;
    box-shadow: 0 0 0 3px rgba(67, 56, 202, 0.1);
}

.btn-primary {
    background: linear-gradient(135deg, #3730a3 0%, #4338ca 100%);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 25px -5px rgba(55, 48, 163, 0.4);
}

.close-btn {
    cursor: pointer;
    transition: all 0.2s ease;
}

.close-btn:hover {
    transform: rotate(90deg);
    opacity: 0.7;
}